packet 237 arch/alpha/kernel/err_ev7.c struct ev7_pal_subpacket *packet; packet 246 arch/alpha/kernel/err_ev7.c packet = (struct ev7_pal_subpacket *)header->by_type.raw.data_start; packet 252 arch/alpha/kernel/err_ev7.c packet->by_type.logout.whami, packet 253 arch/alpha/kernel/err_ev7.c packet->by_type.logout.rbox_whami); packet 254 arch/alpha/kernel/err_ev7.c el_print_timestamp(&packet->by_type.logout.timestamp); packet 258 arch/alpha/kernel/err_ev7.c packet->by_type.logout.exc_addr, packet 259 arch/alpha/kernel/err_ev7.c packet->by_type.logout.halt_code); packet 261 arch/alpha/kernel/err_ev7.c packet->by_type.logout.subpacket_count); packet 1217 arch/mips/include/asm/octeon/cvmx-pko-defs.h uint64_t packet:6; packet 1223 arch/mips/include/asm/octeon/cvmx-pko-defs.h uint64_t packet:6; packet 1238 arch/mips/include/asm/octeon/cvmx-pko-defs.h uint64_t packet:6; packet 1244 arch/mips/include/asm/octeon/cvmx-pko-defs.h uint64_t packet:6; packet 423 arch/mips/include/asm/octeon/cvmx-pko.h union cvmx_buf_ptr packet, packet 431 arch/mips/include/asm/octeon/cvmx-pko.h pko_command.u64, packet.u64); packet 466 arch/mips/include/asm/octeon/cvmx-pko.h union cvmx_buf_ptr packet, packet 475 arch/mips/include/asm/octeon/cvmx-pko.h pko_command.u64, packet.u64, addr); packet 182 arch/um/drivers/mconsole_user.c struct mconsole_notify packet; packet 202 arch/um/drivers/mconsole_user.c packet.magic = MCONSOLE_MAGIC; packet 203 arch/um/drivers/mconsole_user.c packet.version = MCONSOLE_VERSION; packet 204 arch/um/drivers/mconsole_user.c packet.type = type; packet 205 arch/um/drivers/mconsole_user.c len = (len > sizeof(packet.data)) ? sizeof(packet.data) : len; packet 206 arch/um/drivers/mconsole_user.c packet.len = len; packet 207 arch/um/drivers/mconsole_user.c memcpy(packet.data, data, len); packet 210 arch/um/drivers/mconsole_user.c len = sizeof(packet) + packet.len - sizeof(packet.data); packet 211 arch/um/drivers/mconsole_user.c n = sendto(notify_sock, &packet, len, 0, (struct sockaddr *) &target, packet 99 arch/um/drivers/pcap_user.c const u_char *packet) packet 106 arch/um/drivers/pcap_user.c memcpy(hdata->buffer, packet, len); packet 611 drivers/block/paride/pg.c if (pg_command(dev, hdr.packet, hdr.dlen, jiffies + PG_TMO)) { packet 1749 drivers/block/pktcdvd.c if (!ti->packet || !ti->fp) packet 1764 drivers/block/pktcdvd.c pkt_err(pd, "bad state %d-%d-%d\n", ti->rt, ti->blank, ti->packet); packet 592 drivers/firewire/core-card.c static void dummy_send_request(struct fw_card *card, struct fw_packet *packet) packet 594 drivers/firewire/core-card.c packet->callback(packet, card, RCODE_CANCELLED); packet 597 drivers/firewire/core-card.c static void dummy_send_response(struct fw_card *card, struct fw_packet *packet) packet 599 drivers/firewire/core-card.c packet->callback(packet, card, RCODE_CANCELLED); packet 602 drivers/firewire/core-card.c static int dummy_cancel_packet(struct fw_card *card, struct fw_packet *packet) packet 1056 drivers/firewire/core-cdev.c struct fw_iso_packet packet; packet 1092 drivers/firewire/core-cdev.c u.packet.payload_length = GET_PAYLOAD_LENGTH(control); packet 1093 drivers/firewire/core-cdev.c u.packet.interrupt = GET_INTERRUPT(control); packet 1094 drivers/firewire/core-cdev.c u.packet.skip = GET_SKIP(control); packet 1095 drivers/firewire/core-cdev.c u.packet.tag = GET_TAG(control); packet 1096 drivers/firewire/core-cdev.c u.packet.sy = GET_SY(control); packet 1097 drivers/firewire/core-cdev.c u.packet.header_length = GET_HEADER_LENGTH(control); packet 1101 drivers/firewire/core-cdev.c if (u.packet.header_length & 3) packet 1103 drivers/firewire/core-cdev.c transmit_header_bytes = u.packet.header_length; packet 1107 drivers/firewire/core-cdev.c if (u.packet.header_length == 0 || packet 1108 drivers/firewire/core-cdev.c u.packet.header_length % ctx->header_size != 0) packet 1113 drivers/firewire/core-cdev.c if (u.packet.payload_length == 0 || packet 1114 drivers/firewire/core-cdev.c u.packet.payload_length & 3) packet 1124 drivers/firewire/core-cdev.c (u.packet.header, p->header, transmit_header_bytes)) packet 1126 drivers/firewire/core-cdev.c if (u.packet.skip && ctx->type == FW_ISO_CONTEXT_TRANSMIT && packet 1127 drivers/firewire/core-cdev.c u.packet.header_length + u.packet.payload_length > 0) packet 1129 drivers/firewire/core-cdev.c if (payload + u.packet.payload_length > buffer_end) packet 1132 drivers/firewire/core-cdev.c if (fw_iso_context_queue(ctx, &u.packet, packet 1137 drivers/firewire/core-cdev.c payload += u.packet.payload_length; packet 1480 drivers/firewire/core-cdev.c static void outbound_phy_packet_callback(struct fw_packet *packet, packet 1484 drivers/firewire/core-cdev.c container_of(packet, struct outbound_phy_packet_event, p); packet 1499 drivers/firewire/core-cdev.c e->phy_packet.data[0] = packet->timestamp; packet 181 drivers/firewire/core-iso.c struct fw_iso_packet *packet, packet 185 drivers/firewire/core-iso.c return ctx->card->driver->queue_iso(ctx, packet, buffer, payload); packet 115 drivers/firewire/core-transaction.c if (card->driver->cancel_packet(card, &transaction->packet) == 0) packet 164 drivers/firewire/core-transaction.c static void transmit_complete_callback(struct fw_packet *packet, packet 168 drivers/firewire/core-transaction.c container_of(packet, struct fw_transaction, packet); packet 198 drivers/firewire/core-transaction.c static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel, packet 205 drivers/firewire/core-transaction.c packet->header[0] = packet 209 drivers/firewire/core-transaction.c packet->header_length = 4; packet 210 drivers/firewire/core-transaction.c packet->payload = payload; packet 211 drivers/firewire/core-transaction.c packet->payload_length = length; packet 222 drivers/firewire/core-transaction.c packet->header[0] = packet 227 drivers/firewire/core-transaction.c packet->header[1] = packet 229 drivers/firewire/core-transaction.c packet->header[2] = packet 234 drivers/firewire/core-transaction.c packet->header[3] = *(u32 *)payload; packet 235 drivers/firewire/core-transaction.c packet->header_length = 16; packet 236 drivers/firewire/core-transaction.c packet->payload_length = 0; packet 241 drivers/firewire/core-transaction.c packet->header[3] = packet 244 drivers/firewire/core-transaction.c packet->header_length = 16; packet 245 drivers/firewire/core-transaction.c packet->payload = payload; packet 246 drivers/firewire/core-transaction.c packet->payload_length = length; packet 250 drivers/firewire/core-transaction.c packet->header_length = 12; packet 251 drivers/firewire/core-transaction.c packet->payload_length = 0; packet 255 drivers/firewire/core-transaction.c packet->header[3] = packet 258 drivers/firewire/core-transaction.c packet->header_length = 16; packet 259 drivers/firewire/core-transaction.c packet->payload_length = 0; packet 266 drivers/firewire/core-transaction.c packet->speed = speed; packet 267 drivers/firewire/core-transaction.c packet->generation = generation; packet 268 drivers/firewire/core-transaction.c packet->ack = 0; packet 269 drivers/firewire/core-transaction.c packet->payload_mapped = false; packet 368 drivers/firewire/core-transaction.c fw_fill_request(&t->packet, tcode, t->tlabel, packet 371 drivers/firewire/core-transaction.c t->packet.callback = transmit_complete_callback; packet 377 drivers/firewire/core-transaction.c card->driver->send_request(card, &t->packet); packet 436 drivers/firewire/core-transaction.c static void transmit_phy_packet_callback(struct fw_packet *packet, packet 626 drivers/firewire/core-transaction.c static void free_response_callback(struct fw_packet *packet, packet 631 drivers/firewire/core-transaction.c request = container_of(packet, struct fw_request, response); packet 1003 drivers/firewire/core-transaction.c card->driver->cancel_packet(card, &t->packet); packet 75 drivers/firewire/core.h void (*send_request)(struct fw_card *card, struct fw_packet *packet); packet 76 drivers/firewire/core.h void (*send_response)(struct fw_card *card, struct fw_packet *packet); packet 78 drivers/firewire/core.h int (*cancel_packet)(struct fw_card *card, struct fw_packet *packet); packet 105 drivers/firewire/core.h struct fw_iso_packet *packet, packet 244 drivers/firewire/core.h void fw_core_handle_response(struct fw_card *card, struct fw_packet *packet); packet 761 drivers/firewire/net.c struct fw_iso_packet packet; packet 794 drivers/firewire/net.c packet.payload_length = dev->rcv_buffer_size; packet 795 drivers/firewire/net.c packet.interrupt = 1; packet 796 drivers/firewire/net.c packet.skip = 0; packet 797 drivers/firewire/net.c packet.tag = 3; packet 798 drivers/firewire/net.c packet.sy = 0; packet 799 drivers/firewire/net.c packet.header_length = IEEE1394_GASP_HDR_SIZE; packet 803 drivers/firewire/net.c retval = fw_iso_context_queue(dev->broadcast_rcv_context, &packet, packet 1118 drivers/firewire/net.c struct fw_iso_packet packet; packet 1162 drivers/firewire/net.c packet.payload_length = max_receive; packet 1163 drivers/firewire/net.c packet.interrupt = 1; packet 1164 drivers/firewire/net.c packet.skip = 0; packet 1165 drivers/firewire/net.c packet.tag = 3; packet 1166 drivers/firewire/net.c packet.sy = 0; packet 1167 drivers/firewire/net.c packet.header_length = IEEE1394_GASP_HDR_SIZE; packet 1171 drivers/firewire/net.c retval = fw_iso_context_queue(context, &packet, packet 63 drivers/firewire/nosy.c struct packet *head, *tail; packet 120 drivers/firewire/nosy.c buffer->head = (struct packet *) buffer->data; packet 121 drivers/firewire/nosy.c buffer->tail = (struct packet *) buffer->data; packet 159 drivers/firewire/nosy.c buffer->head = (struct packet *) &buffer->head->data[length]; packet 167 drivers/firewire/nosy.c buffer->head = (struct packet *) &buffer->data[length - split]; packet 175 drivers/firewire/nosy.c atomic_sub(sizeof(struct packet) + length, &buffer->size); packet 188 drivers/firewire/nosy.c atomic_read(&buffer->size) + sizeof(struct packet) + length) { packet 198 drivers/firewire/nosy.c buffer->tail = (struct packet *) &buffer->tail->data[length]; packet 204 drivers/firewire/nosy.c buffer->tail = (struct packet *) &buffer->data[length - split]; packet 209 drivers/firewire/nosy.c atomic_add(sizeof(struct packet) + length, &buffer->size); packet 1280 drivers/firewire/ohci.c struct fw_packet *packet; packet 1289 drivers/firewire/ohci.c struct fw_packet *packet) packet 1300 drivers/firewire/ohci.c packet->ack = RCODE_SEND_ERROR; packet 1305 drivers/firewire/ohci.c d[0].res_count = cpu_to_le16(packet->timestamp); packet 1313 drivers/firewire/ohci.c tcode = (packet->header[0] >> 4) & 0x0f; packet 1325 drivers/firewire/ohci.c header[0] = cpu_to_le32((packet->header[0] & 0xffff) | packet 1326 drivers/firewire/ohci.c (packet->speed << 16)); packet 1327 drivers/firewire/ohci.c header[1] = cpu_to_le32((packet->header[1] & 0xffff) | packet 1328 drivers/firewire/ohci.c (packet->header[0] & 0xffff0000)); packet 1329 drivers/firewire/ohci.c header[2] = cpu_to_le32(packet->header[2]); packet 1332 drivers/firewire/ohci.c header[3] = cpu_to_le32(packet->header[3]); packet 1334 drivers/firewire/ohci.c header[3] = (__force __le32) packet->header[3]; packet 1336 drivers/firewire/ohci.c d[0].req_count = cpu_to_le16(packet->header_length); packet 1341 drivers/firewire/ohci.c (packet->speed << 16)); packet 1342 drivers/firewire/ohci.c header[1] = cpu_to_le32(packet->header[1]); packet 1343 drivers/firewire/ohci.c header[2] = cpu_to_le32(packet->header[2]); packet 1346 drivers/firewire/ohci.c if (is_ping_packet(&packet->header[1])) packet 1351 drivers/firewire/ohci.c header[0] = cpu_to_le32((packet->header[0] & 0xffff) | packet 1352 drivers/firewire/ohci.c (packet->speed << 16)); packet 1353 drivers/firewire/ohci.c header[1] = cpu_to_le32(packet->header[0] & 0xffff0000); packet 1359 drivers/firewire/ohci.c packet->ack = RCODE_SEND_ERROR; packet 1365 drivers/firewire/ohci.c driver_data->packet = packet; packet 1366 drivers/firewire/ohci.c packet->driver_data = driver_data; packet 1368 drivers/firewire/ohci.c if (packet->payload_length > 0) { packet 1369 drivers/firewire/ohci.c if (packet->payload_length > sizeof(driver_data->inline_data)) { packet 1371 drivers/firewire/ohci.c packet->payload, packet 1372 drivers/firewire/ohci.c packet->payload_length, packet 1375 drivers/firewire/ohci.c packet->ack = RCODE_SEND_ERROR; packet 1378 drivers/firewire/ohci.c packet->payload_bus = payload_bus; packet 1379 drivers/firewire/ohci.c packet->payload_mapped = true; packet 1381 drivers/firewire/ohci.c memcpy(driver_data->inline_data, packet->payload, packet 1382 drivers/firewire/ohci.c packet->payload_length); packet 1386 drivers/firewire/ohci.c d[2].req_count = cpu_to_le16(packet->payload_length); packet 1400 drivers/firewire/ohci.c if (ohci->generation != packet->generation) { packet 1401 drivers/firewire/ohci.c if (packet->payload_mapped) packet 1403 drivers/firewire/ohci.c packet->payload_length, DMA_TO_DEVICE); packet 1404 drivers/firewire/ohci.c packet->ack = RCODE_GENERATION; packet 1434 drivers/firewire/ohci.c struct fw_packet *packet; packet 1443 drivers/firewire/ohci.c packet = driver_data->packet; packet 1444 drivers/firewire/ohci.c if (packet == NULL) packet 1448 drivers/firewire/ohci.c if (packet->payload_mapped) packet 1449 drivers/firewire/ohci.c dma_unmap_single(ohci->card.device, packet->payload_bus, packet 1450 drivers/firewire/ohci.c packet->payload_length, DMA_TO_DEVICE); packet 1453 drivers/firewire/ohci.c packet->timestamp = le16_to_cpu(last->res_count); packet 1455 drivers/firewire/ohci.c log_ar_at_event(ohci, 'T', packet->speed, packet->header, evt); packet 1460 drivers/firewire/ohci.c packet->ack = RCODE_CANCELLED; packet 1468 drivers/firewire/ohci.c packet->ack = RCODE_GENERATION; packet 1473 drivers/firewire/ohci.c packet->ack = RCODE_GENERATION; packet 1479 drivers/firewire/ohci.c packet->ack = RCODE_NO_ACK; packet 1490 drivers/firewire/ohci.c packet->ack = evt - 0x10; packet 1495 drivers/firewire/ohci.c packet->ack = RCODE_GENERATION; packet 1501 drivers/firewire/ohci.c packet->ack = RCODE_SEND_ERROR; packet 1505 drivers/firewire/ohci.c packet->callback(packet, &ohci->card, packet->ack); packet 1517 drivers/firewire/ohci.c struct fw_packet *packet, u32 csr) packet 1522 drivers/firewire/ohci.c tcode = HEADER_GET_TCODE(packet->header[0]); packet 1524 drivers/firewire/ohci.c length = HEADER_GET_DATA_LENGTH(packet->header[3]); packet 1530 drivers/firewire/ohci.c fw_fill_response(&response, packet->header, packet 1533 drivers/firewire/ohci.c fw_fill_response(&response, packet->header, packet 1536 drivers/firewire/ohci.c fw_fill_response(&response, packet->header, RCODE_COMPLETE, packet 1544 drivers/firewire/ohci.c struct fw_packet *packet, u32 csr) packet 1551 drivers/firewire/ohci.c tcode = HEADER_GET_TCODE(packet->header[0]); packet 1552 drivers/firewire/ohci.c length = HEADER_GET_DATA_LENGTH(packet->header[3]); packet 1553 drivers/firewire/ohci.c payload = packet->payload; packet 1554 drivers/firewire/ohci.c ext_tcode = HEADER_GET_EXTENDED_TCODE(packet->header[3]); packet 1564 drivers/firewire/ohci.c fw_fill_response(&response, packet->header, packet 1578 drivers/firewire/ohci.c fw_fill_response(&response, packet->header, packet 1585 drivers/firewire/ohci.c fw_fill_response(&response, packet->header, RCODE_BUSY, NULL, 0); packet 1591 drivers/firewire/ohci.c static void handle_local_request(struct context *ctx, struct fw_packet *packet) packet 1596 drivers/firewire/ohci.c packet->ack = ACK_PENDING; packet 1597 drivers/firewire/ohci.c packet->callback(packet, &ctx->ohci->card, packet->ack); packet 1602 drivers/firewire/ohci.c HEADER_GET_OFFSET_HIGH(packet->header[1]) << 32) | packet 1603 drivers/firewire/ohci.c packet->header[2]; packet 1608 drivers/firewire/ohci.c handle_local_rom(ctx->ohci, packet, csr); packet 1614 drivers/firewire/ohci.c handle_local_lock(ctx->ohci, packet, csr); packet 1618 drivers/firewire/ohci.c fw_core_handle_request(&ctx->ohci->card, packet); packet 1620 drivers/firewire/ohci.c fw_core_handle_response(&ctx->ohci->card, packet); packet 1625 drivers/firewire/ohci.c packet->ack = ACK_COMPLETE; packet 1626 drivers/firewire/ohci.c packet->callback(packet, &ctx->ohci->card, packet->ack); packet 1630 drivers/firewire/ohci.c static void at_context_transmit(struct context *ctx, struct fw_packet *packet) packet 1637 drivers/firewire/ohci.c if (HEADER_GET_DESTINATION(packet->header[0]) == ctx->ohci->node_id && packet 1638 drivers/firewire/ohci.c ctx->ohci->generation == packet->generation) { packet 1640 drivers/firewire/ohci.c handle_local_request(ctx, packet); packet 1644 drivers/firewire/ohci.c ret = at_context_queue_packet(ctx, packet); packet 1648 drivers/firewire/ohci.c packet->callback(packet, &ctx->ohci->card, packet->ack); packet 2531 drivers/firewire/ohci.c static void ohci_send_request(struct fw_card *card, struct fw_packet *packet) packet 2535 drivers/firewire/ohci.c at_context_transmit(&ohci->at_request_ctx, packet); packet 2538 drivers/firewire/ohci.c static void ohci_send_response(struct fw_card *card, struct fw_packet *packet) packet 2542 drivers/firewire/ohci.c at_context_transmit(&ohci->at_response_ctx, packet); packet 2545 drivers/firewire/ohci.c static int ohci_cancel_packet(struct fw_card *card, struct fw_packet *packet) packet 2549 drivers/firewire/ohci.c struct driver_data *driver_data = packet->driver_data; packet 2554 drivers/firewire/ohci.c if (packet->ack != 0) packet 2557 drivers/firewire/ohci.c if (packet->payload_mapped) packet 2558 drivers/firewire/ohci.c dma_unmap_single(ohci->card.device, packet->payload_bus, packet 2559 drivers/firewire/ohci.c packet->payload_length, DMA_TO_DEVICE); packet 2561 drivers/firewire/ohci.c log_ar_at_event(ohci, 'T', packet->speed, packet->header, 0x20); packet 2562 drivers/firewire/ohci.c driver_data->packet = NULL; packet 2563 drivers/firewire/ohci.c packet->ack = RCODE_CANCELLED; packet 2564 drivers/firewire/ohci.c packet->callback(packet, &ohci->card, packet->ack); packet 3193 drivers/firewire/ohci.c struct fw_iso_packet *packet, packet 3205 drivers/firewire/ohci.c p = packet; packet 3297 drivers/firewire/ohci.c struct fw_iso_packet *packet, packet 3312 drivers/firewire/ohci.c packet_count = packet->header_length / ctx->base.header_size; packet 3319 drivers/firewire/ohci.c payload_per_buffer = packet->payload_length / packet_count; packet 3331 drivers/firewire/ohci.c if (packet->skip && i == 0) packet 3368 drivers/firewire/ohci.c if (packet->interrupt && i == packet_count - 1) packet 3378 drivers/firewire/ohci.c struct fw_iso_packet *packet, packet 3388 drivers/firewire/ohci.c rest = packet->payload_length; packet 3403 drivers/firewire/ohci.c if (packet->skip && i == 0) packet 3405 drivers/firewire/ohci.c if (packet->interrupt && i == z - 1) packet 3434 drivers/firewire/ohci.c struct fw_iso_packet *packet, packet 3445 drivers/firewire/ohci.c ret = queue_iso_transmit(ctx, packet, buffer, payload); packet 3448 drivers/firewire/ohci.c ret = queue_iso_packet_per_buffer(ctx, packet, buffer, payload); packet 3451 drivers/firewire/ohci.c ret = queue_iso_buffer_fill(ctx, packet, buffer, payload); packet 180 drivers/firmware/raspberrypi.c u32 packet; packet 183 drivers/firmware/raspberrypi.c &packet, sizeof(packet)); packet 188 drivers/firmware/raspberrypi.c time64_to_tm(packet, 0, &tm); packet 200 drivers/firmware/raspberrypi.c u32 packet; packet 202 drivers/firmware/raspberrypi.c &packet, sizeof(packet)); packet 74 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c struct pm4_mes_map_process *packet; packet 77 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet = (struct pm4_mes_map_process *)buffer; packet 80 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, packet 82 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; packet 83 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.process_quantum = 1; packet 84 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.pasid = qpd->pqm->process->pasid; packet 85 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields14.gds_size = qpd->gds_size; packet 86 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields14.num_gws = qpd->num_gws; packet 87 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields14.num_oac = qpd->num_oac; packet 88 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields14.sdma_enable = 1; packet 90 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields14.num_queues = (qpd->is_debug) ? 0 : qpd->queue_count; packet 92 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->sh_mem_config = qpd->sh_mem_config; packet 93 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->sh_mem_bases = qpd->sh_mem_bases; packet 95 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->sq_shader_tba_lo = lower_32_bits(qpd->tba_addr >> 8); packet 96 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->sq_shader_tba_hi = (1 << SQ_SHADER_TBA_HI__TRAP_EN__SHIFT) | packet 98 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->sq_shader_tma_lo = lower_32_bits(qpd->tma_addr >> 8); packet 99 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->sq_shader_tma_hi = upper_32_bits(qpd->tma_addr >> 8); packet 102 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->gds_addr_lo = lower_32_bits(qpd->gds_context_area); packet 103 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->gds_addr_hi = upper_32_bits(qpd->gds_context_area); packet 105 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->vm_context_page_table_base_addr_lo32 = packet 107 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->vm_context_page_table_base_addr_hi32 = packet 116 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c struct pm4_mes_runlist *packet; packet 134 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet = (struct pm4_mes_runlist *)buffer; packet 137 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->header.u32All = pm_build_pm4_header(IT_RUN_LIST, packet 140 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields4.ib_size = ib_size_in_dwords; packet 141 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields4.chain = chain ? 1 : 0; packet 142 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields4.offload_polling = 0; packet 143 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields4.valid = 1; packet 144 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields4.process_cnt = concurrent_proc_cnt; packet 145 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->ordinal2 = lower_32_bits(ib); packet 146 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->ib_base_hi = upper_32_bits(ib); packet 154 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c struct pm4_mes_map_queues *packet; packet 157 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet = (struct pm4_mes_map_queues *)buffer; packet 160 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->header.u32All = pm_build_pm4_header(IT_MAP_QUEUES, packet 162 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.num_queues = 1; packet 163 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.queue_sel = packet 166 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.engine_sel = packet 168 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.queue_type = packet 174 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.queue_type = packet 178 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.queue_type = packet 183 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.engine_sel = q->properties.sdma_engine_id + packet 191 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields3.doorbell_offset = packet 194 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->mqd_addr_lo = packet 197 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->mqd_addr_hi = packet 200 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->wptr_addr_lo = packet 203 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->wptr_addr_hi = packet 215 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c struct pm4_mes_unmap_queues *packet; packet 217 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet = (struct pm4_mes_unmap_queues *)buffer; packet 220 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->header.u32All = pm_build_pm4_header(IT_UNMAP_QUEUES, packet 225 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.engine_sel = packet 230 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.engine_sel = packet 239 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.action = packet 242 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.action = packet 247 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.queue_sel = packet 249 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.num_queues = 1; packet 250 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields3b.doorbell_offset0 = filter_param; packet 253 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.queue_sel = packet 255 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields3a.pasid = filter_param; packet 258 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.queue_sel = packet 263 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.queue_sel = packet 278 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c struct pm4_mes_query_status *packet; packet 280 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet = (struct pm4_mes_query_status *)buffer; packet 284 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->header.u32All = pm_build_pm4_header(IT_QUERY_STATUS, packet 287 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.context_id = 0; packet 288 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.interrupt_sel = packet 290 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.command = packet 293 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->addr_hi = upper_32_bits((uint64_t)fence_address); packet 294 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->addr_lo = lower_32_bits((uint64_t)fence_address); packet 295 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->data_hi = upper_32_bits((uint64_t)fence_value); packet 296 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->data_lo = lower_32_bits((uint64_t)fence_value); packet 304 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c struct pm4_mec_release_mem *packet; packet 308 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet = (struct pm4_mec_release_mem *)buffer; packet 311 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->header.u32All = pm_build_pm4_header(IT_RELEASE_MEM, packet 314 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.event_type = CACHE_FLUSH_AND_INV_TS_EVENT; packet 315 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.event_index = event_index__mec_release_mem__end_of_pipe; packet 316 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.tcl1_action_ena = 1; packet 317 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.tc_action_ena = 1; packet 318 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.cache_policy = cache_policy__mec_release_mem__lru; packet 320 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields3.data_sel = data_sel__mec_release_mem__send_32_bit_low; packet 321 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields3.int_sel = packet 324 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields4.address_lo_32b = (gpu_addr & 0xffffffff) >> 2; packet 325 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->address_hi = upper_32_bits(gpu_addr); packet 327 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->data_lo = 0; packet 73 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c struct pm4_mes_map_process *packet; packet 76 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet = (struct pm4_mes_map_process *)buffer; packet 79 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, packet 81 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; packet 82 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.process_quantum = 1; packet 83 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.pasid = qpd->pqm->process->pasid; packet 84 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields14.gds_size = qpd->gds_size & 0x3F; packet 85 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; packet 86 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields14.num_gws = qpd->num_gws; packet 87 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields14.num_oac = qpd->num_oac; packet 88 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields14.sdma_enable = 1; packet 89 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields14.num_queues = (qpd->is_debug) ? 0 : qpd->queue_count; packet 91 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->sh_mem_config = qpd->sh_mem_config; packet 92 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->sh_mem_bases = qpd->sh_mem_bases; packet 93 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->sq_shader_tba_lo = lower_32_bits(qpd->tba_addr >> 8); packet 94 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->sq_shader_tba_hi = upper_32_bits(qpd->tba_addr >> 8); packet 95 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->sq_shader_tma_lo = lower_32_bits(qpd->tma_addr >> 8); packet 96 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->sq_shader_tma_hi = upper_32_bits(qpd->tma_addr >> 8); packet 98 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->gds_addr_lo = lower_32_bits(qpd->gds_context_area); packet 99 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->gds_addr_hi = upper_32_bits(qpd->gds_context_area); packet 101 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->vm_context_page_table_base_addr_lo32 = packet 103 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->vm_context_page_table_base_addr_hi32 = packet 112 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c struct pm4_mes_runlist *packet; packet 129 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet = (struct pm4_mes_runlist *)buffer; packet 132 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->header.u32All = pm_build_pm4_header(IT_RUN_LIST, packet 135 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields4.ib_size = ib_size_in_dwords; packet 136 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields4.chain = chain ? 1 : 0; packet 137 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields4.offload_polling = 0; packet 138 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields4.chained_runlist_idle_disable = chain ? 1 : 0; packet 139 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields4.valid = 1; packet 140 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields4.process_cnt = concurrent_proc_cnt; packet 141 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->ordinal2 = lower_32_bits(ib); packet 142 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->ib_base_hi = upper_32_bits(ib); packet 150 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c struct pm4_mes_set_resources *packet; packet 152 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet = (struct pm4_mes_set_resources *)buffer; packet 155 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->header.u32All = pm_build_pm4_header(IT_SET_RESOURCES, packet 158 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.queue_type = packet 160 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.vmid_mask = res->vmid_mask; packet 161 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.unmap_latency = KFD_UNMAP_LATENCY_MS / 100; packet 162 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields7.oac_mask = res->oac_mask; packet 163 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields8.gds_heap_base = res->gds_heap_base; packet 164 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields8.gds_heap_size = res->gds_heap_size; packet 166 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->gws_mask_lo = lower_32_bits(res->gws_mask); packet 167 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->gws_mask_hi = upper_32_bits(res->gws_mask); packet 169 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->queue_mask_lo = lower_32_bits(res->queue_mask); packet 170 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->queue_mask_hi = upper_32_bits(res->queue_mask); packet 178 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c struct pm4_mes_map_queues *packet; packet 181 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet = (struct pm4_mes_map_queues *)buffer; packet 184 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->header.u32All = pm_build_pm4_header(IT_MAP_QUEUES, packet 186 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.num_queues = 1; packet 187 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.queue_sel = packet 190 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.engine_sel = packet 192 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.gws_control_queue = q->gws ? 1 : 0; packet 193 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.extended_engine_sel = packet 195 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.queue_type = packet 201 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.queue_type = packet 205 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.queue_type = packet 212 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.engine_sel = q->properties.sdma_engine_id + packet 215 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.extended_engine_sel = packet 217 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.engine_sel = q->properties.sdma_engine_id; packet 224 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields3.doorbell_offset = packet 227 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->mqd_addr_lo = packet 230 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->mqd_addr_hi = packet 233 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->wptr_addr_lo = packet 236 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->wptr_addr_hi = packet 248 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c struct pm4_mes_unmap_queues *packet; packet 250 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet = (struct pm4_mes_unmap_queues *)buffer; packet 253 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->header.u32All = pm_build_pm4_header(IT_UNMAP_QUEUES, packet 258 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.extended_engine_sel = packet 260 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.engine_sel = packet 266 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.extended_engine_sel = packet 268 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.engine_sel = packet 271 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.extended_engine_sel = packet 273 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.engine_sel = sdma_engine; packet 282 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.action = packet 285 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.action = packet 290 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.queue_sel = packet 292 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.num_queues = 1; packet 293 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields3b.doorbell_offset0 = filter_param; packet 296 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.queue_sel = packet 298 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields3a.pasid = filter_param; packet 301 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.queue_sel = packet 306 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.queue_sel = packet 321 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c struct pm4_mes_query_status *packet; packet 323 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet = (struct pm4_mes_query_status *)buffer; packet 327 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->header.u32All = pm_build_pm4_header(IT_QUERY_STATUS, packet 330 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.context_id = 0; packet 331 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.interrupt_sel = packet 333 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.command = packet 336 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->addr_hi = upper_32_bits((uint64_t)fence_address); packet 337 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->addr_lo = lower_32_bits((uint64_t)fence_address); packet 338 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->data_hi = upper_32_bits((uint64_t)fence_value); packet 339 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->data_lo = lower_32_bits((uint64_t)fence_value); packet 347 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c struct pm4_mec_release_mem *packet; packet 349 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet = (struct pm4_mec_release_mem *)buffer; packet 352 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->header.u32All = pm_build_pm4_header(IT_RELEASE_MEM, packet 355 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.event_type = CACHE_FLUSH_AND_INV_TS_EVENT; packet 356 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.event_index = event_index__mec_release_mem__end_of_pipe; packet 357 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.tcl1_action_ena = 1; packet 358 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.tc_action_ena = 1; packet 359 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.cache_policy = cache_policy__mec_release_mem__lru; packet 361 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields3.data_sel = data_sel__mec_release_mem__send_32_bit_low; packet 362 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields3.int_sel = packet 365 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields4.address_lo_32b = (gpu_addr & 0xffffffff) >> 2; packet 366 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->address_hi = upper_32_bits(gpu_addr); packet 368 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->data_lo = 0; packet 85 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c struct pm4_mes_map_process *packet; packet 87 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet = (struct pm4_mes_map_process *)buffer; packet 91 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, packet 93 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; packet 94 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.process_quantum = 1; packet 95 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.pasid = qpd->pqm->process->pasid; packet 96 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields3.page_table_base = qpd->page_table_base; packet 97 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields10.gds_size = qpd->gds_size; packet 98 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields10.num_gws = qpd->num_gws; packet 99 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields10.num_oac = qpd->num_oac; packet 100 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields10.num_queues = (qpd->is_debug) ? 0 : qpd->queue_count; packet 102 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->sh_mem_config = qpd->sh_mem_config; packet 103 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->sh_mem_bases = qpd->sh_mem_bases; packet 104 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->sh_mem_ape1_base = qpd->sh_mem_ape1_base; packet 105 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->sh_mem_ape1_limit = qpd->sh_mem_ape1_limit; packet 107 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->sh_hidden_private_base_vmid = qpd->sh_hidden_private_base; packet 109 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->gds_addr_lo = lower_32_bits(qpd->gds_context_area); packet 110 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->gds_addr_hi = upper_32_bits(qpd->gds_context_area); packet 118 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c struct pm4_mes_runlist *packet; packet 137 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet = (struct pm4_mes_runlist *)buffer; packet 140 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->header.u32All = pm_build_pm4_header(IT_RUN_LIST, packet 143 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields4.ib_size = ib_size_in_dwords; packet 144 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields4.chain = chain ? 1 : 0; packet 145 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields4.offload_polling = 0; packet 146 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields4.valid = 1; packet 147 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields4.process_cnt = concurrent_proc_cnt; packet 148 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->ordinal2 = lower_32_bits(ib); packet 149 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields3.ib_base_hi = upper_32_bits(ib); packet 157 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c struct pm4_mes_set_resources *packet; packet 159 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet = (struct pm4_mes_set_resources *)buffer; packet 162 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->header.u32All = pm_build_pm4_header(IT_SET_RESOURCES, packet 165 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.queue_type = packet 167 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.vmid_mask = res->vmid_mask; packet 168 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.unmap_latency = KFD_UNMAP_LATENCY_MS / 100; packet 169 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields7.oac_mask = res->oac_mask; packet 170 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields8.gds_heap_base = res->gds_heap_base; packet 171 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields8.gds_heap_size = res->gds_heap_size; packet 173 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->gws_mask_lo = lower_32_bits(res->gws_mask); packet 174 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->gws_mask_hi = upper_32_bits(res->gws_mask); packet 176 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->queue_mask_lo = lower_32_bits(res->queue_mask); packet 177 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->queue_mask_hi = upper_32_bits(res->queue_mask); packet 185 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c struct pm4_mes_map_queues *packet; packet 188 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet = (struct pm4_mes_map_queues *)buffer; packet 191 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->header.u32All = pm_build_pm4_header(IT_MAP_QUEUES, packet 193 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.num_queues = 1; packet 194 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.queue_sel = packet 197 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.engine_sel = packet 199 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.queue_type = packet 205 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.queue_type = packet 209 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.queue_type = packet 214 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.engine_sel = q->properties.sdma_engine_id + packet 222 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields3.doorbell_offset = packet 225 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->mqd_addr_lo = packet 228 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->mqd_addr_hi = packet 231 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->wptr_addr_lo = packet 234 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->wptr_addr_hi = packet 246 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c struct pm4_mes_unmap_queues *packet; packet 248 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet = (struct pm4_mes_unmap_queues *)buffer; packet 251 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->header.u32All = pm_build_pm4_header(IT_UNMAP_QUEUES, packet 256 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.engine_sel = packet 261 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.engine_sel = packet 270 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.action = packet 273 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.action = packet 278 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.queue_sel = packet 280 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.num_queues = 1; packet 281 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields3b.doorbell_offset0 = filter_param; packet 284 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.queue_sel = packet 286 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields3a.pasid = filter_param; packet 289 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.queue_sel = packet 294 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.queue_sel = packet 309 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c struct pm4_mes_query_status *packet; packet 311 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet = (struct pm4_mes_query_status *)buffer; packet 314 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->header.u32All = pm_build_pm4_header(IT_QUERY_STATUS, packet 317 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.context_id = 0; packet 318 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.interrupt_sel = packet 320 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.command = packet 323 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->addr_hi = upper_32_bits((uint64_t)fence_address); packet 324 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->addr_lo = lower_32_bits((uint64_t)fence_address); packet 325 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->data_hi = upper_32_bits((uint64_t)fence_value); packet 326 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->data_lo = lower_32_bits((uint64_t)fence_value); packet 333 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c struct pm4_mec_release_mem *packet; packet 335 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet = (struct pm4_mec_release_mem *)buffer; packet 336 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c memset(buffer, 0, sizeof(*packet)); packet 338 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->header.u32All = pm_build_pm4_header(IT_RELEASE_MEM, packet 339 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c sizeof(*packet)); packet 341 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.event_type = CACHE_FLUSH_AND_INV_TS_EVENT; packet 342 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.event_index = event_index___release_mem__end_of_pipe; packet 343 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.tcl1_action_ena = 1; packet 344 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.tc_action_ena = 1; packet 345 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.cache_policy = cache_policy___release_mem__lru; packet 346 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.atc = 0; packet 348 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields3.data_sel = data_sel___release_mem__send_32_bit_low; packet 349 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields3.int_sel = packet 352 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields4.address_lo_32b = (gpu_addr & 0xffffffff) >> 2; packet 353 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->address_hi = upper_32_bits(gpu_addr); packet 355 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->data_lo = 0; packet 166 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c static int adv7511_packet_enable(struct adv7511 *adv7511, unsigned int packet) packet 168 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c if (packet & 0xff) packet 170 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c packet, 0xff); packet 172 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c if (packet & 0xff00) { packet 173 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c packet >>= 8; packet 175 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c packet, 0xff); packet 181 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c static int adv7511_packet_disable(struct adv7511 *adv7511, unsigned int packet) packet 183 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c if (packet & 0xff) packet 185 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c packet, 0x00); packet 187 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c if (packet & 0xff00) { packet 188 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c packet >>= 8; packet 190 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c packet, 0x00); packet 1026 drivers/gpu/drm/bridge/cdns-dsi.c struct mipi_dsi_packet packet; packet 1035 drivers/gpu/drm/bridge/cdns-dsi.c ret = mipi_dsi_create_packet(&packet, msg); packet 400 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct mipi_dsi_packet *packet) packet 402 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const u8 *tx_buf = packet->payload; packet 403 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c int len = packet->payload_length, pld_data_bytes = sizeof(u32), ret; packet 431 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c memcpy(&word, packet->header, sizeof(packet->header)); packet 473 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c struct mipi_dsi_packet packet; packet 476 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c ret = mipi_dsi_create_packet(&packet, msg); packet 486 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c ret = dw_mipi_dsi_write(dsi, &packet); packet 490 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c ret = dw_mipi_dsi_write(dsi->slave, &packet); packet 501 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c nb_bytes = packet.size; packet 439 drivers/gpu/drm/drm_mipi_dsi.c int mipi_dsi_create_packet(struct mipi_dsi_packet *packet, packet 442 drivers/gpu/drm/drm_mipi_dsi.c if (!packet || !msg) packet 453 drivers/gpu/drm/drm_mipi_dsi.c memset(packet, 0, sizeof(*packet)); packet 454 drivers/gpu/drm/drm_mipi_dsi.c packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f); packet 466 drivers/gpu/drm/drm_mipi_dsi.c packet->header[1] = (msg->tx_len >> 0) & 0xff; packet 467 drivers/gpu/drm/drm_mipi_dsi.c packet->header[2] = (msg->tx_len >> 8) & 0xff; packet 469 drivers/gpu/drm/drm_mipi_dsi.c packet->payload_length = msg->tx_len; packet 470 drivers/gpu/drm/drm_mipi_dsi.c packet->payload = msg->tx_buf; packet 474 drivers/gpu/drm/drm_mipi_dsi.c packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; packet 475 drivers/gpu/drm/drm_mipi_dsi.c packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; packet 478 drivers/gpu/drm/drm_mipi_dsi.c packet->size = sizeof(packet->header) + packet->payload_length; packet 226 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct mipi_dsi_packet packet; packet 961 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct mipi_dsi_packet *pkt = &xfer->packet; packet 1122 drivers/gpu/drm/exynos/exynos_drm_dsi.c if (xfer->packet.payload_length && packet 1123 drivers/gpu/drm/exynos/exynos_drm_dsi.c xfer->tx_done == xfer->packet.payload_length) packet 1129 drivers/gpu/drm/exynos/exynos_drm_dsi.c if (xfer->packet.payload_length || xfer->rx_len) packet 1166 drivers/gpu/drm/exynos/exynos_drm_dsi.c xfer, xfer->packet.payload_length, xfer->tx_done, xfer->rx_len, packet 1169 drivers/gpu/drm/exynos/exynos_drm_dsi.c if (xfer->tx_done != xfer->packet.payload_length) packet 1240 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct mipi_dsi_packet *pkt = &xfer->packet; packet 1617 drivers/gpu/drm/exynos/exynos_drm_dsi.c ret = mipi_dsi_create_packet(&xfer.packet, msg); packet 129 drivers/gpu/drm/i915/display/vlv_dsi.c struct mipi_dsi_packet packet; packet 135 drivers/gpu/drm/i915/display/vlv_dsi.c ret = mipi_dsi_create_packet(&packet, msg); packet 139 drivers/gpu/drm/i915/display/vlv_dsi.c header = packet.header; packet 140 drivers/gpu/drm/i915/display/vlv_dsi.c data = packet.payload; packet 155 drivers/gpu/drm/i915/display/vlv_dsi.c if (packet.payload_length) { packet 160 drivers/gpu/drm/i915/display/vlv_dsi.c write_data(dev_priv, data_reg, packet.payload, packet 161 drivers/gpu/drm/i915/display/vlv_dsi.c packet.payload_length); packet 186 drivers/gpu/drm/i915/display/vlv_dsi.c return 4 + packet.payload_length; packet 1149 drivers/gpu/drm/msm/dsi/dsi_host.c struct mipi_dsi_packet packet; packet 1154 drivers/gpu/drm/msm/dsi/dsi_host.c ret = mipi_dsi_create_packet(&packet, msg); packet 1159 drivers/gpu/drm/msm/dsi/dsi_host.c len = (packet.size + 3) & (~0x3); packet 1174 drivers/gpu/drm/msm/dsi/dsi_host.c data[0] = packet.header[1]; packet 1175 drivers/gpu/drm/msm/dsi/dsi_host.c data[1] = packet.header[2]; packet 1176 drivers/gpu/drm/msm/dsi/dsi_host.c data[2] = packet.header[0]; packet 1184 drivers/gpu/drm/msm/dsi/dsi_host.c if (packet.payload && packet.payload_length) packet 1185 drivers/gpu/drm/msm/dsi/dsi_host.c memcpy(data + 4, packet.payload, packet.payload_length); packet 1188 drivers/gpu/drm/msm/dsi/dsi_host.c if (packet.size < len) packet 1189 drivers/gpu/drm/msm/dsi/dsi_host.c memset(data + packet.size, 0xff, len - packet.size); packet 318 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c enum sun6i_dsi_inst_packet packet, packet 324 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c SUN6I_DSI_INST_FUNC_TRANS_PACKET(packet) | packet 1241 drivers/gpu/drm/tegra/dsi.c struct mipi_dsi_packet packet; packet 1247 drivers/gpu/drm/tegra/dsi.c err = mipi_dsi_create_packet(&packet, msg); packet 1251 drivers/gpu/drm/tegra/dsi.c header = packet.header; packet 1254 drivers/gpu/drm/tegra/dsi.c if (packet.size > dsi->video_fifo_depth * 4) packet 1281 drivers/gpu/drm/tegra/dsi.c if (packet.size > dsi->host_fifo_depth * 4) packet 1305 drivers/gpu/drm/tegra/dsi.c if (packet.payload_length > 0) packet 1306 drivers/gpu/drm/tegra/dsi.c tegra_dsi_writesl(dsi, DSI_WR_DATA, packet.payload, packet 1307 drivers/gpu/drm/tegra/dsi.c packet.payload_length); packet 1359 drivers/gpu/drm/tegra/dsi.c count = 4 + packet.payload_length; packet 1087 drivers/gpu/drm/vc4/vc4_dsi.c struct mipi_dsi_packet packet; packet 1093 drivers/gpu/drm/vc4/vc4_dsi.c mipi_dsi_create_packet(&packet, msg); packet 1095 drivers/gpu/drm/vc4/vc4_dsi.c pkth |= VC4_SET_FIELD(packet.header[0], DSI_TXPKT1H_BC_DT); packet 1096 drivers/gpu/drm/vc4/vc4_dsi.c pkth |= VC4_SET_FIELD(packet.header[1] | packet 1097 drivers/gpu/drm/vc4/vc4_dsi.c (packet.header[2] << 8), packet 1109 drivers/gpu/drm/vc4/vc4_dsi.c if (packet.payload_length <= 16) { packet 1110 drivers/gpu/drm/vc4/vc4_dsi.c cmd_fifo_len = packet.payload_length; packet 1113 drivers/gpu/drm/vc4/vc4_dsi.c cmd_fifo_len = (packet.payload_length % packet 1115 drivers/gpu/drm/vc4/vc4_dsi.c pix_fifo_len = ((packet.payload_length - cmd_fifo_len) / packet 1133 drivers/gpu/drm/vc4/vc4_dsi.c DSI_PORT_WRITE(TXPKT_CMD_FIFO, packet.payload[i]); packet 1135 drivers/gpu/drm/vc4/vc4_dsi.c const u8 *pix = packet.payload + cmd_fifo_len + i * 4; packet 432 drivers/gpu/drm/vc4/vc4_validate.c #define VC4_DEFINE_PACKET(packet, func) \ packet 433 drivers/gpu/drm/vc4/vc4_validate.c [packet] = { packet ## _SIZE, #packet, func } packet 246 drivers/hid/hid-hyperv.c struct vmpacket_descriptor *packet) packet 254 drivers/hid/hid-hyperv.c pipe_msg = (struct pipe_prt_msg *)((unsigned long)packet + packet 255 drivers/hid/hid-hyperv.c (packet->offset8 << 3)); packet 407 drivers/hwtracing/coresight/coresight-stm.c unsigned int packet, packet 433 drivers/hwtracing/coresight/coresight-stm.c switch (packet) { packet 846 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.packet = stm_generic_packet; packet 65 drivers/hwtracing/intel_th/sth.c unsigned int packet, packet 83 drivers/hwtracing/intel_th/sth.c switch (packet) { packet 221 drivers/hwtracing/intel_th/sth.c sth->stm.packet = sth_stm_packet; packet 586 drivers/hwtracing/stm/core.c sz = data->packet(data, m, c, STP_PACKET_DATA, flags, sz, packet 872 drivers/hwtracing/stm/core.c if (!stm_data->packet || !stm_data->sw_nchannels) packet 19 drivers/hwtracing/stm/dummy_stm.c unsigned int channel, unsigned int packet, unsigned int flags, packet 31 drivers/hwtracing/stm/dummy_stm.c packet, size, pl); packet 89 drivers/hwtracing/stm/dummy_stm.c dummy_stm[i].packet = dummy_stm_packet; packet 22 drivers/hwtracing/stm/p_basic.c data->packet(data, m, c, STP_PACKET_FLAG, 0, 0, &nil); packet 271 drivers/hwtracing/stm/p_sys-t.c sz = data->packet(data, m, c, STP_PACKET_DATA, STP_PACKET_TIMESTAMPED, packet 282 drivers/hwtracing/stm/p_sys-t.c data->packet(data, m, c, STP_PACKET_FLAG, 0, 0, &nil); packet 319 drivers/hwtracing/stm/p_sys-t.c sz = data->packet(data, m, c, STP_PACKET_DATA, STP_PACKET_TIMESTAMPED, packet 333 drivers/hwtracing/stm/p_sys-t.c sz = data->packet(data, m, c, STP_PACKET_DATA, 0, 2, packet 351 drivers/hwtracing/stm/p_sys-t.c data->packet(data, m, c, STP_PACKET_FLAG, 0, 0, &nil); packet 180 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet) packet 186 drivers/infiniband/core/user_mad.c for (packet->mad.hdr.id = 0; packet 187 drivers/infiniband/core/user_mad.c packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; packet 188 drivers/infiniband/core/user_mad.c packet->mad.hdr.id++) packet 189 drivers/infiniband/core/user_mad.c if (agent == __get_agent(file, packet->mad.hdr.id)) { packet 190 drivers/infiniband/core/user_mad.c list_add_tail(&packet->list, &file->recv_list); packet 202 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet) packet 205 drivers/infiniband/core/user_mad.c list_del(&packet->list); packet 213 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet = send_wc->send_buf->context[0]; packet 215 drivers/infiniband/core/user_mad.c dequeue_send(file, packet); packet 216 drivers/infiniband/core/user_mad.c rdma_destroy_ah(packet->msg->ah, RDMA_DESTROY_AH_SLEEPABLE); packet 217 drivers/infiniband/core/user_mad.c ib_free_send_mad(packet->msg); packet 220 drivers/infiniband/core/user_mad.c packet->length = IB_MGMT_MAD_HDR; packet 221 drivers/infiniband/core/user_mad.c packet->mad.hdr.status = ETIMEDOUT; packet 222 drivers/infiniband/core/user_mad.c if (!queue_packet(file, agent, packet)) packet 225 drivers/infiniband/core/user_mad.c kfree(packet); packet 233 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet; packet 238 drivers/infiniband/core/user_mad.c packet = kzalloc(sizeof *packet, GFP_KERNEL); packet 239 drivers/infiniband/core/user_mad.c if (!packet) packet 242 drivers/infiniband/core/user_mad.c packet->length = mad_recv_wc->mad_len; packet 243 drivers/infiniband/core/user_mad.c packet->recv_wc = mad_recv_wc; packet 245 drivers/infiniband/core/user_mad.c packet->mad.hdr.status = 0; packet 246 drivers/infiniband/core/user_mad.c packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; packet 247 drivers/infiniband/core/user_mad.c packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp); packet 253 drivers/infiniband/core/user_mad.c packet->mad.hdr.lid = ib_lid_be16(0xFFFF & packet 256 drivers/infiniband/core/user_mad.c packet->mad.hdr.lid = ib_lid_be16(mad_recv_wc->wc->slid); packet 257 drivers/infiniband/core/user_mad.c packet->mad.hdr.sl = mad_recv_wc->wc->sl; packet 258 drivers/infiniband/core/user_mad.c packet->mad.hdr.path_bits = mad_recv_wc->wc->dlid_path_bits; packet 259 drivers/infiniband/core/user_mad.c packet->mad.hdr.pkey_index = mad_recv_wc->wc->pkey_index; packet 260 drivers/infiniband/core/user_mad.c packet->mad.hdr.grh_present = !!(mad_recv_wc->wc->wc_flags & IB_WC_GRH); packet 261 drivers/infiniband/core/user_mad.c if (packet->mad.hdr.grh_present) { packet 274 drivers/infiniband/core/user_mad.c packet->mad.hdr.gid_index = grh->sgid_index; packet 275 drivers/infiniband/core/user_mad.c packet->mad.hdr.hop_limit = grh->hop_limit; packet 276 drivers/infiniband/core/user_mad.c packet->mad.hdr.traffic_class = grh->traffic_class; packet 277 drivers/infiniband/core/user_mad.c memcpy(packet->mad.hdr.gid, &grh->dgid, 16); packet 278 drivers/infiniband/core/user_mad.c packet->mad.hdr.flow_label = cpu_to_be32(grh->flow_label); packet 282 drivers/infiniband/core/user_mad.c if (queue_packet(file, agent, packet)) packet 287 drivers/infiniband/core/user_mad.c kfree(packet); packet 293 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet, size_t count) packet 299 drivers/infiniband/core/user_mad.c recv_buf = &packet->recv_wc->recv_buf; packet 300 drivers/infiniband/core/user_mad.c seg_size = packet->recv_wc->mad_seg_size; packet 303 drivers/infiniband/core/user_mad.c if ((packet->length <= seg_size && packet 304 drivers/infiniband/core/user_mad.c count < hdr_size(file) + packet->length) || packet 305 drivers/infiniband/core/user_mad.c (packet->length > seg_size && packet 309 drivers/infiniband/core/user_mad.c if (copy_to_user(buf, &packet->mad, hdr_size(file))) packet 313 drivers/infiniband/core/user_mad.c seg_payload = min_t(int, packet->length, seg_size); packet 317 drivers/infiniband/core/user_mad.c if (seg_payload < packet->length) { packet 322 drivers/infiniband/core/user_mad.c if (count < hdr_size(file) + packet->length) { packet 332 drivers/infiniband/core/user_mad.c for (left = packet->length - seg_payload, buf += seg_payload; packet 343 drivers/infiniband/core/user_mad.c trace_ib_umad_read_recv(file, &packet->mad.hdr, &recv_buf->mad->mad_hdr); packet 345 drivers/infiniband/core/user_mad.c return hdr_size(file) + packet->length; packet 349 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet, size_t count) packet 351 drivers/infiniband/core/user_mad.c ssize_t size = hdr_size(file) + packet->length; packet 356 drivers/infiniband/core/user_mad.c if (copy_to_user(buf, &packet->mad, hdr_size(file))) packet 361 drivers/infiniband/core/user_mad.c if (copy_to_user(buf, packet->mad.data, packet->length)) packet 364 drivers/infiniband/core/user_mad.c trace_ib_umad_read_send(file, &packet->mad.hdr, packet 365 drivers/infiniband/core/user_mad.c (struct ib_mad_hdr *)&packet->mad.data); packet 374 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet; packet 395 drivers/infiniband/core/user_mad.c packet = list_entry(file->recv_list.next, struct ib_umad_packet, list); packet 396 drivers/infiniband/core/user_mad.c list_del(&packet->list); packet 400 drivers/infiniband/core/user_mad.c if (packet->recv_wc) packet 401 drivers/infiniband/core/user_mad.c ret = copy_recv_mad(file, buf, packet, count); packet 403 drivers/infiniband/core/user_mad.c ret = copy_send_mad(file, buf, packet, count); packet 408 drivers/infiniband/core/user_mad.c list_add(&packet->list, &file->recv_list); packet 411 drivers/infiniband/core/user_mad.c if (packet->recv_wc) packet 412 drivers/infiniband/core/user_mad.c ib_free_recv_mad(packet->recv_wc); packet 413 drivers/infiniband/core/user_mad.c kfree(packet); packet 451 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet) packet 456 drivers/infiniband/core/user_mad.c hdr = (struct ib_mad_hdr *) packet->mad.data; packet 476 drivers/infiniband/core/user_mad.c if (same_destination(&packet->mad.hdr, &sent_packet->mad.hdr)) packet 487 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet; packet 499 drivers/infiniband/core/user_mad.c packet = kzalloc(sizeof *packet + IB_MGMT_RMPP_HDR, GFP_KERNEL); packet 500 drivers/infiniband/core/user_mad.c if (!packet) packet 503 drivers/infiniband/core/user_mad.c if (copy_from_user(&packet->mad, buf, hdr_size(file))) { packet 508 drivers/infiniband/core/user_mad.c if (packet->mad.hdr.id >= IB_UMAD_MAX_AGENTS) { packet 515 drivers/infiniband/core/user_mad.c if (copy_from_user(packet->mad.data, buf, IB_MGMT_RMPP_HDR)) { packet 522 drivers/infiniband/core/user_mad.c trace_ib_umad_write(file, &packet->mad.hdr, packet 523 drivers/infiniband/core/user_mad.c (struct ib_mad_hdr *)&packet->mad.data); packet 525 drivers/infiniband/core/user_mad.c agent = __get_agent(file, packet->mad.hdr.id); packet 534 drivers/infiniband/core/user_mad.c rdma_ah_set_dlid(&ah_attr, be16_to_cpu(packet->mad.hdr.lid)); packet 535 drivers/infiniband/core/user_mad.c rdma_ah_set_sl(&ah_attr, packet->mad.hdr.sl); packet 536 drivers/infiniband/core/user_mad.c rdma_ah_set_path_bits(&ah_attr, packet->mad.hdr.path_bits); packet 538 drivers/infiniband/core/user_mad.c if (packet->mad.hdr.grh_present) { packet 540 drivers/infiniband/core/user_mad.c be32_to_cpu(packet->mad.hdr.flow_label), packet 541 drivers/infiniband/core/user_mad.c packet->mad.hdr.gid_index, packet 542 drivers/infiniband/core/user_mad.c packet->mad.hdr.hop_limit, packet 543 drivers/infiniband/core/user_mad.c packet->mad.hdr.traffic_class); packet 544 drivers/infiniband/core/user_mad.c rdma_ah_set_dgid_raw(&ah_attr, packet->mad.hdr.gid); packet 553 drivers/infiniband/core/user_mad.c rmpp_mad = (struct ib_rmpp_mad *) packet->mad.data; packet 566 drivers/infiniband/core/user_mad.c base_version = ((struct ib_mad_hdr *)&packet->mad.data)->base_version; packet 568 drivers/infiniband/core/user_mad.c packet->msg = ib_create_send_mad(agent, packet 569 drivers/infiniband/core/user_mad.c be32_to_cpu(packet->mad.hdr.qpn), packet 570 drivers/infiniband/core/user_mad.c packet->mad.hdr.pkey_index, rmpp_active, packet 573 drivers/infiniband/core/user_mad.c if (IS_ERR(packet->msg)) { packet 574 drivers/infiniband/core/user_mad.c ret = PTR_ERR(packet->msg); packet 578 drivers/infiniband/core/user_mad.c packet->msg->ah = ah; packet 579 drivers/infiniband/core/user_mad.c packet->msg->timeout_ms = packet->mad.hdr.timeout_ms; packet 580 drivers/infiniband/core/user_mad.c packet->msg->retries = packet->mad.hdr.retries; packet 581 drivers/infiniband/core/user_mad.c packet->msg->context[0] = packet; packet 584 drivers/infiniband/core/user_mad.c memcpy(packet->msg->mad, packet->mad.data, IB_MGMT_MAD_HDR); packet 587 drivers/infiniband/core/user_mad.c if (copy_from_user(packet->msg->mad + copy_offset, packet 594 drivers/infiniband/core/user_mad.c ret = copy_rmpp_mad(packet->msg, buf); packet 604 drivers/infiniband/core/user_mad.c if (!ib_response_mad(packet->msg->mad)) { packet 605 drivers/infiniband/core/user_mad.c tid = &((struct ib_mad_hdr *) packet->msg->mad)->tid; packet 615 drivers/infiniband/core/user_mad.c list_add_tail(&packet->list, &file->send_list); packet 619 drivers/infiniband/core/user_mad.c ret = is_duplicate(file, packet); packet 621 drivers/infiniband/core/user_mad.c list_add_tail(&packet->list, &file->send_list); packet 629 drivers/infiniband/core/user_mad.c ret = ib_post_send_mad(packet->msg, NULL); packet 637 drivers/infiniband/core/user_mad.c dequeue_send(file, packet); packet 639 drivers/infiniband/core/user_mad.c ib_free_send_mad(packet->msg); packet 645 drivers/infiniband/core/user_mad.c kfree(packet); packet 1019 drivers/infiniband/core/user_mad.c struct ib_umad_packet *packet, *tmp; packet 1029 drivers/infiniband/core/user_mad.c list_for_each_entry_safe(packet, tmp, &file->recv_list, list) { packet 1030 drivers/infiniband/core/user_mad.c if (packet->recv_wc) packet 1031 drivers/infiniband/core/user_mad.c ib_free_recv_mad(packet->recv_wc); packet 1032 drivers/infiniband/core/user_mad.c kfree(packet); packet 251 drivers/infiniband/hw/hfi1/driver.c struct hfi1_packet *packet) packet 253 drivers/infiniband/hw/hfi1/driver.c struct ib_header *rhdr = packet->hdr; packet 254 drivers/infiniband/hw/hfi1/driver.c u32 rte = rhf_rcv_type_err(packet->rhf); packet 261 drivers/infiniband/hw/hfi1/driver.c if ((packet->rhf & RHF_DC_ERR) && packet 265 drivers/infiniband/hw/hfi1/driver.c if (packet->rhf & RHF_ICRC_ERR) packet 268 drivers/infiniband/hw/hfi1/driver.c if (packet->etype == RHF_RCV_TYPE_BYPASS) { packet 275 drivers/infiniband/hw/hfi1/driver.c packet->ohdr = &rhdr->u.oth; packet 277 drivers/infiniband/hw/hfi1/driver.c packet->ohdr = &rhdr->u.l.oth; packet 278 drivers/infiniband/hw/hfi1/driver.c packet->grh = &rhdr->u.l.grh; packet 284 drivers/infiniband/hw/hfi1/driver.c if (packet->rhf & RHF_TID_ERR) { packet 286 drivers/infiniband/hw/hfi1/driver.c u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ packet 295 drivers/infiniband/hw/hfi1/driver.c if (packet->grh) { packet 297 drivers/infiniband/hw/hfi1/driver.c struct ib_grh *grh = packet->grh; packet 307 drivers/infiniband/hw/hfi1/driver.c qp_num = ib_bth_get_qpn(packet->ohdr); packet 333 drivers/infiniband/hw/hfi1/driver.c hfi1_rc_hdrerr(rcd, packet, qp); packet 352 drivers/infiniband/hw/hfi1/driver.c if (rhf_use_egr_bfr(packet->rhf)) packet 353 drivers/infiniband/hw/hfi1/driver.c ebuf = packet->ebuf; packet 358 drivers/infiniband/hw/hfi1/driver.c opcode = ib_bth_get_opcode(packet->ohdr); packet 369 drivers/infiniband/hw/hfi1/driver.c sc5 = hfi1_9B_get_sc5(rhdr, packet->rhf); packet 372 drivers/infiniband/hw/hfi1/driver.c lqpn = ib_bth_get_qpn(packet->ohdr); packet 400 drivers/infiniband/hw/hfi1/driver.c packet->rhf &= ~RHF_RCV_TYPE_ERR_SMASK; packet 412 drivers/infiniband/hw/hfi1/driver.c struct hfi1_packet *packet) packet 414 drivers/infiniband/hw/hfi1/driver.c packet->rsize = rcd->rcvhdrqentsize; /* words */ packet 415 drivers/infiniband/hw/hfi1/driver.c packet->maxcnt = rcd->rcvhdrq_cnt * packet->rsize; /* words */ packet 416 drivers/infiniband/hw/hfi1/driver.c packet->rcd = rcd; packet 417 drivers/infiniband/hw/hfi1/driver.c packet->updegr = 0; packet 418 drivers/infiniband/hw/hfi1/driver.c packet->etail = -1; packet 419 drivers/infiniband/hw/hfi1/driver.c packet->rhf_addr = get_rhf_addr(rcd); packet 420 drivers/infiniband/hw/hfi1/driver.c packet->rhf = rhf_to_cpu(packet->rhf_addr); packet 421 drivers/infiniband/hw/hfi1/driver.c packet->rhqoff = rcd->head; packet 422 drivers/infiniband/hw/hfi1/driver.c packet->numpkt = 0; packet 545 drivers/infiniband/hw/hfi1/driver.c struct hfi1_packet *packet) packet 547 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 550 drivers/infiniband/hw/hfi1/driver.c mdata->rsize = packet->rsize; packet 551 drivers/infiniband/hw/hfi1/driver.c mdata->maxcnt = packet->maxcnt; packet 552 drivers/infiniband/hw/hfi1/driver.c mdata->ps_head = packet->rhqoff; packet 610 drivers/infiniband/hw/hfi1/driver.c #define prescan_rxq(rcd, packet) \ packet 613 drivers/infiniband/hw/hfi1/driver.c __prescan_rxq(packet); \ packet 615 drivers/infiniband/hw/hfi1/driver.c static void __prescan_rxq(struct hfi1_packet *packet) packet 617 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 620 drivers/infiniband/hw/hfi1/driver.c init_ps_mdata(&mdata, packet); packet 625 drivers/infiniband/hw/hfi1/driver.c packet->rcd->rhf_offset; packet 642 drivers/infiniband/hw/hfi1/driver.c packet->hdr = hfi1_get_msgheader(packet->rcd, rhf_addr); packet 643 drivers/infiniband/hw/hfi1/driver.c hdr = packet->hdr; packet 647 drivers/infiniband/hw/hfi1/driver.c packet->ohdr = &hdr->u.oth; packet 648 drivers/infiniband/hw/hfi1/driver.c packet->grh = NULL; packet 650 drivers/infiniband/hw/hfi1/driver.c packet->ohdr = &hdr->u.l.oth; packet 651 drivers/infiniband/hw/hfi1/driver.c packet->grh = &hdr->u.l.grh; packet 656 drivers/infiniband/hw/hfi1/driver.c if (!hfi1_may_ecn(packet)) packet 659 drivers/infiniband/hw/hfi1/driver.c bth1 = be32_to_cpu(packet->ohdr->bth[1]); packet 669 drivers/infiniband/hw/hfi1/driver.c hfi1_process_ecn_slowpath(qp, packet, true); packet 674 drivers/infiniband/hw/hfi1/driver.c packet->ohdr->bth[1] = cpu_to_be32(bth1); packet 680 drivers/infiniband/hw/hfi1/driver.c static void process_rcv_qp_work(struct hfi1_packet *packet) packet 683 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 693 drivers/infiniband/hw/hfi1/driver.c packet->qp = qp; packet 694 drivers/infiniband/hw/hfi1/driver.c hfi1_send_rc_ack(packet, 0); packet 710 drivers/infiniband/hw/hfi1/driver.c static noinline int max_packet_exceeded(struct hfi1_packet *packet, int thread) packet 713 drivers/infiniband/hw/hfi1/driver.c if ((packet->numpkt & (MAX_PKT_RECV_THREAD - 1)) == 0) packet 715 drivers/infiniband/hw/hfi1/driver.c process_rcv_qp_work(packet); packet 719 drivers/infiniband/hw/hfi1/driver.c this_cpu_inc(*packet->rcd->dd->rcv_limit); packet 724 drivers/infiniband/hw/hfi1/driver.c static inline int check_max_packet(struct hfi1_packet *packet, int thread) packet 728 drivers/infiniband/hw/hfi1/driver.c if (unlikely((packet->numpkt & (MAX_PKT_RECV - 1)) == 0)) packet 729 drivers/infiniband/hw/hfi1/driver.c ret = max_packet_exceeded(packet, thread); packet 733 drivers/infiniband/hw/hfi1/driver.c static noinline int skip_rcv_packet(struct hfi1_packet *packet, int thread) packet 737 drivers/infiniband/hw/hfi1/driver.c packet->rcd->dd->ctx0_seq_drop++; packet 739 drivers/infiniband/hw/hfi1/driver.c packet->rhqoff += packet->rsize; packet 740 drivers/infiniband/hw/hfi1/driver.c if (packet->rhqoff >= packet->maxcnt) packet 741 drivers/infiniband/hw/hfi1/driver.c packet->rhqoff = 0; packet 743 drivers/infiniband/hw/hfi1/driver.c packet->numpkt++; packet 744 drivers/infiniband/hw/hfi1/driver.c ret = check_max_packet(packet, thread); packet 746 drivers/infiniband/hw/hfi1/driver.c packet->rhf_addr = (__le32 *)packet->rcd->rcvhdrq + packet->rhqoff + packet 747 drivers/infiniband/hw/hfi1/driver.c packet->rcd->rhf_offset; packet 748 drivers/infiniband/hw/hfi1/driver.c packet->rhf = rhf_to_cpu(packet->rhf_addr); packet 753 drivers/infiniband/hw/hfi1/driver.c static inline int process_rcv_packet(struct hfi1_packet *packet, int thread) packet 757 drivers/infiniband/hw/hfi1/driver.c packet->etype = rhf_rcv_type(packet->rhf); packet 760 drivers/infiniband/hw/hfi1/driver.c packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ packet 762 drivers/infiniband/hw/hfi1/driver.c packet->ebuf = NULL; packet 763 drivers/infiniband/hw/hfi1/driver.c if (rhf_use_egr_bfr(packet->rhf)) { packet 764 drivers/infiniband/hw/hfi1/driver.c packet->etail = rhf_egr_index(packet->rhf); packet 765 drivers/infiniband/hw/hfi1/driver.c packet->ebuf = get_egrbuf(packet->rcd, packet->rhf, packet 766 drivers/infiniband/hw/hfi1/driver.c &packet->updegr); packet 772 drivers/infiniband/hw/hfi1/driver.c prefetch_range(packet->ebuf, packet 773 drivers/infiniband/hw/hfi1/driver.c packet->tlen - ((packet->rcd->rcvhdrqentsize - packet 774 drivers/infiniband/hw/hfi1/driver.c (rhf_hdrq_offset(packet->rhf) packet 786 drivers/infiniband/hw/hfi1/driver.c packet->rcd->rhf_rcv_function_map[packet->etype](packet); packet 787 drivers/infiniband/hw/hfi1/driver.c packet->numpkt++; packet 790 drivers/infiniband/hw/hfi1/driver.c packet->rhqoff += packet->rsize; packet 791 drivers/infiniband/hw/hfi1/driver.c if (packet->rhqoff >= packet->maxcnt) packet 792 drivers/infiniband/hw/hfi1/driver.c packet->rhqoff = 0; packet 794 drivers/infiniband/hw/hfi1/driver.c ret = check_max_packet(packet, thread); packet 796 drivers/infiniband/hw/hfi1/driver.c packet->rhf_addr = (__le32 *)packet->rcd->rcvhdrq + packet->rhqoff + packet 797 drivers/infiniband/hw/hfi1/driver.c packet->rcd->rhf_offset; packet 798 drivers/infiniband/hw/hfi1/driver.c packet->rhf = rhf_to_cpu(packet->rhf_addr); packet 803 drivers/infiniband/hw/hfi1/driver.c static inline void process_rcv_update(int last, struct hfi1_packet *packet) packet 811 drivers/infiniband/hw/hfi1/driver.c if (!last && !(packet->numpkt & 0xf)) { packet 812 drivers/infiniband/hw/hfi1/driver.c update_usrhead(packet->rcd, packet->rhqoff, packet->updegr, packet 813 drivers/infiniband/hw/hfi1/driver.c packet->etail, 0, 0); packet 814 drivers/infiniband/hw/hfi1/driver.c packet->updegr = 0; packet 816 drivers/infiniband/hw/hfi1/driver.c packet->grh = NULL; packet 819 drivers/infiniband/hw/hfi1/driver.c static inline void finish_packet(struct hfi1_packet *packet) packet 827 drivers/infiniband/hw/hfi1/driver.c update_usrhead(packet->rcd, packet->rcd->head, packet->updegr, packet 828 drivers/infiniband/hw/hfi1/driver.c packet->etail, rcv_intr_dynamic, packet->numpkt); packet 838 drivers/infiniband/hw/hfi1/driver.c struct hfi1_packet packet; packet 840 drivers/infiniband/hw/hfi1/driver.c init_packet(rcd, &packet); packet 841 drivers/infiniband/hw/hfi1/driver.c seq = rhf_rcv_seq(packet.rhf); packet 847 drivers/infiniband/hw/hfi1/driver.c prescan_rxq(rcd, &packet); packet 850 drivers/infiniband/hw/hfi1/driver.c last = process_rcv_packet(&packet, thread); packet 851 drivers/infiniband/hw/hfi1/driver.c seq = rhf_rcv_seq(packet.rhf); packet 856 drivers/infiniband/hw/hfi1/driver.c process_rcv_update(last, &packet); packet 858 drivers/infiniband/hw/hfi1/driver.c process_rcv_qp_work(&packet); packet 859 drivers/infiniband/hw/hfi1/driver.c rcd->head = packet.rhqoff; packet 861 drivers/infiniband/hw/hfi1/driver.c finish_packet(&packet); packet 869 drivers/infiniband/hw/hfi1/driver.c struct hfi1_packet packet; packet 871 drivers/infiniband/hw/hfi1/driver.c init_packet(rcd, &packet); packet 873 drivers/infiniband/hw/hfi1/driver.c if (packet.rhqoff == hdrqtail) { packet 879 drivers/infiniband/hw/hfi1/driver.c prescan_rxq(rcd, &packet); packet 882 drivers/infiniband/hw/hfi1/driver.c last = process_rcv_packet(&packet, thread); packet 883 drivers/infiniband/hw/hfi1/driver.c if (packet.rhqoff == hdrqtail) packet 885 drivers/infiniband/hw/hfi1/driver.c process_rcv_update(last, &packet); packet 887 drivers/infiniband/hw/hfi1/driver.c process_rcv_qp_work(&packet); packet 888 drivers/infiniband/hw/hfi1/driver.c rcd->head = packet.rhqoff; packet 890 drivers/infiniband/hw/hfi1/driver.c finish_packet(&packet); packet 970 drivers/infiniband/hw/hfi1/driver.c struct hfi1_packet *packet, packet 974 drivers/infiniband/hw/hfi1/driver.c u8 etype = rhf_rcv_type(packet->rhf); packet 978 drivers/infiniband/hw/hfi1/driver.c struct ib_header *hdr = hfi1_get_msgheader(packet->rcd, packet 979 drivers/infiniband/hw/hfi1/driver.c packet->rhf_addr); packet 980 drivers/infiniband/hw/hfi1/driver.c sc = hfi1_9B_get_sc5(hdr, packet->rhf); packet 983 drivers/infiniband/hw/hfi1/driver.c packet->rcd, packet 984 drivers/infiniband/hw/hfi1/driver.c packet->rhf_addr); packet 1015 drivers/infiniband/hw/hfi1/driver.c struct hfi1_packet packet; packet 1021 drivers/infiniband/hw/hfi1/driver.c init_packet(rcd, &packet); packet 1024 drivers/infiniband/hw/hfi1/driver.c u32 seq = rhf_rcv_seq(packet.rhf); packet 1033 drivers/infiniband/hw/hfi1/driver.c if (packet.rhqoff == hdrqtail) { packet 1044 drivers/infiniband/hw/hfi1/driver.c u32 seq = rhf_rcv_seq(packet.rhf); packet 1051 drivers/infiniband/hw/hfi1/driver.c prescan_rxq(rcd, &packet); packet 1060 drivers/infiniband/hw/hfi1/driver.c packet.rhqoff += packet.rsize; packet 1061 drivers/infiniband/hw/hfi1/driver.c packet.rhf_addr = (__le32 *)rcd->rcvhdrq + packet 1062 drivers/infiniband/hw/hfi1/driver.c packet.rhqoff + packet 1064 drivers/infiniband/hw/hfi1/driver.c packet.rhf = rhf_to_cpu(packet.rhf_addr); packet 1067 drivers/infiniband/hw/hfi1/driver.c last = skip_rcv_packet(&packet, thread); packet 1073 drivers/infiniband/hw/hfi1/driver.c set_armed_to_active(rcd, &packet, dd)) packet 1075 drivers/infiniband/hw/hfi1/driver.c last = process_rcv_packet(&packet, thread); packet 1079 drivers/infiniband/hw/hfi1/driver.c u32 seq = rhf_rcv_seq(packet.rhf); packet 1091 drivers/infiniband/hw/hfi1/driver.c if (packet.rhqoff == hdrqtail) packet 1098 drivers/infiniband/hw/hfi1/driver.c u32 seq = rhf_rcv_seq(packet.rhf); packet 1114 drivers/infiniband/hw/hfi1/driver.c process_rcv_update(last, &packet); packet 1117 drivers/infiniband/hw/hfi1/driver.c process_rcv_qp_work(&packet); packet 1118 drivers/infiniband/hw/hfi1/driver.c rcd->head = packet.rhqoff; packet 1125 drivers/infiniband/hw/hfi1/driver.c finish_packet(&packet); packet 1410 drivers/infiniband/hw/hfi1/driver.c static inline void hfi1_setup_ib_header(struct hfi1_packet *packet) packet 1412 drivers/infiniband/hw/hfi1/driver.c packet->hdr = (struct hfi1_ib_message_header *) packet 1413 drivers/infiniband/hw/hfi1/driver.c hfi1_get_msgheader(packet->rcd, packet 1414 drivers/infiniband/hw/hfi1/driver.c packet->rhf_addr); packet 1415 drivers/infiniband/hw/hfi1/driver.c packet->hlen = (u8 *)packet->rhf_addr - (u8 *)packet->hdr; packet 1418 drivers/infiniband/hw/hfi1/driver.c static int hfi1_bypass_ingress_pkt_check(struct hfi1_packet *packet) packet 1420 drivers/infiniband/hw/hfi1/driver.c struct hfi1_pportdata *ppd = packet->rcd->ppd; packet 1423 drivers/infiniband/hw/hfi1/driver.c if ((!packet->slid) || (!packet->dlid)) packet 1427 drivers/infiniband/hw/hfi1/driver.c if ((!(hfi1_is_16B_mcast(packet->dlid))) && packet 1428 drivers/infiniband/hw/hfi1/driver.c (packet->dlid != packet 1430 drivers/infiniband/hw/hfi1/driver.c if ((packet->dlid & ~((1 << ppd->lmc) - 1)) != ppd->lid) packet 1435 drivers/infiniband/hw/hfi1/driver.c if ((hfi1_is_16B_mcast(packet->dlid)) && (packet->sc == 0xF)) packet 1439 drivers/infiniband/hw/hfi1/driver.c if ((packet->dlid == opa_get_lid(be32_to_cpu(OPA_LID_PERMISSIVE), packet 1441 drivers/infiniband/hw/hfi1/driver.c (packet->sc != 0xF)) packet 1447 drivers/infiniband/hw/hfi1/driver.c static int hfi1_setup_9B_packet(struct hfi1_packet *packet) packet 1449 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); packet 1453 drivers/infiniband/hw/hfi1/driver.c hfi1_setup_ib_header(packet); packet 1454 drivers/infiniband/hw/hfi1/driver.c hdr = packet->hdr; packet 1458 drivers/infiniband/hw/hfi1/driver.c packet->ohdr = &hdr->u.oth; packet 1459 drivers/infiniband/hw/hfi1/driver.c packet->grh = NULL; packet 1463 drivers/infiniband/hw/hfi1/driver.c packet->ohdr = &hdr->u.l.oth; packet 1464 drivers/infiniband/hw/hfi1/driver.c packet->grh = &hdr->u.l.grh; packet 1465 drivers/infiniband/hw/hfi1/driver.c if (packet->grh->next_hdr != IB_GRH_NEXT_HDR) packet 1467 drivers/infiniband/hw/hfi1/driver.c vtf = be32_to_cpu(packet->grh->version_tclass_flow); packet 1475 drivers/infiniband/hw/hfi1/driver.c packet->payload = packet->ebuf; packet 1476 drivers/infiniband/hw/hfi1/driver.c packet->opcode = ib_bth_get_opcode(packet->ohdr); packet 1477 drivers/infiniband/hw/hfi1/driver.c packet->slid = ib_get_slid(hdr); packet 1478 drivers/infiniband/hw/hfi1/driver.c packet->dlid = ib_get_dlid(hdr); packet 1479 drivers/infiniband/hw/hfi1/driver.c if (unlikely((packet->dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) && packet 1480 drivers/infiniband/hw/hfi1/driver.c (packet->dlid != be16_to_cpu(IB_LID_PERMISSIVE)))) packet 1481 drivers/infiniband/hw/hfi1/driver.c packet->dlid += opa_get_mcast_base(OPA_MCAST_NR) - packet 1483 drivers/infiniband/hw/hfi1/driver.c packet->sl = ib_get_sl(hdr); packet 1484 drivers/infiniband/hw/hfi1/driver.c packet->sc = hfi1_9B_get_sc5(hdr, packet->rhf); packet 1485 drivers/infiniband/hw/hfi1/driver.c packet->pad = ib_bth_get_pad(packet->ohdr); packet 1486 drivers/infiniband/hw/hfi1/driver.c packet->extra_byte = 0; packet 1487 drivers/infiniband/hw/hfi1/driver.c packet->pkey = ib_bth_get_pkey(packet->ohdr); packet 1488 drivers/infiniband/hw/hfi1/driver.c packet->migrated = ib_bth_is_migration(packet->ohdr); packet 1496 drivers/infiniband/hw/hfi1/driver.c static int hfi1_setup_bypass_packet(struct hfi1_packet *packet) packet 1508 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 1513 drivers/infiniband/hw/hfi1/driver.c packet->hdr = (struct hfi1_16b_header *) packet 1514 drivers/infiniband/hw/hfi1/driver.c hfi1_get_16B_header(packet->rcd, packet 1515 drivers/infiniband/hw/hfi1/driver.c packet->rhf_addr); packet 1516 drivers/infiniband/hw/hfi1/driver.c l4 = hfi1_16B_get_l4(packet->hdr); packet 1518 drivers/infiniband/hw/hfi1/driver.c packet->ohdr = packet->ebuf; packet 1519 drivers/infiniband/hw/hfi1/driver.c packet->grh = NULL; packet 1520 drivers/infiniband/hw/hfi1/driver.c packet->opcode = ib_bth_get_opcode(packet->ohdr); packet 1521 drivers/infiniband/hw/hfi1/driver.c packet->pad = hfi1_16B_bth_get_pad(packet->ohdr); packet 1523 drivers/infiniband/hw/hfi1/driver.c packet->hlen = hdr_len_by_opcode[packet->opcode] + packet 1525 drivers/infiniband/hw/hfi1/driver.c packet->migrated = opa_bth_is_migration(packet->ohdr); packet 1530 drivers/infiniband/hw/hfi1/driver.c packet->ohdr = packet->ebuf + grh_len; packet 1531 drivers/infiniband/hw/hfi1/driver.c packet->grh = packet->ebuf; packet 1532 drivers/infiniband/hw/hfi1/driver.c packet->opcode = ib_bth_get_opcode(packet->ohdr); packet 1533 drivers/infiniband/hw/hfi1/driver.c packet->pad = hfi1_16B_bth_get_pad(packet->ohdr); packet 1535 drivers/infiniband/hw/hfi1/driver.c packet->hlen = hdr_len_by_opcode[packet->opcode] + packet 1537 drivers/infiniband/hw/hfi1/driver.c packet->migrated = opa_bth_is_migration(packet->ohdr); packet 1539 drivers/infiniband/hw/hfi1/driver.c if (packet->grh->next_hdr != IB_GRH_NEXT_HDR) packet 1541 drivers/infiniband/hw/hfi1/driver.c vtf = be32_to_cpu(packet->grh->version_tclass_flow); packet 1545 drivers/infiniband/hw/hfi1/driver.c packet->mgmt = packet->ebuf; packet 1546 drivers/infiniband/hw/hfi1/driver.c packet->ohdr = NULL; packet 1547 drivers/infiniband/hw/hfi1/driver.c packet->grh = NULL; packet 1548 drivers/infiniband/hw/hfi1/driver.c packet->opcode = IB_OPCODE_UD_SEND_ONLY; packet 1549 drivers/infiniband/hw/hfi1/driver.c packet->pad = OPA_16B_L4_FM_PAD; packet 1550 drivers/infiniband/hw/hfi1/driver.c packet->hlen = OPA_16B_L4_FM_HLEN; packet 1551 drivers/infiniband/hw/hfi1/driver.c packet->migrated = false; packet 1557 drivers/infiniband/hw/hfi1/driver.c packet->payload = packet->ebuf + packet->hlen - LRH_16B_BYTES; packet 1558 drivers/infiniband/hw/hfi1/driver.c packet->slid = hfi1_16B_get_slid(packet->hdr); packet 1559 drivers/infiniband/hw/hfi1/driver.c packet->dlid = hfi1_16B_get_dlid(packet->hdr); packet 1560 drivers/infiniband/hw/hfi1/driver.c if (unlikely(hfi1_is_16B_mcast(packet->dlid))) packet 1561 drivers/infiniband/hw/hfi1/driver.c packet->dlid += opa_get_mcast_base(OPA_MCAST_NR) - packet 1564 drivers/infiniband/hw/hfi1/driver.c packet->sc = hfi1_16B_get_sc(packet->hdr); packet 1565 drivers/infiniband/hw/hfi1/driver.c packet->sl = ibp->sc_to_sl[packet->sc]; packet 1566 drivers/infiniband/hw/hfi1/driver.c packet->extra_byte = SIZE_OF_LT; packet 1567 drivers/infiniband/hw/hfi1/driver.c packet->pkey = hfi1_16B_get_pkey(packet->hdr); packet 1569 drivers/infiniband/hw/hfi1/driver.c if (hfi1_bypass_ingress_pkt_check(packet)) packet 1579 drivers/infiniband/hw/hfi1/driver.c static void show_eflags_errs(struct hfi1_packet *packet) packet 1581 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 1582 drivers/infiniband/hw/hfi1/driver.c u32 rte = rhf_rcv_type_err(packet->rhf); packet 1586 drivers/infiniband/hw/hfi1/driver.c rcd->ctxt, packet->rhf, packet 1587 drivers/infiniband/hw/hfi1/driver.c packet->rhf & RHF_K_HDR_LEN_ERR ? "k_hdr_len " : "", packet 1588 drivers/infiniband/hw/hfi1/driver.c packet->rhf & RHF_DC_UNC_ERR ? "dc_unc " : "", packet 1589 drivers/infiniband/hw/hfi1/driver.c packet->rhf & RHF_DC_ERR ? "dc " : "", packet 1590 drivers/infiniband/hw/hfi1/driver.c packet->rhf & RHF_TID_ERR ? "tid " : "", packet 1591 drivers/infiniband/hw/hfi1/driver.c packet->rhf & RHF_LEN_ERR ? "len " : "", packet 1592 drivers/infiniband/hw/hfi1/driver.c packet->rhf & RHF_ECC_ERR ? "ecc " : "", packet 1593 drivers/infiniband/hw/hfi1/driver.c packet->rhf & RHF_ICRC_ERR ? "icrc " : "", packet 1597 drivers/infiniband/hw/hfi1/driver.c void handle_eflags(struct hfi1_packet *packet) packet 1599 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 1601 drivers/infiniband/hw/hfi1/driver.c rcv_hdrerr(rcd, rcd->ppd, packet); packet 1602 drivers/infiniband/hw/hfi1/driver.c if (rhf_err_flags(packet->rhf)) packet 1603 drivers/infiniband/hw/hfi1/driver.c show_eflags_errs(packet); packet 1610 drivers/infiniband/hw/hfi1/driver.c static int process_receive_ib(struct hfi1_packet *packet) packet 1612 drivers/infiniband/hw/hfi1/driver.c if (hfi1_setup_9B_packet(packet)) packet 1615 drivers/infiniband/hw/hfi1/driver.c if (unlikely(hfi1_dbg_should_fault_rx(packet))) packet 1618 drivers/infiniband/hw/hfi1/driver.c trace_hfi1_rcvhdr(packet); packet 1620 drivers/infiniband/hw/hfi1/driver.c if (unlikely(rhf_err_flags(packet->rhf))) { packet 1621 drivers/infiniband/hw/hfi1/driver.c handle_eflags(packet); packet 1625 drivers/infiniband/hw/hfi1/driver.c hfi1_ib_rcv(packet); packet 1629 drivers/infiniband/hw/hfi1/driver.c static inline bool hfi1_is_vnic_packet(struct hfi1_packet *packet) packet 1632 drivers/infiniband/hw/hfi1/driver.c if (packet->rcd->is_vnic) packet 1635 drivers/infiniband/hw/hfi1/driver.c if ((hfi1_16B_get_l2(packet->ebuf) == OPA_16B_L2_TYPE) && packet 1636 drivers/infiniband/hw/hfi1/driver.c (hfi1_16B_get_l4(packet->ebuf) == OPA_16B_L4_ETHR)) packet 1642 drivers/infiniband/hw/hfi1/driver.c static int process_receive_bypass(struct hfi1_packet *packet) packet 1644 drivers/infiniband/hw/hfi1/driver.c struct hfi1_devdata *dd = packet->rcd->dd; packet 1646 drivers/infiniband/hw/hfi1/driver.c if (hfi1_is_vnic_packet(packet)) { packet 1647 drivers/infiniband/hw/hfi1/driver.c hfi1_vnic_bypass_rcv(packet); packet 1651 drivers/infiniband/hw/hfi1/driver.c if (hfi1_setup_bypass_packet(packet)) packet 1654 drivers/infiniband/hw/hfi1/driver.c trace_hfi1_rcvhdr(packet); packet 1656 drivers/infiniband/hw/hfi1/driver.c if (unlikely(rhf_err_flags(packet->rhf))) { packet 1657 drivers/infiniband/hw/hfi1/driver.c handle_eflags(packet); packet 1661 drivers/infiniband/hw/hfi1/driver.c if (hfi1_16B_get_l2(packet->hdr) == 0x2) { packet 1662 drivers/infiniband/hw/hfi1/driver.c hfi1_16B_rcv(packet); packet 1669 drivers/infiniband/hw/hfi1/driver.c u64 *flits = packet->ebuf; packet 1671 drivers/infiniband/hw/hfi1/driver.c if (flits && !(packet->rhf & RHF_LEN_ERR)) { packet 1674 drivers/infiniband/hw/hfi1/driver.c packet->tlen > sizeof(flits[0]) ? packet 1684 drivers/infiniband/hw/hfi1/driver.c static int process_receive_error(struct hfi1_packet *packet) packet 1688 drivers/infiniband/hw/hfi1/driver.c hfi1_dbg_fault_suppress_err(&packet->rcd->dd->verbs_dev) && packet 1689 drivers/infiniband/hw/hfi1/driver.c (rhf_rcv_type_err(packet->rhf) == RHF_RCV_TYPE_ERROR || packet 1690 drivers/infiniband/hw/hfi1/driver.c packet->rhf & RHF_DC_ERR))) packet 1693 drivers/infiniband/hw/hfi1/driver.c hfi1_setup_ib_header(packet); packet 1694 drivers/infiniband/hw/hfi1/driver.c handle_eflags(packet); packet 1696 drivers/infiniband/hw/hfi1/driver.c if (unlikely(rhf_err_flags(packet->rhf))) packet 1697 drivers/infiniband/hw/hfi1/driver.c dd_dev_err(packet->rcd->dd, packet 1703 drivers/infiniband/hw/hfi1/driver.c static int kdeth_process_expected(struct hfi1_packet *packet) packet 1705 drivers/infiniband/hw/hfi1/driver.c hfi1_setup_9B_packet(packet); packet 1706 drivers/infiniband/hw/hfi1/driver.c if (unlikely(hfi1_dbg_should_fault_rx(packet))) packet 1709 drivers/infiniband/hw/hfi1/driver.c if (unlikely(rhf_err_flags(packet->rhf))) { packet 1710 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 1712 drivers/infiniband/hw/hfi1/driver.c if (hfi1_handle_kdeth_eflags(rcd, rcd->ppd, packet)) packet 1716 drivers/infiniband/hw/hfi1/driver.c hfi1_kdeth_expected_rcv(packet); packet 1720 drivers/infiniband/hw/hfi1/driver.c static int kdeth_process_eager(struct hfi1_packet *packet) packet 1722 drivers/infiniband/hw/hfi1/driver.c hfi1_setup_9B_packet(packet); packet 1723 drivers/infiniband/hw/hfi1/driver.c if (unlikely(hfi1_dbg_should_fault_rx(packet))) packet 1726 drivers/infiniband/hw/hfi1/driver.c trace_hfi1_rcvhdr(packet); packet 1727 drivers/infiniband/hw/hfi1/driver.c if (unlikely(rhf_err_flags(packet->rhf))) { packet 1728 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 1730 drivers/infiniband/hw/hfi1/driver.c show_eflags_errs(packet); packet 1731 drivers/infiniband/hw/hfi1/driver.c if (hfi1_handle_kdeth_eflags(rcd, rcd->ppd, packet)) packet 1735 drivers/infiniband/hw/hfi1/driver.c hfi1_kdeth_eager_rcv(packet); packet 1739 drivers/infiniband/hw/hfi1/driver.c static int process_receive_invalid(struct hfi1_packet *packet) packet 1741 drivers/infiniband/hw/hfi1/driver.c dd_dev_err(packet->rcd->dd, "Invalid packet type %d. Dropping\n", packet 1742 drivers/infiniband/hw/hfi1/driver.c rhf_rcv_type(packet->rhf)); packet 1748 drivers/infiniband/hw/hfi1/driver.c struct hfi1_packet packet; packet 1759 drivers/infiniband/hw/hfi1/driver.c init_packet(rcd, &packet); packet 1760 drivers/infiniband/hw/hfi1/driver.c init_ps_mdata(&mdata, &packet); packet 1781 drivers/infiniband/hw/hfi1/driver.c packet.hdr = hfi1_get_msgheader(rcd, rhf_addr); packet 1782 drivers/infiniband/hw/hfi1/driver.c hdr = packet.hdr; packet 1787 drivers/infiniband/hw/hfi1/driver.c packet.ohdr = &hdr->u.oth; packet 1789 drivers/infiniband/hw/hfi1/driver.c packet.ohdr = &hdr->u.l.oth; packet 1793 drivers/infiniband/hw/hfi1/driver.c opcode = (be32_to_cpu(packet.ohdr->bth[0]) >> 24); packet 1794 drivers/infiniband/hw/hfi1/driver.c qpn = be32_to_cpu(packet.ohdr->bth[1]) & RVT_QPN_MASK; packet 1795 drivers/infiniband/hw/hfi1/driver.c psn = mask_psn(be32_to_cpu(packet.ohdr->bth[2])); packet 361 drivers/infiniband/hw/hfi1/fault.c bool hfi1_dbg_should_fault_rx(struct hfi1_packet *packet) packet 363 drivers/infiniband/hw/hfi1/fault.c struct hfi1_ibdev *ibd = &packet->rcd->dd->verbs_dev; packet 365 drivers/infiniband/hw/hfi1/fault.c if (__hfi1_should_fault(ibd, packet->opcode, HFI1_FAULT_DIR_RX)) { packet 366 drivers/infiniband/hw/hfi1/fault.c trace_hfi1_fault_packet(packet); packet 367 drivers/infiniband/hw/hfi1/fault.c ibd->fault->n_rxfaults[packet->opcode]++; packet 78 drivers/infiniband/hw/hfi1/fault.h bool hfi1_dbg_should_fault_rx(struct hfi1_packet *packet); packet 89 drivers/infiniband/hw/hfi1/fault.h static inline bool hfi1_dbg_should_fault_rx(struct hfi1_packet *packet) packet 200 drivers/infiniband/hw/hfi1/hfi.h typedef int (*rhf_rcv_function_ptr)(struct hfi1_packet *packet); packet 977 drivers/infiniband/hw/hfi1/hfi.h typedef void (*opcode_handler)(struct hfi1_packet *packet); packet 2080 drivers/infiniband/hw/hfi1/hfi.h void handle_eflags(struct hfi1_packet *packet); packet 2452 drivers/infiniband/hw/hfi1/hfi.h static inline void hfi1_make_ext_grh(struct hfi1_packet *packet, packet 2456 drivers/infiniband/hw/hfi1/hfi.h struct hfi1_ibport *ibp = &packet->rcd->ppd->ibport_data; packet 1238 drivers/infiniband/hw/hfi1/rc.c static inline void hfi1_queue_rc_ack(struct hfi1_packet *packet, bool is_fecn) packet 1240 drivers/infiniband/hw/hfi1/rc.c struct rvt_qp *qp = packet->qp; packet 1247 drivers/infiniband/hw/hfi1/rc.c ibp = rcd_to_iport(packet->rcd); packet 1261 drivers/infiniband/hw/hfi1/rc.c static inline void hfi1_make_rc_ack_9B(struct hfi1_packet *packet, packet 1267 drivers/infiniband/hw/hfi1/rc.c struct rvt_qp *qp = packet->qp; packet 1268 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); packet 1314 drivers/infiniband/hw/hfi1/rc.c static inline void hfi1_make_rc_ack_16B(struct hfi1_packet *packet, packet 1320 drivers/infiniband/hw/hfi1/rc.c struct rvt_qp *qp = packet->qp; packet 1321 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); packet 1367 drivers/infiniband/hw/hfi1/rc.c typedef void (*hfi1_make_rc_ack)(struct hfi1_packet *packet, packet 1387 drivers/infiniband/hw/hfi1/rc.c void hfi1_send_rc_ack(struct hfi1_packet *packet, bool is_fecn) packet 1389 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 1390 drivers/infiniband/hw/hfi1/rc.c struct rvt_qp *qp = packet->qp; packet 1407 drivers/infiniband/hw/hfi1/rc.c hfi1_queue_rc_ack(packet, is_fecn); packet 1413 drivers/infiniband/hw/hfi1/rc.c hfi1_queue_rc_ack(packet, is_fecn); packet 1422 drivers/infiniband/hw/hfi1/rc.c hfi1_make_rc_ack_tbl[priv->hdr_type](packet, &opa_hdr, sc5, is_fecn, packet 1436 drivers/infiniband/hw/hfi1/rc.c hfi1_queue_rc_ack(packet, is_fecn); packet 2345 drivers/infiniband/hw/hfi1/rc.c static void rc_rcv_resp(struct hfi1_packet *packet) packet 2347 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 2348 drivers/infiniband/hw/hfi1/rc.c void *data = packet->payload; packet 2349 drivers/infiniband/hw/hfi1/rc.c u32 tlen = packet->tlen; packet 2350 drivers/infiniband/hw/hfi1/rc.c struct rvt_qp *qp = packet->qp; packet 2352 drivers/infiniband/hw/hfi1/rc.c struct ib_other_headers *ohdr = packet->ohdr; packet 2359 drivers/infiniband/hw/hfi1/rc.c u32 psn = ib_bth_get_psn(packet->ohdr); packet 2361 drivers/infiniband/hw/hfi1/rc.c u16 hdrsize = packet->hlen; packet 2362 drivers/infiniband/hw/hfi1/rc.c u8 opcode = packet->opcode; packet 2363 drivers/infiniband/hw/hfi1/rc.c u8 pad = packet->pad; packet 2364 drivers/infiniband/hw/hfi1/rc.c u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2); packet 2805 drivers/infiniband/hw/hfi1/rc.c void hfi1_rc_rcv(struct hfi1_packet *packet) packet 2807 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 2808 drivers/infiniband/hw/hfi1/rc.c void *data = packet->payload; packet 2809 drivers/infiniband/hw/hfi1/rc.c u32 tlen = packet->tlen; packet 2810 drivers/infiniband/hw/hfi1/rc.c struct rvt_qp *qp = packet->qp; packet 2813 drivers/infiniband/hw/hfi1/rc.c struct ib_other_headers *ohdr = packet->ohdr; packet 2814 drivers/infiniband/hw/hfi1/rc.c u32 opcode = packet->opcode; packet 2815 drivers/infiniband/hw/hfi1/rc.c u32 hdrsize = packet->hlen; packet 2816 drivers/infiniband/hw/hfi1/rc.c u32 psn = ib_bth_get_psn(packet->ohdr); packet 2817 drivers/infiniband/hw/hfi1/rc.c u32 pad = packet->pad; packet 2826 drivers/infiniband/hw/hfi1/rc.c u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2); packet 2830 drivers/infiniband/hw/hfi1/rc.c if (hfi1_ruc_check_hdr(ibp, packet)) packet 2833 drivers/infiniband/hw/hfi1/rc.c fecn = process_ecn(qp, packet); packet 2844 drivers/infiniband/hw/hfi1/rc.c rc_rcv_resp(packet); packet 3206 drivers/infiniband/hw/hfi1/rc.c if (packet->numpkt == 0 || fecn || packet 3248 drivers/infiniband/hw/hfi1/rc.c hfi1_send_rc_ack(packet, fecn); packet 3253 drivers/infiniband/hw/hfi1/rc.c struct hfi1_packet *packet, packet 3261 drivers/infiniband/hw/hfi1/rc.c if (hfi1_ruc_check_hdr(ibp, packet)) packet 3264 drivers/infiniband/hw/hfi1/rc.c psn = ib_bth_get_psn(packet->ohdr); packet 3265 drivers/infiniband/hw/hfi1/rc.c opcode = ib_bth_get_opcode(packet->ohdr); packet 69 drivers/infiniband/hw/hfi1/ruc.c int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet) packet 73 drivers/infiniband/hw/hfi1/ruc.c struct rvt_qp *qp = packet->qp; packet 75 drivers/infiniband/hw/hfi1/ruc.c u32 dlid = packet->dlid; packet 76 drivers/infiniband/hw/hfi1/ruc.c u32 slid = packet->slid; packet 77 drivers/infiniband/hw/hfi1/ruc.c u32 sl = packet->sl; packet 78 drivers/infiniband/hw/hfi1/ruc.c bool migrated = packet->migrated; packet 79 drivers/infiniband/hw/hfi1/ruc.c u16 pkey = packet->pkey; packet 82 drivers/infiniband/hw/hfi1/ruc.c if (!packet->grh) { packet 85 drivers/infiniband/hw/hfi1/ruc.c (packet->etype != RHF_RCV_TYPE_BYPASS)) packet 95 drivers/infiniband/hw/hfi1/ruc.c if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, packet 99 drivers/infiniband/hw/hfi1/ruc.c &packet->grh->sgid, packet 119 drivers/infiniband/hw/hfi1/ruc.c if (!packet->grh) { packet 122 drivers/infiniband/hw/hfi1/ruc.c (packet->etype != RHF_RCV_TYPE_BYPASS)) packet 132 drivers/infiniband/hw/hfi1/ruc.c if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, packet 136 drivers/infiniband/hw/hfi1/ruc.c &packet->grh->sgid, packet 128 drivers/infiniband/hw/hfi1/tid_rdma.c static void tid_rdma_rcv_err(struct hfi1_packet *packet, packet 131 drivers/infiniband/hw/hfi1/tid_rdma.c static void update_r_next_psn_fecn(struct hfi1_packet *packet, packet 1884 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_packet *packet, packet 1899 drivers/infiniband/hw/hfi1/tid_rdma.c pktlen = packet->tlen - (packet->hlen + 4); packet 1902 drivers/infiniband/hw/hfi1/tid_rdma.c memcpy(flow->tid_entry, packet->ebuf, pktlen); packet 1978 drivers/infiniband/hw/hfi1/tid_rdma.c static int tid_rdma_rcv_error(struct hfi1_packet *packet, packet 2055 drivers/infiniband/hw/hfi1/tid_rdma.c if (tid_rdma_rcv_read_request(qp, e, packet, ohdr, bth0, psn, packet 2208 drivers/infiniband/hw/hfi1/tid_rdma.c void hfi1_rc_rcv_tid_rdma_read_req(struct hfi1_packet *packet) packet 2223 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 2224 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_qp *qp = packet->qp; packet 2226 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_other_headers *ohdr = packet->ohdr; packet 2239 drivers/infiniband/hw/hfi1/tid_rdma.c if (hfi1_ruc_check_hdr(ibp, packet)) packet 2242 drivers/infiniband/hw/hfi1/tid_rdma.c fecn = process_ecn(qp, packet); packet 2261 drivers/infiniband/hw/hfi1/tid_rdma.c tid_rdma_rcv_err(packet, ohdr, qp, psn, diff, fecn); packet 2288 drivers/infiniband/hw/hfi1/tid_rdma.c if (tid_rdma_rcv_read_request(qp, e, packet, ohdr, bth0, psn, vaddr, packet 2433 drivers/infiniband/hw/hfi1/tid_rdma.c void hfi1_rc_rcv_tid_rdma_read_resp(struct hfi1_packet *packet) packet 2444 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_other_headers *ohdr = packet->ohdr; packet 2445 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_qp *qp = packet->qp; packet 2447 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 2456 drivers/infiniband/hw/hfi1/tid_rdma.c fecn = process_ecn(qp, packet); packet 2470 drivers/infiniband/hw/hfi1/tid_rdma.c update_r_next_psn_fecn(packet, priv, rcd, flow, fecn); packet 2482 drivers/infiniband/hw/hfi1/tid_rdma.c if (fecn && packet->etype == RHF_RCV_TYPE_EAGER) { packet 2485 drivers/infiniband/hw/hfi1/tid_rdma.c u32 tlen = packet->tlen; packet 2486 drivers/infiniband/hw/hfi1/tid_rdma.c u16 hdrsize = packet->hlen; packet 2487 drivers/infiniband/hw/hfi1/tid_rdma.c u8 pad = packet->pad; packet 2488 drivers/infiniband/hw/hfi1/tid_rdma.c u8 extra_bytes = pad + packet->extra_byte + packet 2497 drivers/infiniband/hw/hfi1/tid_rdma.c rvt_copy_sge(qp, &ss, packet->payload, pmtu, false, packet 2595 drivers/infiniband/hw/hfi1/tid_rdma.c static bool tid_rdma_tid_err(struct hfi1_packet *packet, u8 rcv_type) packet 2597 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_qp *qp = packet->qp; packet 2649 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_packet *packet, u8 rcv_type, packet 2651 drivers/infiniband/hw/hfi1/tid_rdma.c __must_hold(&packet->qp->r_lock) __must_hold(RCU) packet 2660 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_qp *qp = packet->qp; packet 2839 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_packet *packet) packet 2844 drivers/infiniband/hw/hfi1/tid_rdma.c u8 rcv_type = rhf_rcv_type(packet->rhf); packet 2845 drivers/infiniband/hw/hfi1/tid_rdma.c u8 rte = rhf_rcv_type_err(packet->rhf); packet 2846 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_header *hdr = packet->hdr; packet 2862 drivers/infiniband/hw/hfi1/tid_rdma.c packet->rhf); packet 2863 drivers/infiniband/hw/hfi1/tid_rdma.c if (packet->rhf & RHF_ICRC_ERR) packet 2866 drivers/infiniband/hw/hfi1/tid_rdma.c packet->ohdr = &hdr->u.oth; packet 2867 drivers/infiniband/hw/hfi1/tid_rdma.c ohdr = packet->ohdr; packet 2868 drivers/infiniband/hw/hfi1/tid_rdma.c trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); packet 2884 drivers/infiniband/hw/hfi1/tid_rdma.c packet->qp = qp; packet 2893 drivers/infiniband/hw/hfi1/tid_rdma.c if (packet->rhf & RHF_TID_ERR) { packet 2895 drivers/infiniband/hw/hfi1/tid_rdma.c u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ packet 2908 drivers/infiniband/hw/hfi1/tid_rdma.c if (tid_rdma_tid_err(packet, rcv_type)) packet 2916 drivers/infiniband/hw/hfi1/tid_rdma.c ret = handle_read_kdeth_eflags(rcd, packet, rcv_type, rte, psn, packet 3631 drivers/infiniband/hw/hfi1/tid_rdma.c void hfi1_rc_rcv_tid_rdma_write_req(struct hfi1_packet *packet) packet 3646 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 3647 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_qp *qp = packet->qp; packet 3649 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_other_headers *ohdr = packet->ohdr; packet 3662 drivers/infiniband/hw/hfi1/tid_rdma.c if (hfi1_ruc_check_hdr(ibp, packet)) packet 3665 drivers/infiniband/hw/hfi1/tid_rdma.c fecn = process_ecn(qp, packet); packet 3682 drivers/infiniband/hw/hfi1/tid_rdma.c tid_rdma_rcv_err(packet, ohdr, qp, psn, diff, fecn); packet 4014 drivers/infiniband/hw/hfi1/tid_rdma.c void hfi1_rc_rcv_tid_rdma_write_resp(struct hfi1_packet *packet) packet 4027 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_other_headers *ohdr = packet->ohdr; packet 4028 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_qp *qp = packet->qp; packet 4030 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 4039 drivers/infiniband/hw/hfi1/tid_rdma.c fecn = process_ecn(qp, packet); packet 4113 drivers/infiniband/hw/hfi1/tid_rdma.c pktlen = packet->tlen - (packet->hlen + 4); packet 4118 drivers/infiniband/hw/hfi1/tid_rdma.c memcpy(flow->tid_entry, packet->ebuf, pktlen); packet 4256 drivers/infiniband/hw/hfi1/tid_rdma.c void hfi1_rc_rcv_tid_rdma_write_data(struct hfi1_packet *packet) packet 4258 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_qp *qp = packet->qp; packet 4261 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_other_headers *ohdr = packet->ohdr; packet 4271 drivers/infiniband/hw/hfi1/tid_rdma.c fecn = process_ecn(qp, packet); packet 4284 drivers/infiniband/hw/hfi1/tid_rdma.c update_r_next_psn_fecn(packet, priv, rcd, flow, fecn); packet 4297 drivers/infiniband/hw/hfi1/tid_rdma.c if (fecn && packet->etype == RHF_RCV_TYPE_EAGER) { packet 4300 drivers/infiniband/hw/hfi1/tid_rdma.c u32 tlen = packet->tlen; packet 4301 drivers/infiniband/hw/hfi1/tid_rdma.c u16 hdrsize = packet->hlen; packet 4302 drivers/infiniband/hw/hfi1/tid_rdma.c u8 pad = packet->pad; packet 4303 drivers/infiniband/hw/hfi1/tid_rdma.c u8 extra_bytes = pad + packet->extra_byte + packet 4325 drivers/infiniband/hw/hfi1/tid_rdma.c rvt_copy_sge(qp, &ss, packet->payload, pmtu, false, packet 4484 drivers/infiniband/hw/hfi1/tid_rdma.c void hfi1_rc_rcv_tid_rdma_ack(struct hfi1_packet *packet) packet 4486 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_other_headers *ohdr = packet->ohdr; packet 4487 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_qp *qp = packet->qp; packet 4497 drivers/infiniband/hw/hfi1/tid_rdma.c process_ecn(qp, packet); packet 4856 drivers/infiniband/hw/hfi1/tid_rdma.c void hfi1_rc_rcv_tid_rdma_resync(struct hfi1_packet *packet) packet 4858 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_other_headers *ohdr = packet->ohdr; packet 4859 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_qp *qp = packet->qp; packet 4871 drivers/infiniband/hw/hfi1/tid_rdma.c fecn = process_ecn(qp, packet); packet 5485 drivers/infiniband/hw/hfi1/tid_rdma.c static void tid_rdma_rcv_err(struct hfi1_packet *packet, packet 5491 drivers/infiniband/hw/hfi1/tid_rdma.c tid_rdma_rcv_error(packet, ohdr, qp, psn, diff); packet 5499 drivers/infiniband/hw/hfi1/tid_rdma.c static void update_r_next_psn_fecn(struct hfi1_packet *packet, packet 5509 drivers/infiniband/hw/hfi1/tid_rdma.c if (fecn && packet->etype == RHF_RCV_TYPE_EAGER && packet 250 drivers/infiniband/hw/hfi1/tid_rdma.h void hfi1_rc_rcv_tid_rdma_read_req(struct hfi1_packet *packet); packet 254 drivers/infiniband/hw/hfi1/tid_rdma.h void hfi1_rc_rcv_tid_rdma_read_resp(struct hfi1_packet *packet); packet 257 drivers/infiniband/hw/hfi1/tid_rdma.h struct hfi1_packet *packet); packet 278 drivers/infiniband/hw/hfi1/tid_rdma.h void hfi1_rc_rcv_tid_rdma_write_req(struct hfi1_packet *packet); packet 287 drivers/infiniband/hw/hfi1/tid_rdma.h void hfi1_rc_rcv_tid_rdma_write_resp(struct hfi1_packet *packet); packet 293 drivers/infiniband/hw/hfi1/tid_rdma.h void hfi1_rc_rcv_tid_rdma_write_data(struct hfi1_packet *packet); packet 299 drivers/infiniband/hw/hfi1/tid_rdma.h void hfi1_rc_rcv_tid_rdma_ack(struct hfi1_packet *packet); packet 308 drivers/infiniband/hw/hfi1/tid_rdma.h void hfi1_rc_rcv_tid_rdma_resync(struct hfi1_packet *packet); packet 86 drivers/infiniband/hw/hfi1/trace.c u8 hfi1_trace_packet_hdr_len(struct hfi1_packet *packet) packet 88 drivers/infiniband/hw/hfi1/trace.c if (packet->etype != RHF_RCV_TYPE_BYPASS) packet 89 drivers/infiniband/hw/hfi1/trace.c return __get_ib_hdr_len(packet->hdr); packet 91 drivers/infiniband/hw/hfi1/trace.c return __get_16b_hdr_len(packet->hdr); packet 113 drivers/infiniband/hw/hfi1/trace_ibhdrs.h u8 hfi1_trace_packet_hdr_len(struct hfi1_packet *packet); packet 157 drivers/infiniband/hw/hfi1/trace_ibhdrs.h struct hfi1_packet *packet, packet 159 drivers/infiniband/hw/hfi1/trace_ibhdrs.h TP_ARGS(dd, packet, sc5), packet 190 drivers/infiniband/hw/hfi1/trace_ibhdrs.h hfi1_trace_packet_hdr_len(packet)) packet 195 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __entry->etype = packet->etype; packet 196 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __entry->l2 = hfi1_16B_get_l2(packet->hdr); packet 200 drivers/infiniband/hw/hfi1/trace_ibhdrs.h hfi1_trace_parse_16b_hdr(packet->hdr, packet 215 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __entry->dest_qpn = hfi1_16B_get_dest_qpn(packet->mgmt); packet 216 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __entry->src_qpn = hfi1_16B_get_src_qpn(packet->mgmt); packet 218 drivers/infiniband/hw/hfi1/trace_ibhdrs.h hfi1_trace_parse_16b_bth(packet->ohdr, packet 230 drivers/infiniband/hw/hfi1/trace_ibhdrs.h hfi1_trace_parse_9b_hdr(packet->hdr, sc5, packet 239 drivers/infiniband/hw/hfi1/trace_ibhdrs.h hfi1_trace_parse_9b_bth(packet->ohdr, packet 255 drivers/infiniband/hw/hfi1/trace_ibhdrs.h &packet->ohdr->u, packet 313 drivers/infiniband/hw/hfi1/trace_ibhdrs.h struct hfi1_packet *packet, bool sc5), packet 314 drivers/infiniband/hw/hfi1/trace_ibhdrs.h TP_ARGS(dd, packet, sc5)); packet 112 drivers/infiniband/hw/hfi1/trace_misc.h TP_PROTO(struct hfi1_packet *packet), packet 113 drivers/infiniband/hw/hfi1/trace_misc.h TP_ARGS(packet), packet 114 drivers/infiniband/hw/hfi1/trace_misc.h TP_STRUCT__entry(DD_DEV_ENTRY(packet->rcd->ppd->dd) packet 122 drivers/infiniband/hw/hfi1/trace_misc.h TP_fast_assign(DD_DEV_ASSIGN(packet->rcd->ppd->dd); packet 123 drivers/infiniband/hw/hfi1/trace_misc.h __entry->eflags = rhf_err_flags(packet->rhf); packet 124 drivers/infiniband/hw/hfi1/trace_misc.h __entry->ctxt = packet->rcd->ctxt; packet 125 drivers/infiniband/hw/hfi1/trace_misc.h __entry->hlen = packet->hlen; packet 126 drivers/infiniband/hw/hfi1/trace_misc.h __entry->tlen = packet->tlen; packet 127 drivers/infiniband/hw/hfi1/trace_misc.h __entry->updegr = packet->updegr; packet 128 drivers/infiniband/hw/hfi1/trace_misc.h __entry->etail = rhf_egr_index(packet->rhf); packet 66 drivers/infiniband/hw/hfi1/trace_rx.h TP_PROTO(struct hfi1_packet *packet), packet 67 drivers/infiniband/hw/hfi1/trace_rx.h TP_ARGS(packet), packet 68 drivers/infiniband/hw/hfi1/trace_rx.h TP_STRUCT__entry(DD_DEV_ENTRY(packet->rcd->dd) packet 77 drivers/infiniband/hw/hfi1/trace_rx.h TP_fast_assign(DD_DEV_ASSIGN(packet->rcd->dd); packet 78 drivers/infiniband/hw/hfi1/trace_rx.h __entry->eflags = rhf_err_flags(packet->rhf); packet 79 drivers/infiniband/hw/hfi1/trace_rx.h __entry->ctxt = packet->rcd->ctxt; packet 80 drivers/infiniband/hw/hfi1/trace_rx.h __entry->etype = packet->etype; packet 81 drivers/infiniband/hw/hfi1/trace_rx.h __entry->hlen = packet->hlen; packet 82 drivers/infiniband/hw/hfi1/trace_rx.h __entry->tlen = packet->tlen; packet 83 drivers/infiniband/hw/hfi1/trace_rx.h __entry->updegr = packet->updegr; packet 84 drivers/infiniband/hw/hfi1/trace_rx.h __entry->etail = rhf_egr_index(packet->rhf); packet 305 drivers/infiniband/hw/hfi1/uc.c void hfi1_uc_rcv(struct hfi1_packet *packet) packet 307 drivers/infiniband/hw/hfi1/uc.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); packet 308 drivers/infiniband/hw/hfi1/uc.c void *data = packet->payload; packet 309 drivers/infiniband/hw/hfi1/uc.c u32 tlen = packet->tlen; packet 310 drivers/infiniband/hw/hfi1/uc.c struct rvt_qp *qp = packet->qp; packet 311 drivers/infiniband/hw/hfi1/uc.c struct ib_other_headers *ohdr = packet->ohdr; packet 312 drivers/infiniband/hw/hfi1/uc.c u32 opcode = packet->opcode; packet 313 drivers/infiniband/hw/hfi1/uc.c u32 hdrsize = packet->hlen; packet 315 drivers/infiniband/hw/hfi1/uc.c u32 pad = packet->pad; packet 320 drivers/infiniband/hw/hfi1/uc.c u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2); packet 322 drivers/infiniband/hw/hfi1/uc.c if (hfi1_ruc_check_hdr(ibp, packet)) packet 325 drivers/infiniband/hw/hfi1/uc.c process_ecn(qp, packet); packet 854 drivers/infiniband/hw/hfi1/ud.c void hfi1_ud_rcv(struct hfi1_packet *packet) packet 856 drivers/infiniband/hw/hfi1/ud.c u32 hdrsize = packet->hlen; packet 861 drivers/infiniband/hw/hfi1/ud.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); packet 863 drivers/infiniband/hw/hfi1/ud.c void *data = packet->payload; packet 864 drivers/infiniband/hw/hfi1/ud.c u32 tlen = packet->tlen; packet 865 drivers/infiniband/hw/hfi1/ud.c struct rvt_qp *qp = packet->qp; packet 866 drivers/infiniband/hw/hfi1/ud.c u8 sc5 = packet->sc; packet 868 drivers/infiniband/hw/hfi1/ud.c u8 opcode = packet->opcode; packet 869 drivers/infiniband/hw/hfi1/ud.c u8 sl = packet->sl; packet 870 drivers/infiniband/hw/hfi1/ud.c u32 dlid = packet->dlid; packet 871 drivers/infiniband/hw/hfi1/ud.c u32 slid = packet->slid; packet 878 drivers/infiniband/hw/hfi1/ud.c extra_bytes = packet->pad + packet->extra_byte + (SIZE_OF_CRC << 2); packet 880 drivers/infiniband/hw/hfi1/ud.c if (packet->etype == RHF_RCV_TYPE_BYPASS) { packet 884 drivers/infiniband/hw/hfi1/ud.c l4 = hfi1_16B_get_l4(packet->hdr); packet 885 drivers/infiniband/hw/hfi1/ud.c pkey = hfi1_16B_get_pkey(packet->hdr); packet 889 drivers/infiniband/hw/hfi1/ud.c pkey = ib_bth_get_pkey(packet->ohdr); packet 896 drivers/infiniband/hw/hfi1/ud.c src_qp = ib_get_sqpn(packet->ohdr); packet 897 drivers/infiniband/hw/hfi1/ud.c solicited = ib_bth_is_solicited(packet->ohdr); packet 899 drivers/infiniband/hw/hfi1/ud.c src_qp = hfi1_16B_get_src_qpn(packet->mgmt); packet 902 drivers/infiniband/hw/hfi1/ud.c process_ecn(qp, packet); packet 940 drivers/infiniband/hw/hfi1/ud.c ib_get_qkey(packet->ohdr) != qp->qkey)) packet 968 drivers/infiniband/hw/hfi1/ud.c wc.ex.imm_data = packet->ohdr->u.ud.imm_data; packet 1007 drivers/infiniband/hw/hfi1/ud.c if (packet->grh) { packet 1008 drivers/infiniband/hw/hfi1/ud.c rvt_copy_sge(qp, &qp->r_sge, packet->grh, packet 1011 drivers/infiniband/hw/hfi1/ud.c } else if (packet->etype == RHF_RCV_TYPE_BYPASS) { packet 1018 drivers/infiniband/hw/hfi1/ud.c hfi1_make_ext_grh(packet, &grh, slid, dlid); packet 315 drivers/infiniband/hw/hfi1/verbs.c static inline opcode_handler qp_ok(struct hfi1_packet *packet) packet 317 drivers/infiniband/hw/hfi1/verbs.c if (!(ib_rvt_state_ops[packet->qp->state] & RVT_PROCESS_RECV_OK)) packet 319 drivers/infiniband/hw/hfi1/verbs.c if (((packet->opcode & RVT_OPCODE_QP_MASK) == packet 320 drivers/infiniband/hw/hfi1/verbs.c packet->qp->allowed_ops) || packet 321 drivers/infiniband/hw/hfi1/verbs.c (packet->opcode == IB_OPCODE_CNP)) packet 322 drivers/infiniband/hw/hfi1/verbs.c return opcode_handler_tbl[packet->opcode]; packet 358 drivers/infiniband/hw/hfi1/verbs.c static opcode_handler tid_qp_ok(int opcode, struct hfi1_packet *packet) packet 360 drivers/infiniband/hw/hfi1/verbs.c if (packet->qp->ibqp.qp_type != IB_QPT_RC || packet 361 drivers/infiniband/hw/hfi1/verbs.c !(ib_rvt_state_ops[packet->qp->state] & RVT_PROCESS_RECV_OK)) packet 368 drivers/infiniband/hw/hfi1/verbs.c void hfi1_kdeth_eager_rcv(struct hfi1_packet *packet) packet 370 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 371 drivers/infiniband/hw/hfi1/verbs.c struct ib_header *hdr = packet->hdr; packet 372 drivers/infiniband/hw/hfi1/verbs.c u32 tlen = packet->tlen; packet 390 drivers/infiniband/hw/hfi1/verbs.c packet->ohdr = &hdr->u.oth; packet 391 drivers/infiniband/hw/hfi1/verbs.c trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); packet 393 drivers/infiniband/hw/hfi1/verbs.c opcode = (be32_to_cpu(packet->ohdr->bth[0]) >> 24); packet 397 drivers/infiniband/hw/hfi1/verbs.c qp_num = be32_to_cpu(packet->ohdr->u.tid_rdma.r_req.verbs_qp) & packet 401 drivers/infiniband/hw/hfi1/verbs.c packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); packet 402 drivers/infiniband/hw/hfi1/verbs.c if (!packet->qp) packet 404 drivers/infiniband/hw/hfi1/verbs.c spin_lock_irqsave(&packet->qp->r_lock, flags); packet 405 drivers/infiniband/hw/hfi1/verbs.c opcode_handler = tid_qp_ok(opcode, packet); packet 407 drivers/infiniband/hw/hfi1/verbs.c opcode_handler(packet); packet 410 drivers/infiniband/hw/hfi1/verbs.c spin_unlock_irqrestore(&packet->qp->r_lock, flags); packet 415 drivers/infiniband/hw/hfi1/verbs.c spin_unlock_irqrestore(&packet->qp->r_lock, flags); packet 422 drivers/infiniband/hw/hfi1/verbs.c void hfi1_kdeth_expected_rcv(struct hfi1_packet *packet) packet 424 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 425 drivers/infiniband/hw/hfi1/verbs.c struct ib_header *hdr = packet->hdr; packet 426 drivers/infiniband/hw/hfi1/verbs.c u32 tlen = packet->tlen; packet 444 drivers/infiniband/hw/hfi1/verbs.c packet->ohdr = &hdr->u.oth; packet 445 drivers/infiniband/hw/hfi1/verbs.c trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); packet 447 drivers/infiniband/hw/hfi1/verbs.c opcode = (be32_to_cpu(packet->ohdr->bth[0]) >> 24); packet 451 drivers/infiniband/hw/hfi1/verbs.c qp_num = be32_to_cpu(packet->ohdr->u.tid_rdma.r_rsp.verbs_qp) & packet 455 drivers/infiniband/hw/hfi1/verbs.c packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); packet 456 drivers/infiniband/hw/hfi1/verbs.c if (!packet->qp) packet 458 drivers/infiniband/hw/hfi1/verbs.c spin_lock_irqsave(&packet->qp->r_lock, flags); packet 459 drivers/infiniband/hw/hfi1/verbs.c opcode_handler = tid_qp_ok(opcode, packet); packet 461 drivers/infiniband/hw/hfi1/verbs.c opcode_handler(packet); packet 464 drivers/infiniband/hw/hfi1/verbs.c spin_unlock_irqrestore(&packet->qp->r_lock, flags); packet 469 drivers/infiniband/hw/hfi1/verbs.c spin_unlock_irqrestore(&packet->qp->r_lock, flags); packet 476 drivers/infiniband/hw/hfi1/verbs.c static int hfi1_do_pkey_check(struct hfi1_packet *packet) packet 478 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 480 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_16b_header *hdr = packet->hdr; packet 484 drivers/infiniband/hw/hfi1/verbs.c if (packet->etype != RHF_RCV_TYPE_BYPASS) packet 489 drivers/infiniband/hw/hfi1/verbs.c return ingress_pkey_check(ppd, pkey, packet->sc, packet 490 drivers/infiniband/hw/hfi1/verbs.c packet->qp->s_pkey_index, packet 491 drivers/infiniband/hw/hfi1/verbs.c packet->slid, true); packet 494 drivers/infiniband/hw/hfi1/verbs.c static inline void hfi1_handle_packet(struct hfi1_packet *packet, packet 498 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 505 drivers/infiniband/hw/hfi1/verbs.c inc_opstats(packet->tlen, &rcd->opstats->stats[packet->opcode]); packet 511 drivers/infiniband/hw/hfi1/verbs.c if (!packet->grh) packet 514 drivers/infiniband/hw/hfi1/verbs.c &packet->grh->dgid, packet 515 drivers/infiniband/hw/hfi1/verbs.c opa_get_lid(packet->dlid, 9B)); packet 520 drivers/infiniband/hw/hfi1/verbs.c packet->qp = p->qp; packet 521 drivers/infiniband/hw/hfi1/verbs.c if (hfi1_do_pkey_check(packet)) packet 523 drivers/infiniband/hw/hfi1/verbs.c spin_lock_irqsave(&packet->qp->r_lock, flags); packet 524 drivers/infiniband/hw/hfi1/verbs.c packet_handler = qp_ok(packet); packet 526 drivers/infiniband/hw/hfi1/verbs.c packet_handler(packet); packet 529 drivers/infiniband/hw/hfi1/verbs.c spin_unlock_irqrestore(&packet->qp->r_lock, flags); packet 540 drivers/infiniband/hw/hfi1/verbs.c if (packet->etype == RHF_RCV_TYPE_BYPASS && packet 541 drivers/infiniband/hw/hfi1/verbs.c hfi1_16B_get_l4(packet->hdr) == OPA_16B_L4_FM) packet 542 drivers/infiniband/hw/hfi1/verbs.c qp_num = hfi1_16B_get_dest_qpn(packet->mgmt); packet 544 drivers/infiniband/hw/hfi1/verbs.c qp_num = ib_bth_get_qpn(packet->ohdr); packet 547 drivers/infiniband/hw/hfi1/verbs.c packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); packet 548 drivers/infiniband/hw/hfi1/verbs.c if (!packet->qp) packet 551 drivers/infiniband/hw/hfi1/verbs.c if (hfi1_do_pkey_check(packet)) packet 554 drivers/infiniband/hw/hfi1/verbs.c spin_lock_irqsave(&packet->qp->r_lock, flags); packet 555 drivers/infiniband/hw/hfi1/verbs.c packet_handler = qp_ok(packet); packet 557 drivers/infiniband/hw/hfi1/verbs.c packet_handler(packet); packet 560 drivers/infiniband/hw/hfi1/verbs.c spin_unlock_irqrestore(&packet->qp->r_lock, flags); packet 576 drivers/infiniband/hw/hfi1/verbs.c void hfi1_ib_rcv(struct hfi1_packet *packet) packet 578 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 580 drivers/infiniband/hw/hfi1/verbs.c trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); packet 581 drivers/infiniband/hw/hfi1/verbs.c hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid)); packet 584 drivers/infiniband/hw/hfi1/verbs.c void hfi1_16B_rcv(struct hfi1_packet *packet) packet 586 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ctxtdata *rcd = packet->rcd; packet 588 drivers/infiniband/hw/hfi1/verbs.c trace_input_ibhdr(rcd->dd, packet, false); packet 589 drivers/infiniband/hw/hfi1/verbs.c hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid)); packet 1974 drivers/infiniband/hw/hfi1/verbs.c void hfi1_cnp_rcv(struct hfi1_packet *packet) packet 1976 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); packet 1978 drivers/infiniband/hw/hfi1/verbs.c struct ib_header *hdr = packet->hdr; packet 1979 drivers/infiniband/hw/hfi1/verbs.c struct rvt_qp *qp = packet->qp; packet 1984 drivers/infiniband/hw/hfi1/verbs.c switch (packet->qp->ibqp.qp_type) { packet 2005 drivers/infiniband/hw/hfi1/verbs.c sc5 = hfi1_9B_get_sc5(hdr, packet->rhf); packet 406 drivers/infiniband/hw/hfi1/verbs.h void hfi1_cnp_rcv(struct hfi1_packet *packet); packet 408 drivers/infiniband/hw/hfi1/verbs.h void hfi1_uc_rcv(struct hfi1_packet *packet); packet 410 drivers/infiniband/hw/hfi1/verbs.h void hfi1_rc_rcv(struct hfi1_packet *packet); packet 414 drivers/infiniband/hw/hfi1/verbs.h struct hfi1_packet *packet, packet 422 drivers/infiniband/hw/hfi1/verbs.h void hfi1_ud_rcv(struct hfi1_packet *packet); packet 440 drivers/infiniband/hw/hfi1/verbs.h int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet); packet 458 drivers/infiniband/hw/hfi1/verbs.h void hfi1_send_rc_ack(struct hfi1_packet *packet, bool is_fecn); packet 470 drivers/infiniband/hw/hfi1/verbs.h void hfi1_kdeth_eager_rcv(struct hfi1_packet *packet); packet 472 drivers/infiniband/hw/hfi1/verbs.h void hfi1_kdeth_expected_rcv(struct hfi1_packet *packet); packet 474 drivers/infiniband/hw/hfi1/verbs.h void hfi1_ib_rcv(struct hfi1_packet *packet); packet 476 drivers/infiniband/hw/hfi1/verbs.h void hfi1_16B_rcv(struct hfi1_packet *packet); packet 153 drivers/infiniband/hw/hfi1/vnic.h void hfi1_vnic_bypass_rcv(struct hfi1_packet *packet); packet 524 drivers/infiniband/hw/hfi1/vnic_main.c void hfi1_vnic_bypass_rcv(struct hfi1_packet *packet) packet 526 drivers/infiniband/hw/hfi1/vnic_main.c struct hfi1_devdata *dd = packet->rcd->dd; packet 533 drivers/infiniband/hw/hfi1/vnic_main.c l4_type = hfi1_16B_get_l4(packet->ebuf); packet 535 drivers/infiniband/hw/hfi1/vnic_main.c vesw_id = HFI1_VNIC_GET_VESWID(packet->ebuf); packet 558 drivers/infiniband/hw/hfi1/vnic_main.c l4_type, vesw_id, packet->rcd->ctxt); packet 562 drivers/infiniband/hw/hfi1/vnic_main.c q_idx = packet->rcd->vnic_q_idx; packet 575 drivers/infiniband/hw/hfi1/vnic_main.c skb = netdev_alloc_skb(vinfo->netdev, packet->tlen); packet 581 drivers/infiniband/hw/hfi1/vnic_main.c memcpy(skb->data, packet->ebuf, packet->tlen); packet 582 drivers/infiniband/hw/hfi1/vnic_main.c skb_put(skb, packet->tlen); packet 498 drivers/infiniband/hw/qedr/qedr_roce_cm.c struct qed_roce_ll2_packet *packet; packet 512 drivers/infiniband/hw/qedr/qedr_roce_cm.c packet = kzalloc(sizeof(*packet), GFP_ATOMIC); packet 513 drivers/infiniband/hw/qedr/qedr_roce_cm.c if (!packet) packet 516 drivers/infiniband/hw/qedr/qedr_roce_cm.c packet->header.vaddr = dma_alloc_coherent(&pdev->dev, header_size, packet 517 drivers/infiniband/hw/qedr/qedr_roce_cm.c &packet->header.baddr, packet 519 drivers/infiniband/hw/qedr/qedr_roce_cm.c if (!packet->header.vaddr) { packet 520 drivers/infiniband/hw/qedr/qedr_roce_cm.c kfree(packet); packet 525 drivers/infiniband/hw/qedr/qedr_roce_cm.c packet->tx_dest = QED_LL2_TX_DEST_LB; packet 527 drivers/infiniband/hw/qedr/qedr_roce_cm.c packet->tx_dest = QED_LL2_TX_DEST_NW; packet 529 drivers/infiniband/hw/qedr/qedr_roce_cm.c packet->roce_mode = roce_mode; packet 530 drivers/infiniband/hw/qedr/qedr_roce_cm.c memcpy(packet->header.vaddr, ud_header_buffer, header_size); packet 531 drivers/infiniband/hw/qedr/qedr_roce_cm.c packet->header.len = header_size; packet 532 drivers/infiniband/hw/qedr/qedr_roce_cm.c packet->n_seg = swr->num_sge; packet 533 drivers/infiniband/hw/qedr/qedr_roce_cm.c for (i = 0; i < packet->n_seg; i++) { packet 534 drivers/infiniband/hw/qedr/qedr_roce_cm.c packet->payload[i].baddr = swr->sg_list[i].addr; packet 535 drivers/infiniband/hw/qedr/qedr_roce_cm.c packet->payload[i].len = swr->sg_list[i].length; packet 538 drivers/infiniband/hw/qedr/qedr_roce_cm.c *p_packet = packet; packet 57 drivers/input/joystick/fsia6b.c struct ibus_packet packet; packet 70 drivers/input/joystick/fsia6b.c fsia6b->packet.ibuf = (data << 8) | ((fsia6b->packet.ibuf >> 8) & 0xFF); packet 72 drivers/input/joystick/fsia6b.c switch (fsia6b->packet.state) { packet 74 drivers/input/joystick/fsia6b.c if (fsia6b->packet.ibuf == 0x4020) packet 75 drivers/input/joystick/fsia6b.c fsia6b->packet.state = COLLECT; packet 79 drivers/input/joystick/fsia6b.c fsia6b->packet.state = PROCESS; packet 83 drivers/input/joystick/fsia6b.c fsia6b->packet.channel[fsia6b->packet.offset] = packet 84 drivers/input/joystick/fsia6b.c fsia6b->packet.ibuf; packet 85 drivers/input/joystick/fsia6b.c fsia6b->packet.offset++; packet 87 drivers/input/joystick/fsia6b.c if (fsia6b->packet.offset == IBUS_SERVO_COUNT) { packet 88 drivers/input/joystick/fsia6b.c fsia6b->packet.offset = 0; packet 89 drivers/input/joystick/fsia6b.c fsia6b->packet.state = SYNC; packet 92 drivers/input/joystick/fsia6b.c fsia6b->packet.channel[i]); packet 95 drivers/input/joystick/fsia6b.c if (fsia6b->packet.channel[i] > 1900) packet 97 drivers/input/joystick/fsia6b.c else if (fsia6b->packet.channel[i] < 1100) packet 119 drivers/input/joystick/fsia6b.c fsia6b->packet.state = COLLECT; packet 139 drivers/input/joystick/fsia6b.c fsia6b->packet.ibuf = 0; packet 140 drivers/input/joystick/fsia6b.c fsia6b->packet.offset = 0; packet 141 drivers/input/joystick/fsia6b.c fsia6b->packet.state = SYNC; packet 164 drivers/input/joystick/grip_mp.c static int mp_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet) packet 175 drivers/input/joystick/grip_mp.c *packet = 0; packet 259 drivers/input/joystick/grip_mp.c *packet = pkt; packet 301 drivers/input/joystick/grip_mp.c static int multiport_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet) packet 307 drivers/input/joystick/grip_mp.c status = mp_io(gameport, sendflags, sendcode, packet); packet 319 drivers/input/joystick/grip_mp.c static int dig_mode_start(struct gameport *gameport, u32 *packet) packet 335 drivers/input/joystick/grip_mp.c flags = multiport_io(gameport, IO_RESET, 0x27, packet); packet 361 drivers/input/joystick/grip_mp.c u32 packet; packet 368 drivers/input/joystick/grip_mp.c flags = multiport_io(grip->gameport, flags, 0, &packet); packet 371 drivers/input/joystick/grip_mp.c if (packet & PACKET_MP_DONE) packet 381 drivers/input/joystick/grip_mp.c slot = ((packet >> 21) & 0xf) - 1; packet 392 drivers/input/joystick/grip_mp.c joytype = (packet >> 16) & 0x1f; packet 411 drivers/input/joystick/grip_mp.c int dir = (packet >> 8) & 0xf; /* eight way directional value */ packet 412 drivers/input/joystick/grip_mp.c port->buttons = (~packet) & 0xff; packet 438 drivers/input/joystick/grip_mp.c printk(KERN_INFO "Got joy type 0x%x and packet 0x%x.\n", joytype, packet); packet 480 drivers/input/joystick/grip_mp.c u32 packet; packet 482 drivers/input/joystick/grip_mp.c dig_mode = dig_mode_start(grip->gameport, &packet); packet 484 drivers/input/joystick/grip_mp.c dig_mode = dig_mode_start(grip->gameport, &packet); packet 987 drivers/input/joystick/xpad.c struct xpad_output_packet *pkt, *packet = NULL; packet 1003 drivers/input/joystick/xpad.c packet = pkt; packet 1008 drivers/input/joystick/xpad.c if (packet) { packet 1009 drivers/input/joystick/xpad.c memcpy(xpad->odata, packet->data, packet->len); packet 1010 drivers/input/joystick/xpad.c xpad->irq_out->transfer_buffer_length = packet->len; packet 1011 drivers/input/joystick/xpad.c packet->pending = false; packet 1146 drivers/input/joystick/xpad.c struct xpad_output_packet *packet = packet 1153 drivers/input/joystick/xpad.c packet->data[0] = 0x08; packet 1154 drivers/input/joystick/xpad.c packet->data[1] = 0x00; packet 1155 drivers/input/joystick/xpad.c packet->data[2] = 0x0F; packet 1156 drivers/input/joystick/xpad.c packet->data[3] = 0xC0; packet 1157 drivers/input/joystick/xpad.c packet->data[4] = 0x00; packet 1158 drivers/input/joystick/xpad.c packet->data[5] = 0x00; packet 1159 drivers/input/joystick/xpad.c packet->data[6] = 0x00; packet 1160 drivers/input/joystick/xpad.c packet->data[7] = 0x00; packet 1161 drivers/input/joystick/xpad.c packet->data[8] = 0x00; packet 1162 drivers/input/joystick/xpad.c packet->data[9] = 0x00; packet 1163 drivers/input/joystick/xpad.c packet->data[10] = 0x00; packet 1164 drivers/input/joystick/xpad.c packet->data[11] = 0x00; packet 1165 drivers/input/joystick/xpad.c packet->len = 12; packet 1166 drivers/input/joystick/xpad.c packet->pending = true; packet 1200 drivers/input/joystick/xpad.c struct xpad_output_packet *packet = packet 1209 drivers/input/joystick/xpad.c packet->len = sizeof(mode_report_ack); packet 1210 drivers/input/joystick/xpad.c memcpy(packet->data, mode_report_ack, packet->len); packet 1211 drivers/input/joystick/xpad.c packet->data[2] = seq_num; packet 1212 drivers/input/joystick/xpad.c packet->pending = true; packet 1225 drivers/input/joystick/xpad.c struct xpad_output_packet *packet = &xpad->out_packets[XPAD_OUT_FF_IDX]; packet 1241 drivers/input/joystick/xpad.c packet->data[0] = 0x00; packet 1242 drivers/input/joystick/xpad.c packet->data[1] = 0x06; packet 1243 drivers/input/joystick/xpad.c packet->data[2] = 0x00; packet 1244 drivers/input/joystick/xpad.c packet->data[3] = strong / 256; /* left actuator */ packet 1245 drivers/input/joystick/xpad.c packet->data[4] = 0x00; packet 1246 drivers/input/joystick/xpad.c packet->data[5] = weak / 256; /* right actuator */ packet 1247 drivers/input/joystick/xpad.c packet->len = 6; packet 1248 drivers/input/joystick/xpad.c packet->pending = true; packet 1252 drivers/input/joystick/xpad.c packet->data[0] = 0x00; packet 1253 drivers/input/joystick/xpad.c packet->data[1] = 0x08; packet 1254 drivers/input/joystick/xpad.c packet->data[2] = 0x00; packet 1255 drivers/input/joystick/xpad.c packet->data[3] = strong / 256; /* left actuator? */ packet 1256 drivers/input/joystick/xpad.c packet->data[4] = weak / 256; /* right actuator? */ packet 1257 drivers/input/joystick/xpad.c packet->data[5] = 0x00; packet 1258 drivers/input/joystick/xpad.c packet->data[6] = 0x00; packet 1259 drivers/input/joystick/xpad.c packet->data[7] = 0x00; packet 1260 drivers/input/joystick/xpad.c packet->len = 8; packet 1261 drivers/input/joystick/xpad.c packet->pending = true; packet 1265 drivers/input/joystick/xpad.c packet->data[0] = 0x00; packet 1266 drivers/input/joystick/xpad.c packet->data[1] = 0x01; packet 1267 drivers/input/joystick/xpad.c packet->data[2] = 0x0F; packet 1268 drivers/input/joystick/xpad.c packet->data[3] = 0xC0; packet 1269 drivers/input/joystick/xpad.c packet->data[4] = 0x00; packet 1270 drivers/input/joystick/xpad.c packet->data[5] = strong / 256; packet 1271 drivers/input/joystick/xpad.c packet->data[6] = weak / 256; packet 1272 drivers/input/joystick/xpad.c packet->data[7] = 0x00; packet 1273 drivers/input/joystick/xpad.c packet->data[8] = 0x00; packet 1274 drivers/input/joystick/xpad.c packet->data[9] = 0x00; packet 1275 drivers/input/joystick/xpad.c packet->data[10] = 0x00; packet 1276 drivers/input/joystick/xpad.c packet->data[11] = 0x00; packet 1277 drivers/input/joystick/xpad.c packet->len = 12; packet 1278 drivers/input/joystick/xpad.c packet->pending = true; packet 1282 drivers/input/joystick/xpad.c packet->data[0] = 0x09; /* activate rumble */ packet 1283 drivers/input/joystick/xpad.c packet->data[1] = 0x00; packet 1284 drivers/input/joystick/xpad.c packet->data[2] = xpad->odata_serial++; packet 1285 drivers/input/joystick/xpad.c packet->data[3] = 0x09; packet 1286 drivers/input/joystick/xpad.c packet->data[4] = 0x00; packet 1287 drivers/input/joystick/xpad.c packet->data[5] = 0x0F; packet 1288 drivers/input/joystick/xpad.c packet->data[6] = 0x00; packet 1289 drivers/input/joystick/xpad.c packet->data[7] = 0x00; packet 1290 drivers/input/joystick/xpad.c packet->data[8] = strong / 512; /* left actuator */ packet 1291 drivers/input/joystick/xpad.c packet->data[9] = weak / 512; /* right actuator */ packet 1292 drivers/input/joystick/xpad.c packet->data[10] = 0xFF; /* on period */ packet 1293 drivers/input/joystick/xpad.c packet->data[11] = 0x00; /* off period */ packet 1294 drivers/input/joystick/xpad.c packet->data[12] = 0xFF; /* repeat count */ packet 1295 drivers/input/joystick/xpad.c packet->len = 13; packet 1296 drivers/input/joystick/xpad.c packet->pending = true; packet 1362 drivers/input/joystick/xpad.c struct xpad_output_packet *packet = packet 1372 drivers/input/joystick/xpad.c packet->data[0] = 0x01; packet 1373 drivers/input/joystick/xpad.c packet->data[1] = 0x03; packet 1374 drivers/input/joystick/xpad.c packet->data[2] = command; packet 1375 drivers/input/joystick/xpad.c packet->len = 3; packet 1376 drivers/input/joystick/xpad.c packet->pending = true; packet 1380 drivers/input/joystick/xpad.c packet->data[0] = 0x00; packet 1381 drivers/input/joystick/xpad.c packet->data[1] = 0x00; packet 1382 drivers/input/joystick/xpad.c packet->data[2] = 0x08; packet 1383 drivers/input/joystick/xpad.c packet->data[3] = 0x40 + command; packet 1384 drivers/input/joystick/xpad.c packet->data[4] = 0x00; packet 1385 drivers/input/joystick/xpad.c packet->data[5] = 0x00; packet 1386 drivers/input/joystick/xpad.c packet->data[6] = 0x00; packet 1387 drivers/input/joystick/xpad.c packet->data[7] = 0x00; packet 1388 drivers/input/joystick/xpad.c packet->data[8] = 0x00; packet 1389 drivers/input/joystick/xpad.c packet->data[9] = 0x00; packet 1390 drivers/input/joystick/xpad.c packet->data[10] = 0x00; packet 1391 drivers/input/joystick/xpad.c packet->data[11] = 0x00; packet 1392 drivers/input/joystick/xpad.c packet->len = 12; packet 1393 drivers/input/joystick/xpad.c packet->pending = true; packet 1504 drivers/input/joystick/xpad.c struct xpad_output_packet *packet = packet 1509 drivers/input/joystick/xpad.c packet->data[0] = 0x00; packet 1510 drivers/input/joystick/xpad.c packet->data[1] = 0x00; packet 1511 drivers/input/joystick/xpad.c packet->data[2] = 0x08; packet 1512 drivers/input/joystick/xpad.c packet->data[3] = 0xC0; packet 1513 drivers/input/joystick/xpad.c packet->data[4] = 0x00; packet 1514 drivers/input/joystick/xpad.c packet->data[5] = 0x00; packet 1515 drivers/input/joystick/xpad.c packet->data[6] = 0x00; packet 1516 drivers/input/joystick/xpad.c packet->data[7] = 0x00; packet 1517 drivers/input/joystick/xpad.c packet->data[8] = 0x00; packet 1518 drivers/input/joystick/xpad.c packet->data[9] = 0x00; packet 1519 drivers/input/joystick/xpad.c packet->data[10] = 0x00; packet 1520 drivers/input/joystick/xpad.c packet->data[11] = 0x00; packet 1521 drivers/input/joystick/xpad.c packet->len = 12; packet 1522 drivers/input/joystick/xpad.c packet->pending = true; packet 751 drivers/input/keyboard/applespi.c struct spi_packet *packet = (struct spi_packet *)applespi->tx_buffer; packet 752 drivers/input/keyboard/applespi.c struct message *message = (struct message *)packet->data; packet 765 drivers/input/keyboard/applespi.c memset(packet, 0, APPLESPI_PACKET_SIZE); packet 834 drivers/input/keyboard/applespi.c packet->flags = PACKET_TYPE_WRITE; packet 835 drivers/input/keyboard/applespi.c packet->device = device; packet 836 drivers/input/keyboard/applespi.c packet->length = cpu_to_le16(MSG_HEADER_SIZE + msg_len); packet 844 drivers/input/keyboard/applespi.c crc = crc16(0, (u8 *)message, le16_to_cpu(packet->length) - 2); packet 847 drivers/input/keyboard/applespi.c crc = crc16(0, (u8 *)packet, sizeof(*packet) - 2); packet 848 drivers/input/keyboard/applespi.c packet->crc16 = cpu_to_le16(crc); packet 1331 drivers/input/keyboard/applespi.c struct spi_packet *packet, packet 1334 drivers/input/keyboard/applespi.c if (packet->device == PACKET_DEV_INFO && packet 1352 drivers/input/keyboard/applespi.c if (packet->device == PACKET_DEV_TPAD && packet 1376 drivers/input/keyboard/applespi.c struct spi_packet *packet) packet 1380 drivers/input/keyboard/applespi.c if (packet->flags == PACKET_TYPE_READ && packet 1381 drivers/input/keyboard/applespi.c packet->device == PACKET_DEV_KEYB) packet 1383 drivers/input/keyboard/applespi.c else if (packet->flags == PACKET_TYPE_READ && packet 1384 drivers/input/keyboard/applespi.c packet->device == PACKET_DEV_TPAD) packet 1386 drivers/input/keyboard/applespi.c else if (packet->flags == PACKET_TYPE_WRITE) packet 1397 drivers/input/keyboard/applespi.c struct spi_packet *packet; packet 1423 drivers/input/keyboard/applespi.c packet = (struct spi_packet *)applespi->rx_buffer; packet 1425 drivers/input/keyboard/applespi.c applespi_debug_print_read_packet(applespi, packet); packet 1427 drivers/input/keyboard/applespi.c off = le16_to_cpu(packet->offset); packet 1428 drivers/input/keyboard/applespi.c rem = le16_to_cpu(packet->remaining); packet 1429 drivers/input/keyboard/applespi.c len = le16_to_cpu(packet->length); packet 1431 drivers/input/keyboard/applespi.c if (len > sizeof(packet->data)) { packet 1461 drivers/input/keyboard/applespi.c memcpy(applespi->msg_buf + off, &packet->data, len); packet 1470 drivers/input/keyboard/applespi.c message = (struct message *)&packet->data; packet 1487 drivers/input/keyboard/applespi.c if (packet->flags == PACKET_TYPE_READ && packet 1488 drivers/input/keyboard/applespi.c packet->device == PACKET_DEV_KEYB) { packet 1491 drivers/input/keyboard/applespi.c } else if (packet->flags == PACKET_TYPE_READ && packet 1492 drivers/input/keyboard/applespi.c packet->device == PACKET_DEV_TPAD) { packet 1517 drivers/input/keyboard/applespi.c } else if (packet->flags == PACKET_TYPE_WRITE) { packet 1518 drivers/input/keyboard/applespi.c applespi_handle_cmd_response(applespi, packet, message); packet 1524 drivers/input/keyboard/applespi.c applespi_msg_complete(applespi, packet->flags == PACKET_TYPE_WRITE, packet 278 drivers/input/keyboard/hil_kbd.c hil_packet packet; packet 292 drivers/input/keyboard/hil_kbd.c packet = dev->data[idx]; packet 293 drivers/input/keyboard/hil_kbd.c packet |= ((hil_packet)data) << ((3 - (dev->idx4 % 4)) * 8); packet 294 drivers/input/keyboard/hil_kbd.c dev->data[idx] = packet; packet 298 drivers/input/keyboard/hil_kbd.c if ((packet & 0xffff0000) != HIL_ERR_INT) { packet 300 drivers/input/keyboard/hil_kbd.c } else if (packet & HIL_PKT_CMD) { packet 301 drivers/input/keyboard/hil_kbd.c if (hil_dev_is_command_response(packet)) packet 251 drivers/input/mouse/alps.c unsigned char *packet = psmouse->packet; packet 258 drivers/input/mouse/alps.c left = packet[2] & 0x10; packet 259 drivers/input/mouse/alps.c right = packet[2] & 0x08; packet 261 drivers/input/mouse/alps.c x = packet[1] | ((packet[0] & 0x07) << 7); packet 262 drivers/input/mouse/alps.c y = packet[4] | ((packet[3] & 0x07) << 7); packet 263 drivers/input/mouse/alps.c z = packet[5]; packet 265 drivers/input/mouse/alps.c left = packet[3] & 1; packet 266 drivers/input/mouse/alps.c right = packet[3] & 2; packet 267 drivers/input/mouse/alps.c middle = packet[3] & 4; packet 268 drivers/input/mouse/alps.c x = packet[1] | ((packet[2] & 0x78) << (7 - 3)); packet 269 drivers/input/mouse/alps.c y = packet[4] | ((packet[3] & 0x70) << (7 - 4)); packet 270 drivers/input/mouse/alps.c z = packet[5]; packet 274 drivers/input/mouse/alps.c back = packet[0] & 0x10; packet 275 drivers/input/mouse/alps.c forward = packet[2] & 4; packet 279 drivers/input/mouse/alps.c back = packet[3] & 4; packet 280 drivers/input/mouse/alps.c forward = packet[2] & 4; packet 285 drivers/input/mouse/alps.c ges = packet[2] & 1; packet 286 drivers/input/mouse/alps.c fin = packet[2] & 2; packet 300 drivers/input/mouse/alps.c left |= packet[0] & 1; packet 301 drivers/input/mouse/alps.c right |= packet[0] & 2; packet 302 drivers/input/mouse/alps.c middle |= packet[0] & 4; packet 339 drivers/input/mouse/alps.c input_report_rel(dev, REL_WHEEL, ((packet[2] << 1) & 0x08) - ((packet[0] >> 4) & 0x07)); packet 347 drivers/input/mouse/alps.c input_report_key(dev, BTN_0, packet[2] & 4); packet 348 drivers/input/mouse/alps.c input_report_key(dev, BTN_1, packet[0] & 0x10); packet 349 drivers/input/mouse/alps.c input_report_key(dev, BTN_2, packet[3] & 4); packet 350 drivers/input/mouse/alps.c input_report_key(dev, BTN_3, packet[0] & 0x20); packet 558 drivers/input/mouse/alps.c unsigned char *packet = psmouse->packet; packet 570 drivers/input/mouse/alps.c if (!(packet[0] & 0x40)) { packet 579 drivers/input/mouse/alps.c if (packet[1] == 0x7f && packet[2] == 0x7f && packet[4] == 0x7f) packet 582 drivers/input/mouse/alps.c x = (s8)(((packet[0] & 0x20) << 2) | (packet[1] & 0x7f)); packet 583 drivers/input/mouse/alps.c y = (s8)(((packet[0] & 0x10) << 3) | (packet[2] & 0x7f)); packet 584 drivers/input/mouse/alps.c z = packet[4] & 0x7f; packet 605 drivers/input/mouse/alps.c left = packet[3] & 0x01; packet 606 drivers/input/mouse/alps.c right = packet[3] & 0x02; packet 607 drivers/input/mouse/alps.c middle = packet[3] & 0x04; packet 728 drivers/input/mouse/alps.c unsigned char *packet = psmouse->packet; packet 735 drivers/input/mouse/alps.c priv->decode_fields(f, packet, psmouse); packet 777 drivers/input/mouse/alps.c memcpy(priv->multi_data, packet, sizeof(priv->multi_data)); packet 805 drivers/input/mouse/alps.c unsigned char *packet = psmouse->packet; packet 815 drivers/input/mouse/alps.c if (packet[5] == 0x3f) { packet 826 drivers/input/mouse/alps.c unsigned char *packet = psmouse->packet; packet 837 drivers/input/mouse/alps.c if (packet[5] == 0x7F) { packet 846 drivers/input/mouse/alps.c x = packet[1] | ((packet[3] & 0x20) << 2); packet 847 drivers/input/mouse/alps.c y = packet[2] | ((packet[3] & 0x40) << 1); packet 848 drivers/input/mouse/alps.c z = packet[4]; packet 858 drivers/input/mouse/alps.c psmouse_report_standard_buttons(dev2, packet[3]); packet 865 drivers/input/mouse/alps.c x = packet[1] | ((packet[3] & 0x78) << 4); packet 866 drivers/input/mouse/alps.c y = packet[2] | ((packet[4] & 0x78) << 4); packet 867 drivers/input/mouse/alps.c z = packet[5]; packet 883 drivers/input/mouse/alps.c packet[3] &= ~BIT(2); packet 884 drivers/input/mouse/alps.c psmouse_report_standard_buttons(dev2, packet[3]); packet 892 drivers/input/mouse/alps.c unsigned char *packet = psmouse->packet; packet 901 drivers/input/mouse/alps.c if (packet[6] & 0x40) { packet 910 drivers/input/mouse/alps.c priv->multi_data[offset] = packet[6]; packet 911 drivers/input/mouse/alps.c priv->multi_data[offset + 1] = packet[7]; packet 913 drivers/input/mouse/alps.c f->left = !!(packet[4] & 0x01); packet 914 drivers/input/mouse/alps.c f->right = !!(packet[4] & 0x02); packet 916 drivers/input/mouse/alps.c f->st.x = ((packet[1] & 0x7f) << 4) | ((packet[3] & 0x30) >> 2) | packet 917 drivers/input/mouse/alps.c ((packet[0] & 0x30) >> 4); packet 918 drivers/input/mouse/alps.c f->st.y = ((packet[2] & 0x7f) << 4) | (packet[3] & 0x0f); packet 919 drivers/input/mouse/alps.c f->pressure = packet[5] & 0x7f; packet 942 drivers/input/mouse/alps.c return (psmouse->packet[2] & 0x40) == 0x40; packet 944 drivers/input/mouse/alps.c return (psmouse->packet[3] & 0x48) == 0x48; packet 946 drivers/input/mouse/alps.c return (psmouse->packet[5] & 0x40) == 0x00; packet 1091 drivers/input/mouse/alps.c unsigned char *packet = psmouse->packet; packet 1102 drivers/input/mouse/alps.c x = ((packet[2] & 0xbf)) | ((packet[3] & 0x10) << 2); packet 1103 drivers/input/mouse/alps.c y = (packet[3] & 0x07) | (packet[4] & 0xb8) | packet 1104 drivers/input/mouse/alps.c ((packet[3] & 0x20) << 1); packet 1105 drivers/input/mouse/alps.c z = (packet[5] & 0x3f) | ((packet[3] & 0x80) >> 1); packet 1111 drivers/input/mouse/alps.c psmouse_report_standard_buttons(dev2, packet[1]); packet 1124 drivers/input/mouse/alps.c if (priv->decode_fields(f, psmouse->packet, psmouse)) packet 1140 drivers/input/mouse/alps.c unsigned char *packet = psmouse->packet; packet 1142 drivers/input/mouse/alps.c if (packet[0] == 0x48 && (packet[4] & 0x47) == 0x06) packet 1317 drivers/input/mouse/alps.c unsigned char *packet = psmouse->packet; packet 1323 drivers/input/mouse/alps.c priv->decode_fields(f, packet, psmouse); packet 1349 drivers/input/mouse/alps.c memcpy(priv->multi_data, packet, sizeof(priv->multi_data)); packet 1356 drivers/input/mouse/alps.c if (alps_get_pkt_id_ss4_v2(packet) == SS4_PACKET_ID_STICK) { packet 1363 drivers/input/mouse/alps.c input_report_rel(dev2, REL_X, SS4_TS_X_V2(packet)); packet 1364 drivers/input/mouse/alps.c input_report_rel(dev2, REL_Y, SS4_TS_Y_V2(packet)); packet 1365 drivers/input/mouse/alps.c input_report_abs(dev2, ABS_PRESSURE, SS4_TS_Z_V2(packet)); packet 1390 drivers/input/mouse/alps.c if (psmouse->pktcnt == 4 && ((psmouse->packet[3] & 0x08) != 0x08)) packet 1392 drivers/input/mouse/alps.c if (psmouse->pktcnt == 6 && ((psmouse->packet[5] & 0x10) != 0x0)) packet 1467 drivers/input/mouse/alps.c unsigned char packet[], packet 1491 drivers/input/mouse/alps.c packet[0] & 1, packet[0] & 2, packet[0] & 4); packet 1493 drivers/input/mouse/alps.c psmouse_report_standard_motion(dev, packet); packet 1518 drivers/input/mouse/alps.c if (psmouse->packet[6] & 0x80) { packet 1526 drivers/input/mouse/alps.c if (((psmouse->packet[3] | packet 1527 drivers/input/mouse/alps.c psmouse->packet[4] | packet 1528 drivers/input/mouse/alps.c psmouse->packet[5]) & 0x80) || packet 1529 drivers/input/mouse/alps.c (!alps_is_valid_first_byte(priv, psmouse->packet[6]))) { packet 1532 drivers/input/mouse/alps.c psmouse->packet + 3); packet 1539 drivers/input/mouse/alps.c psmouse->packet[0] = psmouse->packet[6]; packet 1560 drivers/input/mouse/alps.c alps_report_bare_ps2_packet(psmouse, &psmouse->packet[3], packet 1570 drivers/input/mouse/alps.c psmouse->packet[3] = psmouse->packet[6] & 0xf7; packet 1591 drivers/input/mouse/alps.c if ((psmouse->packet[3] | packet 1592 drivers/input/mouse/alps.c psmouse->packet[4] | packet 1593 drivers/input/mouse/alps.c psmouse->packet[5]) & 0x80) { packet 1596 drivers/input/mouse/alps.c psmouse->packet + 3); packet 1619 drivers/input/mouse/alps.c (psmouse->packet[0] & 0xc8) == 0x08) { packet 1622 drivers/input/mouse/alps.c alps_report_bare_ps2_packet(psmouse, psmouse->packet, packet 1632 drivers/input/mouse/alps.c psmouse->pktcnt >= 4 && (psmouse->packet[3] & 0x0f) == 0x0f) { packet 1636 drivers/input/mouse/alps.c if (!alps_is_valid_first_byte(priv, psmouse->packet[0])) { packet 1639 drivers/input/mouse/alps.c psmouse->packet[0], priv->mask0, priv->byte0); packet 1646 drivers/input/mouse/alps.c (psmouse->packet[psmouse->pktcnt - 1] & 0x80)) { packet 1649 drivers/input/mouse/alps.c psmouse->packet[psmouse->pktcnt - 1]); packet 1674 drivers/input/mouse/alps.c psmouse->packet[psmouse->pktcnt - 1]); packet 1990 drivers/input/mouse/alps.c unsigned char buf[sizeof(psmouse->packet)]; packet 2013 drivers/input/mouse/alps.c memcpy(psmouse->packet, buf, sizeof(buf)); packet 276 drivers/input/mouse/byd.c u8 *pkt = psmouse->packet; packet 320 drivers/input/mouse/byd.c psmouse->packet[0], psmouse->packet[1], packet 321 drivers/input/mouse/byd.c psmouse->packet[2], psmouse->packet[3]); packet 124 drivers/input/mouse/cypress_ps2.c memcpy(param, psmouse->packet, pktsize); packet 446 drivers/input/mouse/cypress_ps2.c unsigned char *packet = psmouse->packet; packet 447 drivers/input/mouse/cypress_ps2.c unsigned char header_byte = packet[0]; packet 456 drivers/input/mouse/cypress_ps2.c ((packet[1] & 0x70) << 4) | packet[2]; packet 458 drivers/input/mouse/cypress_ps2.c ((packet[1] & 0x07) << 8) | packet[3]; packet 460 drivers/input/mouse/cypress_ps2.c report_data->contacts[0].z = packet[4]; packet 464 drivers/input/mouse/cypress_ps2.c ((packet[1] & 0x70) << 4) | packet[2]; packet 466 drivers/input/mouse/cypress_ps2.c ((packet[1] & 0x07) << 8) | packet[3]; packet 468 drivers/input/mouse/cypress_ps2.c report_data->contacts[0].z = packet[4]; packet 471 drivers/input/mouse/cypress_ps2.c ((packet[5] & 0xf0) << 4) | packet[6]; packet 473 drivers/input/mouse/cypress_ps2.c ((packet[5] & 0x0f) << 8) | packet[7]; packet 562 drivers/input/mouse/cypress_ps2.c unsigned char *packet = psmouse->packet; packet 568 drivers/input/mouse/cypress_ps2.c if (index == 0 && (packet[0] & 0xfc) == 0) { packet 588 drivers/input/mouse/cypress_ps2.c if ((packet[0] & 0x08) == 0x08) packet 591 drivers/input/mouse/cypress_ps2.c contact_cnt = cypress_get_finger_count(packet[0]); packet 945 drivers/input/mouse/elan_i2c_core.c static void elan_report_absolute(struct elan_tp_data *data, u8 *packet) packet 948 drivers/input/mouse/elan_i2c_core.c u8 *finger_data = &packet[ETP_FINGER_DATA_OFFSET]; packet 950 drivers/input/mouse/elan_i2c_core.c u8 tp_info = packet[ETP_TOUCH_INFO_OFFSET]; packet 951 drivers/input/mouse/elan_i2c_core.c u8 hover_info = packet[ETP_HOVER_INFO_OFFSET]; packet 974 drivers/input/mouse/elan_i2c_core.c u8 *packet = &report[ETP_REPORT_ID_OFFSET + 1]; packet 983 drivers/input/mouse/elan_i2c_core.c input_report_key(input, BTN_LEFT, packet[0] & 0x01); packet 984 drivers/input/mouse/elan_i2c_core.c input_report_key(input, BTN_RIGHT, packet[0] & 0x02); packet 985 drivers/input/mouse/elan_i2c_core.c input_report_key(input, BTN_MIDDLE, packet[0] & 0x04); packet 987 drivers/input/mouse/elan_i2c_core.c if ((packet[3] & 0x0F) == 0x06) { packet 988 drivers/input/mouse/elan_i2c_core.c x = packet[4] - (int)((packet[1] ^ 0x80) << 1); packet 989 drivers/input/mouse/elan_i2c_core.c y = (int)((packet[2] ^ 0x80) << 1) - packet[5]; packet 226 drivers/input/mouse/elantech.c psmouse->pktsize, psmouse->packet); packet 283 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 291 drivers/input/mouse/elantech.c fingers = ((packet[1] & 0x80) >> 7) + packet 292 drivers/input/mouse/elantech.c ((packet[1] & 0x30) >> 4); packet 298 drivers/input/mouse/elantech.c fingers = (packet[0] & 0xc0) >> 6; packet 320 drivers/input/mouse/elantech.c ((packet[1] & 0x0c) << 6) | packet[2]); packet 322 drivers/input/mouse/elantech.c etd->y_max - (((packet[1] & 0x03) << 8) | packet[3])); packet 329 drivers/input/mouse/elantech.c psmouse_report_standard_buttons(dev, packet[0]); packet 334 drivers/input/mouse/elantech.c input_report_key(dev, BTN_FORWARD, packet[0] & 0x40); packet 336 drivers/input/mouse/elantech.c input_report_key(dev, BTN_BACK, packet[0] & 0x80); packet 371 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 376 drivers/input/mouse/elantech.c fingers = (packet[0] & 0xc0) >> 6; packet 384 drivers/input/mouse/elantech.c if (packet[3] & 0x80) packet 392 drivers/input/mouse/elantech.c x1 = ((packet[1] & 0x0f) << 8) | packet[2]; packet 397 drivers/input/mouse/elantech.c y1 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); packet 399 drivers/input/mouse/elantech.c pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); packet 400 drivers/input/mouse/elantech.c width = ((packet[0] & 0x30) >> 2) | ((packet[3] & 0x30) >> 4); packet 410 drivers/input/mouse/elantech.c x1 = (((packet[0] & 0x10) << 4) | packet[1]) << 2; packet 413 drivers/input/mouse/elantech.c ((((packet[0] & 0x20) << 3) | packet[2]) << 2); packet 418 drivers/input/mouse/elantech.c x2 = (((packet[3] & 0x10) << 4) | packet[4]) << 2; packet 421 drivers/input/mouse/elantech.c ((((packet[3] & 0x20) << 3) | packet[5]) << 2); packet 439 drivers/input/mouse/elantech.c psmouse_report_standard_buttons(dev, packet[0]); packet 468 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 472 drivers/input/mouse/elantech.c t = get_unaligned_le32(&packet[0]); packet 479 drivers/input/mouse/elantech.c x = packet[4] - (int)((packet[1]^0x80) << 1); packet 480 drivers/input/mouse/elantech.c y = (int)((packet[2]^0x80) << 1) - packet[5]; packet 482 drivers/input/mouse/elantech.c psmouse_report_standard_buttons(tp_dev, packet[0]); packet 509 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 514 drivers/input/mouse/elantech.c fingers = (packet[0] & 0xc0) >> 6; packet 523 drivers/input/mouse/elantech.c x1 = ((packet[1] & 0x0f) << 8) | packet[2]; packet 528 drivers/input/mouse/elantech.c y1 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); packet 537 drivers/input/mouse/elantech.c etd->mt[0].x = ((packet[1] & 0x0f) << 8) | packet[2]; packet 543 drivers/input/mouse/elantech.c (((packet[4] & 0x0f) << 8) | packet[5]); packet 553 drivers/input/mouse/elantech.c x2 = ((packet[1] & 0x0f) << 8) | packet[2]; packet 554 drivers/input/mouse/elantech.c y2 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); packet 558 drivers/input/mouse/elantech.c pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); packet 559 drivers/input/mouse/elantech.c width = ((packet[0] & 0x30) >> 2) | ((packet[3] & 0x30) >> 4); packet 573 drivers/input/mouse/elantech.c input_report_key(dev, BTN_LEFT, packet[0] & 0x03); packet 575 drivers/input/mouse/elantech.c psmouse_report_standard_buttons(dev, packet[0]); packet 587 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 591 drivers/input/mouse/elantech.c input_report_key(dev, BTN_LEFT, packet[0] & 0x03); packet 593 drivers/input/mouse/elantech.c psmouse_report_standard_buttons(dev, packet[0]); packet 602 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 607 drivers/input/mouse/elantech.c fingers = packet[1] & 0x1f; packet 622 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 623 drivers/input/mouse/elantech.c int id = ((packet[3] & 0xe0) >> 5) - 1; packet 629 drivers/input/mouse/elantech.c etd->mt[id].x = ((packet[1] & 0x0f) << 8) | packet[2]; packet 630 drivers/input/mouse/elantech.c etd->mt[id].y = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); packet 631 drivers/input/mouse/elantech.c pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); packet 632 drivers/input/mouse/elantech.c traces = (packet[0] & 0xf0) >> 4; packet 651 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 655 drivers/input/mouse/elantech.c id = ((packet[0] & 0xe0) >> 5) - 1; packet 659 drivers/input/mouse/elantech.c sid = ((packet[3] & 0xe0) >> 5) - 1; packet 660 drivers/input/mouse/elantech.c weight = (packet[0] & 0x10) ? ETP_WEIGHT_VALUE : 1; packet 666 drivers/input/mouse/elantech.c delta_x1 = (signed char)packet[1]; packet 667 drivers/input/mouse/elantech.c delta_y1 = (signed char)packet[2]; packet 668 drivers/input/mouse/elantech.c delta_x2 = (signed char)packet[4]; packet 669 drivers/input/mouse/elantech.c delta_y2 = (signed char)packet[5]; packet 714 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 720 drivers/input/mouse/elantech.c p1 = (packet[0] & 0x20) >> 5; packet 721 drivers/input/mouse/elantech.c p2 = (packet[0] & 0x10) >> 4; packet 724 drivers/input/mouse/elantech.c p1 = (packet[0] & 0x10) >> 4; packet 725 drivers/input/mouse/elantech.c p2 = (packet[0] & 0x20) >> 5; packet 728 drivers/input/mouse/elantech.c p3 = (packet[0] & 0x04) >> 2; packet 730 drivers/input/mouse/elantech.c return etd->parity[packet[1]] == p1 && packet 731 drivers/input/mouse/elantech.c etd->parity[packet[2]] == p2 && packet 732 drivers/input/mouse/elantech.c etd->parity[packet[3]] == p3; packet 744 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 746 drivers/input/mouse/elantech.c return !memcmp(packet, debounce_packet, sizeof(debounce_packet)); packet 752 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 764 drivers/input/mouse/elantech.c return (packet[0] & 0x0c) == 0x04 && packet 765 drivers/input/mouse/elantech.c (packet[3] & 0x0f) == 0x02; packet 767 drivers/input/mouse/elantech.c if ((packet[0] & 0xc0) == 0x80) packet 768 drivers/input/mouse/elantech.c return (packet[0] & 0x0c) == 0x0c && packet 769 drivers/input/mouse/elantech.c (packet[3] & 0x0e) == 0x08; packet 771 drivers/input/mouse/elantech.c return (packet[0] & 0x3c) == 0x3c && packet 772 drivers/input/mouse/elantech.c (packet[1] & 0xf0) == 0x00 && packet 773 drivers/input/mouse/elantech.c (packet[3] & 0x3e) == 0x38 && packet 774 drivers/input/mouse/elantech.c (packet[4] & 0xf0) == 0x00; packet 787 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 793 drivers/input/mouse/elantech.c if (!memcmp(packet, debounce_packet, sizeof(debounce_packet))) packet 801 drivers/input/mouse/elantech.c if ((packet[3] & 0x09) == 0x08) packet 804 drivers/input/mouse/elantech.c if ((packet[3] & 0x09) == 0x09) packet 807 drivers/input/mouse/elantech.c if ((packet[0] & 0x0c) == 0x04 && (packet[3] & 0xcf) == 0x02) packet 810 drivers/input/mouse/elantech.c if ((packet[0] & 0x0c) == 0x0c && (packet[3] & 0xce) == 0x0c) packet 812 drivers/input/mouse/elantech.c if ((packet[3] & 0x0f) == 0x06) packet 822 drivers/input/mouse/elantech.c unsigned char *packet = psmouse->packet; packet 823 drivers/input/mouse/elantech.c unsigned char packet_type = packet[3] & 0x03; packet 827 drivers/input/mouse/elantech.c if (etd->tp_dev && (packet[3] & 0x0f) == 0x06) packet 841 drivers/input/mouse/elantech.c sanity_check = ((packet[3] & 0x08) == 0x00); packet 843 drivers/input/mouse/elantech.c sanity_check = ((packet[3] & 0x1c) == 0x10); packet 845 drivers/input/mouse/elantech.c sanity_check = ((packet[0] & 0x08) == 0x00 && packet 846 drivers/input/mouse/elantech.c (packet[3] & 0x1c) == 0x10); packet 150 drivers/input/mouse/focaltech.c unsigned char *packet) packet 154 drivers/input/mouse/focaltech.c unsigned char fingers = packet[1]; packet 157 drivers/input/mouse/focaltech.c state->pressed = (packet[0] >> 4) & 1; packet 174 drivers/input/mouse/focaltech.c unsigned char *packet) packet 180 drivers/input/mouse/focaltech.c finger = (packet[1] >> 4) - 1; packet 187 drivers/input/mouse/focaltech.c state->pressed = (packet[0] >> 4) & 1; packet 189 drivers/input/mouse/focaltech.c state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2]; packet 190 drivers/input/mouse/focaltech.c state->fingers[finger].y = (packet[3] << 8) | packet[4]; packet 191 drivers/input/mouse/focaltech.c state->width = packet[5] >> 4; packet 196 drivers/input/mouse/focaltech.c unsigned char *packet) packet 202 drivers/input/mouse/focaltech.c state->pressed = packet[0] >> 7; packet 203 drivers/input/mouse/focaltech.c finger1 = ((packet[0] >> 4) & 0x7) - 1; packet 205 drivers/input/mouse/focaltech.c state->fingers[finger1].x += (char)packet[1]; packet 206 drivers/input/mouse/focaltech.c state->fingers[finger1].y += (char)packet[2]; packet 219 drivers/input/mouse/focaltech.c finger2 = ((packet[3] >> 4) & 0x7) - 1; packet 221 drivers/input/mouse/focaltech.c state->fingers[finger2].x += (char)packet[4]; packet 222 drivers/input/mouse/focaltech.c state->fingers[finger2].y += (char)packet[5]; packet 228 drivers/input/mouse/focaltech.c unsigned char *packet = psmouse->packet; packet 230 drivers/input/mouse/focaltech.c switch (packet[0] & 0xf) { packet 232 drivers/input/mouse/focaltech.c focaltech_process_touch_packet(psmouse, packet); packet 236 drivers/input/mouse/focaltech.c focaltech_process_abs_packet(psmouse, packet); packet 240 drivers/input/mouse/focaltech.c focaltech_process_rel_packet(psmouse, packet); packet 244 drivers/input/mouse/focaltech.c psmouse_err(psmouse, "Unknown packet type: %02x\n", packet[0]); packet 306 drivers/input/mouse/hgpk.c static bool hgpk_is_byte_valid(struct psmouse *psmouse, unsigned char *packet) packet 314 drivers/input/mouse/hgpk.c valid = (packet[0] & 0x0C) == 0x08; packet 319 drivers/input/mouse/hgpk.c packet[0] == HGPK_GS : !(packet[pktcnt - 1] & 0x80); packet 324 drivers/input/mouse/hgpk.c packet[0] == HGPK_PT : !(packet[pktcnt - 1] & 0x80); packet 335 drivers/input/mouse/hgpk.c priv->mode, pktcnt, 6, psmouse->packet); packet 344 drivers/input/mouse/hgpk.c unsigned char *packet = psmouse->packet; packet 345 drivers/input/mouse/hgpk.c int down = !!(packet[2] & 2); packet 346 drivers/input/mouse/hgpk.c int left = !!(packet[3] & 1); packet 347 drivers/input/mouse/hgpk.c int right = !!(packet[3] & 2); packet 348 drivers/input/mouse/hgpk.c int x = packet[1] | ((packet[2] & 0x78) << 4); packet 349 drivers/input/mouse/hgpk.c int y = packet[4] | ((packet[3] & 0x70) << 3); packet 352 drivers/input/mouse/hgpk.c int pt_down = !!(packet[2] & 1); packet 353 drivers/input/mouse/hgpk.c int finger_down = !!(packet[2] & 2); packet 354 drivers/input/mouse/hgpk.c int z = packet[5]; packet 428 drivers/input/mouse/hgpk.c unsigned char *packet = psmouse->packet; packet 429 drivers/input/mouse/hgpk.c int left = packet[0] & 1; packet 430 drivers/input/mouse/hgpk.c int right = (packet[0] >> 1) & 1; packet 431 drivers/input/mouse/hgpk.c int x = packet[1] - ((packet[0] << 4) & 0x100); packet 432 drivers/input/mouse/hgpk.c int y = ((packet[0] << 3) & 0x100) - packet[2]; packet 434 drivers/input/mouse/hgpk.c if (packet[0] & 0xc0) packet 437 drivers/input/mouse/hgpk.c packet[0], packet[1], packet[2]); packet 464 drivers/input/mouse/hgpk.c if (!hgpk_is_byte_valid(psmouse, psmouse->packet)) packet 137 drivers/input/mouse/lifebook.c u8 *packet = psmouse->packet; packet 138 drivers/input/mouse/lifebook.c bool relative_packet = packet[0] & 0x08; packet 146 drivers/input/mouse/lifebook.c return (packet[0] & 0xf8) == 0x00 ? packet 151 drivers/input/mouse/lifebook.c return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ? packet 154 drivers/input/mouse/lifebook.c return (packet[3] & 0xf8) == 0xc0 ? packet 157 drivers/input/mouse/lifebook.c return (packet[4] & 0xc0) == (packet[2] & 0xc0) ? packet 160 drivers/input/mouse/lifebook.c if (((packet[5] & 0x30) << 2) != (packet[5] & 0xc0)) packet 162 drivers/input/mouse/lifebook.c if ((packet[5] & 0xc0) != (packet[1] & 0xc0)) packet 175 drivers/input/mouse/lifebook.c ((packet[1] & 0x3f) << 6) | (packet[2] & 0x3f)); packet 177 drivers/input/mouse/lifebook.c 4096 - (((packet[4] & 0x3f) << 6) | (packet[5] & 0x3f))); packet 180 drivers/input/mouse/lifebook.c (packet[1] | ((packet[0] & 0x30) << 4))); packet 182 drivers/input/mouse/lifebook.c 1024 - (packet[2] | ((packet[0] & 0xC0) << 2))); packet 184 drivers/input/mouse/lifebook.c input_report_key(dev1, BTN_TOUCH, packet[0] & 0x04); packet 190 drivers/input/mouse/lifebook.c psmouse_report_standard_motion(dev2, packet); packet 192 drivers/input/mouse/lifebook.c psmouse_report_standard_buttons(dev2, packet[0]); packet 44 drivers/input/mouse/logips2pp.c u8 *packet = psmouse->packet; packet 53 drivers/input/mouse/logips2pp.c if ((packet[0] & 0x48) == 0x48 && (packet[1] & 0x02) == 0x02) { packet 56 drivers/input/mouse/logips2pp.c switch ((packet[1] >> 4) | (packet[0] & 0x30)) { packet 61 drivers/input/mouse/logips2pp.c packet[2] & 0x80 ? REL_HWHEEL : REL_WHEEL, packet 62 drivers/input/mouse/logips2pp.c -sign_extend32(packet[2], 3)); packet 63 drivers/input/mouse/logips2pp.c input_report_key(dev, BTN_SIDE, packet[2] & BIT(4)); packet 64 drivers/input/mouse/logips2pp.c input_report_key(dev, BTN_EXTRA, packet[2] & BIT(5)); packet 70 drivers/input/mouse/logips2pp.c input_report_key(dev, BTN_SIDE, packet[2] & BIT(0)); packet 71 drivers/input/mouse/logips2pp.c input_report_key(dev, BTN_EXTRA, packet[2] & BIT(1)); packet 72 drivers/input/mouse/logips2pp.c input_report_key(dev, BTN_TASK, packet[2] & BIT(2)); packet 73 drivers/input/mouse/logips2pp.c input_report_key(dev, BTN_BACK, packet[2] & BIT(3)); packet 74 drivers/input/mouse/logips2pp.c input_report_key(dev, BTN_FORWARD, packet[2] & BIT(4)); packet 81 drivers/input/mouse/logips2pp.c packet[2] & 0x08 ? REL_HWHEEL : REL_WHEEL, packet 82 drivers/input/mouse/logips2pp.c -sign_extend32(packet[2] >> 4, 3)); packet 83 drivers/input/mouse/logips2pp.c packet[0] = packet[2] | BIT(3); packet 89 drivers/input/mouse/logips2pp.c (packet[1] >> 4) | (packet[0] & 0x30)); packet 93 drivers/input/mouse/logips2pp.c psmouse_report_standard_buttons(dev, packet[0]); packet 97 drivers/input/mouse/logips2pp.c psmouse_report_standard_packet(dev, packet); packet 128 drivers/input/mouse/psmouse-base.c void psmouse_report_standard_motion(struct input_dev *dev, u8 *packet) packet 132 drivers/input/mouse/psmouse-base.c x = packet[1] ? packet[1] - ((packet[0] << 4) & 0x100) : 0; packet 133 drivers/input/mouse/psmouse-base.c y = packet[2] ? packet[2] - ((packet[0] << 3) & 0x100) : 0; packet 139 drivers/input/mouse/psmouse-base.c void psmouse_report_standard_packet(struct input_dev *dev, u8 *packet) packet 141 drivers/input/mouse/psmouse-base.c psmouse_report_standard_buttons(dev, packet[0]); packet 142 drivers/input/mouse/psmouse-base.c psmouse_report_standard_motion(dev, packet); packet 152 drivers/input/mouse/psmouse-base.c u8 *packet = psmouse->packet; packet 163 drivers/input/mouse/psmouse-base.c input_report_rel(dev, REL_WHEEL, -(s8) packet[3]); packet 168 drivers/input/mouse/psmouse-base.c switch (packet[3] & 0xC0) { packet 171 drivers/input/mouse/psmouse-base.c -sign_extend32(packet[3], 5)); packet 175 drivers/input/mouse/psmouse-base.c -sign_extend32(packet[3], 5)); packet 179 drivers/input/mouse/psmouse-base.c wheel = sign_extend32(packet[3], 3); packet 191 drivers/input/mouse/psmouse-base.c input_report_key(dev, BTN_SIDE, packet[3] & BIT(4)); packet 192 drivers/input/mouse/psmouse-base.c input_report_key(dev, BTN_EXTRA, packet[3] & BIT(5)); packet 199 drivers/input/mouse/psmouse-base.c input_report_rel(dev, REL_WHEEL, -(s8) packet[3]); packet 202 drivers/input/mouse/psmouse-base.c input_report_key(dev, BTN_SIDE, packet[0] & BIT(6)); packet 203 drivers/input/mouse/psmouse-base.c input_report_key(dev, BTN_EXTRA, packet[0] & BIT(7)); packet 208 drivers/input/mouse/psmouse-base.c input_report_key(dev, BTN_EXTRA, packet[0] & BIT(3)); packet 214 drivers/input/mouse/psmouse-base.c packet[1] |= (packet[0] & 0x40) << 1; packet 222 drivers/input/mouse/psmouse-base.c input_report_key(dev, BTN_SIDE, packet[0] & BIT(3)); packet 223 drivers/input/mouse/psmouse-base.c packet[0] |= BIT(3); packet 231 drivers/input/mouse/psmouse-base.c packet[0] |= psmouse->extra_buttons; packet 232 drivers/input/mouse/psmouse-base.c psmouse_report_standard_packet(dev, packet); packet 381 drivers/input/mouse/psmouse-base.c psmouse->badbyte = psmouse->packet[0]; packet 387 drivers/input/mouse/psmouse-base.c psmouse->packet[psmouse->pktcnt++] = data; packet 390 drivers/input/mouse/psmouse-base.c if (unlikely(psmouse->packet[0] == PSMOUSE_RET_BAT && psmouse->pktcnt <= 2)) { packet 396 drivers/input/mouse/psmouse-base.c if (psmouse->packet[1] == PSMOUSE_RET_ID || packet 398 drivers/input/mouse/psmouse-base.c psmouse->packet[1] == PSMOUSE_RET_BAT)) { packet 409 drivers/input/mouse/psmouse-base.c psmouse->packet[psmouse->pktcnt++] = data; packet 419 drivers/input/mouse/psmouse-base.c psmouse->badbyte = psmouse->packet[0]; packet 497 drivers/input/mouse/psmouse-base.c return ps2_command(&psmouse->ps2dev, psmouse->packet, packet 97 drivers/input/mouse/psmouse.h unsigned char packet[8]; packet 144 drivers/input/mouse/psmouse.h void psmouse_report_standard_motion(struct input_dev *, u8 *packet); packet 145 drivers/input/mouse/psmouse.h void psmouse_report_standard_packet(struct input_dev *, u8 *packet); packet 27 drivers/input/mouse/sentelic.c #define GET_ABS_X(packet) ((packet[1] << 2) | ((packet[3] >> 2) & 0x03)) packet 28 drivers/input/mouse/sentelic.c #define GET_ABS_Y(packet) ((packet[2] << 2) | (packet[3] & 0x03)) packet 636 drivers/input/mouse/sentelic.c static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) packet 645 drivers/input/mouse/sentelic.c switch (packet[0] >> FSP_PKT_TYPE_SHIFT) { packet 648 drivers/input/mouse/sentelic.c abs_x = GET_ABS_X(packet); packet 649 drivers/input/mouse/sentelic.c abs_y = GET_ABS_Y(packet); packet 668 drivers/input/mouse/sentelic.c packet[0], packet[1], packet[2], packet[3], abs_x, abs_y); packet 677 drivers/input/mouse/sentelic.c static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) packet 697 drivers/input/mouse/sentelic.c unsigned char *packet = psmouse->packet; packet 708 drivers/input/mouse/sentelic.c fsp_packet_debug(psmouse, packet); packet 710 drivers/input/mouse/sentelic.c switch (psmouse->packet[0] >> FSP_PKT_TYPE_SHIFT) { packet 713 drivers/input/mouse/sentelic.c if ((packet[0] == 0x48 || packet[0] == 0x49) && packet 714 drivers/input/mouse/sentelic.c packet[1] == 0 && packet[2] == 0) { packet 720 drivers/input/mouse/sentelic.c packet[3] &= 0xf0; packet 723 drivers/input/mouse/sentelic.c abs_x = GET_ABS_X(packet); packet 724 drivers/input/mouse/sentelic.c abs_y = GET_ABS_Y(packet); packet 726 drivers/input/mouse/sentelic.c if (packet[0] & FSP_PB0_MFMC) { packet 734 drivers/input/mouse/sentelic.c if (packet[0] & FSP_PB0_MFMC_FGR2) { packet 764 drivers/input/mouse/sentelic.c if ((packet[0] & (FSP_PB0_LBTN|FSP_PB0_PHY_BTN)) == packet 770 drivers/input/mouse/sentelic.c packet[0] &= ~FSP_PB0_LBTN; packet 782 drivers/input/mouse/sentelic.c if (fgrs == 1 || (fgrs == 2 && !(packet[0] & FSP_PB0_MFMC_FGR2))) { packet 786 drivers/input/mouse/sentelic.c input_report_key(dev, BTN_LEFT, packet[0] & 0x01); packet 787 drivers/input/mouse/sentelic.c input_report_key(dev, BTN_RIGHT, packet[0] & 0x02); packet 796 drivers/input/mouse/sentelic.c packet[0] &= ~FSP_PB0_LBTN; packet 802 drivers/input/mouse/sentelic.c if (packet[3] != 0) { packet 803 drivers/input/mouse/sentelic.c if (packet[3] & BIT(0)) packet 805 drivers/input/mouse/sentelic.c if (packet[3] & BIT(1)) packet 807 drivers/input/mouse/sentelic.c if (packet[3] & BIT(2)) packet 809 drivers/input/mouse/sentelic.c if (packet[3] & BIT(3)) packet 813 drivers/input/mouse/sentelic.c packet[3] = button_status; packet 814 drivers/input/mouse/sentelic.c rscroll = (packet[3] >> 4) & 1; packet 815 drivers/input/mouse/sentelic.c lscroll = (packet[3] >> 5) & 1; packet 821 drivers/input/mouse/sentelic.c (int)(packet[3] & 8) - (int)(packet[3] & 7)); packet 829 drivers/input/mouse/sentelic.c psmouse_report_standard_packet(dev, packet); packet 669 drivers/input/mouse/synaptics.c static void synaptics_pass_pt_packet(struct serio *ptport, u8 *packet) packet 674 drivers/input/mouse/synaptics.c serio_interrupt(ptport, packet[1], 0); packet 675 drivers/input/mouse/synaptics.c serio_interrupt(ptport, packet[4], 0); packet 676 drivers/input/mouse/synaptics.c serio_interrupt(ptport, packet[5], 0); packet 678 drivers/input/mouse/synaptics.c serio_interrupt(ptport, packet[2], 0); packet 680 drivers/input/mouse/synaptics.c serio_interrupt(ptport, packet[1], 0); packet 931 drivers/input/mouse/synaptics.c !((psmouse->packet[0] ^ psmouse->packet[3]) & 0x02)) packet 1068 drivers/input/mouse/synaptics.c if (synaptics_parse_hw_state(psmouse->packet, priv, &hw)) packet 1164 drivers/input/mouse/synaptics.c const u8 *packet = psmouse->packet; packet 1173 drivers/input/mouse/synaptics.c return (packet[idx] & newabs_rel_mask[idx]) == newabs_rslt[idx]; packet 1176 drivers/input/mouse/synaptics.c return (packet[idx] & newabs_mask[idx]) == newabs_rslt[idx]; packet 1179 drivers/input/mouse/synaptics.c return (packet[idx] & oldabs_mask[idx]) == oldabs_rslt[idx]; packet 1211 drivers/input/mouse/synaptics.c synaptics_is_pt_packet(psmouse->packet)) { packet 1214 drivers/input/mouse/synaptics.c psmouse->packet); packet 36 drivers/input/mouse/touchkit_ps2.c #define TOUCHKIT_GET_TOUCHED(packet) (((packet)[0]) & 0x01) packet 37 drivers/input/mouse/touchkit_ps2.c #define TOUCHKIT_GET_X(packet) (((packet)[1] << 7) | (packet)[2]) packet 38 drivers/input/mouse/touchkit_ps2.c #define TOUCHKIT_GET_Y(packet) (((packet)[3] << 7) | (packet)[4]) packet 42 drivers/input/mouse/touchkit_ps2.c unsigned char *packet = psmouse->packet; packet 48 drivers/input/mouse/touchkit_ps2.c input_report_abs(dev, ABS_X, TOUCHKIT_GET_X(packet)); packet 49 drivers/input/mouse/touchkit_ps2.c input_report_abs(dev, ABS_Y, TOUCHKIT_GET_Y(packet)); packet 50 drivers/input/mouse/touchkit_ps2.c input_report_key(dev, BTN_TOUCH, TOUCHKIT_GET_TOUCHED(packet)); packet 225 drivers/input/mouse/vmmouse.c unsigned char *packet = psmouse->packet; packet 229 drivers/input/mouse/vmmouse.c return (packet[0] & 0x8) == 0x8 ? packet 72 drivers/input/mousedev.c struct mousedev_hw_data packet; packet 142 drivers/input/mousedev.c mousedev->packet.dx = tmp / FRACTION_DENOM; packet 144 drivers/input/mousedev.c tmp - mousedev->packet.dx * FRACTION_DENOM; packet 159 drivers/input/mousedev.c mousedev->packet.dy = tmp / FRACTION_DENOM; packet 161 drivers/input/mousedev.c mousedev->packet.dy * FRACTION_DENOM; packet 184 drivers/input/mousedev.c mousedev->packet.x = ((value - min) * xres) / size; packet 185 drivers/input/mousedev.c mousedev->packet.abs_event = 1; packet 198 drivers/input/mousedev.c mousedev->packet.y = yres - ((value - min) * yres) / size; packet 199 drivers/input/mousedev.c mousedev->packet.abs_event = 1; packet 209 drivers/input/mousedev.c mousedev->packet.dx += value; packet 213 drivers/input/mousedev.c mousedev->packet.dy -= value; packet 217 drivers/input/mousedev.c mousedev->packet.dz -= value; packet 253 drivers/input/mousedev.c set_bit(index, &mousedev->packet.buttons); packet 254 drivers/input/mousedev.c set_bit(index, &mousedev_mix->packet.buttons); packet 256 drivers/input/mousedev.c clear_bit(index, &mousedev->packet.buttons); packet 257 drivers/input/mousedev.c clear_bit(index, &mousedev_mix->packet.buttons); packet 262 drivers/input/mousedev.c struct mousedev_hw_data *packet) packet 276 drivers/input/mousedev.c if (client->ready && p->buttons != mousedev->packet.buttons) { packet 284 drivers/input/mousedev.c if (packet->abs_event) { packet 285 drivers/input/mousedev.c p->dx += packet->x - client->pos_x; packet 286 drivers/input/mousedev.c p->dy += packet->y - client->pos_y; packet 287 drivers/input/mousedev.c client->pos_x = packet->x; packet 288 drivers/input/mousedev.c client->pos_y = packet->y; packet 291 drivers/input/mousedev.c client->pos_x += packet->dx; packet 294 drivers/input/mousedev.c client->pos_y += packet->dy; packet 297 drivers/input/mousedev.c p->dx += packet->dx; packet 298 drivers/input/mousedev.c p->dy += packet->dy; packet 299 drivers/input/mousedev.c p->dz += packet->dz; packet 300 drivers/input/mousedev.c p->buttons = mousedev->packet.buttons; packet 330 drivers/input/mousedev.c set_bit(0, &mousedev->packet.buttons); packet 331 drivers/input/mousedev.c set_bit(0, &mousedev_mix->packet.buttons); packet 332 drivers/input/mousedev.c mousedev_notify_readers(mousedev, &mousedev_mix->packet); packet 334 drivers/input/mousedev.c &mousedev_mix->packet); packet 335 drivers/input/mousedev.c clear_bit(0, &mousedev->packet.buttons); packet 336 drivers/input/mousedev.c clear_bit(0, &mousedev_mix->packet.buttons); packet 393 drivers/input/mousedev.c mousedev_notify_readers(mousedev, &mousedev->packet); packet 394 drivers/input/mousedev.c mousedev_notify_readers(mousedev_mix, &mousedev->packet); packet 396 drivers/input/mousedev.c mousedev->packet.dx = mousedev->packet.dy = packet 397 drivers/input/mousedev.c mousedev->packet.dz = 0; packet 398 drivers/input/mousedev.c mousedev->packet.abs_event = 0; packet 445 drivers/input/serio/hil_mlc.c { HILSE_OUT, { .packet = pack }, 0, HILSEN_NEXT, HILSEN_DOZE, 0 }, packet 447 drivers/input/serio/hil_mlc.c { HILSE_CTS, { .packet = 0 }, 0, HILSEN_NEXT | HILSEN_SCHED | HILSEN_BREAK, HILSEN_DOZE, 0 }, packet 449 drivers/input/serio/hil_mlc.c { HILSE_EXPECT, { .packet = comp }, to, got, got_wrong, timed_out }, packet 451 drivers/input/serio/hil_mlc.c { HILSE_EXPECT_LAST, { .packet = comp }, to, got, got_wrong, timed_out }, packet 453 drivers/input/serio/hil_mlc.c { HILSE_EXPECT_DISC, { .packet = comp }, to, got, got_wrong, timed_out }, packet 455 drivers/input/serio/hil_mlc.c { HILSE_IN, { .packet = 0 }, to, got, got_error, timed_out }, packet 457 drivers/input/serio/hil_mlc.c { HILSE_OUT_DISC, { .packet = pack }, 0, 0, 0, 0 }, packet 459 drivers/input/serio/hil_mlc.c { HILSE_OUT_LAST, { .packet = pack }, 0, 0, 0, 0 }, packet 588 drivers/input/serio/hil_mlc.c mlc->imatch = node->object.packet; packet 592 drivers/input/serio/hil_mlc.c mlc->imatch = node->object.packet; packet 596 drivers/input/serio/hil_mlc.c mlc->imatch = node->object.packet; packet 673 drivers/input/serio/hil_mlc.c pack = node->object.packet; packet 679 drivers/input/serio/hil_mlc.c pack = node->object.packet; packet 685 drivers/input/serio/hil_mlc.c pack = node->object.packet; packet 114 drivers/input/touchscreen/ads7846.c struct ads7846_packet *packet; packet 697 drivers/input/touchscreen/ads7846.c struct ads7846_packet *packet = ts->packet; packet 712 drivers/input/touchscreen/ads7846.c packet->tc.ignore = true; packet 730 drivers/input/touchscreen/ads7846.c packet->tc.ignore = true; packet 736 drivers/input/touchscreen/ads7846.c packet->tc.ignore = false; packet 751 drivers/input/touchscreen/ads7846.c struct ads7846_packet *packet = ts->packet; packet 761 drivers/input/touchscreen/ads7846.c x = *(u16 *)packet->tc.x_buf; packet 762 drivers/input/touchscreen/ads7846.c y = *(u16 *)packet->tc.y_buf; packet 766 drivers/input/touchscreen/ads7846.c x = packet->tc.x; packet 767 drivers/input/touchscreen/ads7846.c y = packet->tc.y; packet 768 drivers/input/touchscreen/ads7846.c z1 = packet->tc.z1; packet 769 drivers/input/touchscreen/ads7846.c z2 = packet->tc.z2; packet 801 drivers/input/touchscreen/ads7846.c if (packet->tc.ignore || Rt > ts->pressure_max) { packet 803 drivers/input/touchscreen/ads7846.c packet->tc.ignore, Rt); packet 977 drivers/input/touchscreen/ads7846.c struct ads7846_packet *packet = ts->packet; packet 995 drivers/input/touchscreen/ads7846.c packet->read_y_cmd[0] = READ_Y(vref); packet 996 drivers/input/touchscreen/ads7846.c packet->read_y_cmd[1] = 0; packet 997 drivers/input/touchscreen/ads7846.c packet->read_y_cmd[2] = 0; packet 998 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_y_cmd[0]; packet 999 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.y_buf[0]; packet 1004 drivers/input/touchscreen/ads7846.c packet->read_y = READ_Y(vref); packet 1005 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_y; packet 1010 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.y; packet 1024 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_y; packet 1029 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.y; packet 1041 drivers/input/touchscreen/ads7846.c packet->read_x_cmd[0] = READ_X(vref); packet 1042 drivers/input/touchscreen/ads7846.c packet->read_x_cmd[1] = 0; packet 1043 drivers/input/touchscreen/ads7846.c packet->read_x_cmd[2] = 0; packet 1044 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_x_cmd[0]; packet 1045 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.x_buf[0]; packet 1051 drivers/input/touchscreen/ads7846.c packet->read_x = READ_X(vref); packet 1052 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_x; packet 1057 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.x; packet 1067 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_x; packet 1072 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.x; packet 1085 drivers/input/touchscreen/ads7846.c packet->read_z1 = READ_Z1(vref); packet 1086 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_z1; packet 1091 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.z1; packet 1100 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_z1; packet 1105 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.z1; packet 1116 drivers/input/touchscreen/ads7846.c packet->read_z2 = READ_Z2(vref); packet 1117 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_z2; packet 1122 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.z2; packet 1131 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->read_z2; packet 1136 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->tc.z2; packet 1150 drivers/input/touchscreen/ads7846.c packet->pwrdown_cmd[0] = PWRDOWN; packet 1151 drivers/input/touchscreen/ads7846.c packet->pwrdown_cmd[1] = 0; packet 1152 drivers/input/touchscreen/ads7846.c packet->pwrdown_cmd[2] = 0; packet 1153 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->pwrdown_cmd[0]; packet 1157 drivers/input/touchscreen/ads7846.c packet->pwrdown = PWRDOWN; packet 1158 drivers/input/touchscreen/ads7846.c x->tx_buf = &packet->pwrdown; packet 1163 drivers/input/touchscreen/ads7846.c x->rx_buf = &packet->dummy; packet 1263 drivers/input/touchscreen/ads7846.c struct ads7846_packet *packet; packet 1292 drivers/input/touchscreen/ads7846.c packet = kzalloc(sizeof(struct ads7846_packet), GFP_KERNEL); packet 1294 drivers/input/touchscreen/ads7846.c if (!ts || !packet || !input_dev) { packet 1301 drivers/input/touchscreen/ads7846.c ts->packet = packet; packet 1475 drivers/input/touchscreen/ads7846.c kfree(packet); packet 1506 drivers/input/touchscreen/ads7846.c kfree(ts->packet); packet 220 drivers/input/touchscreen/elo.c static int elo_command_10(struct elo *elo, unsigned char *packet) packet 229 drivers/input/touchscreen/elo.c elo->expected_packet = toupper(packet[0]); packet 237 drivers/input/touchscreen/elo.c csum += packet[i]; packet 238 drivers/input/touchscreen/elo.c if (serio_write(elo->serio, packet[i])) packet 249 drivers/input/touchscreen/elo.c memcpy(packet, elo->response, ELO10_PACKET_LEN); packet 262 drivers/input/touchscreen/elo.c unsigned char packet[ELO10_PACKET_LEN] = { ELO10_ID_CMD }; packet 264 drivers/input/touchscreen/elo.c if (elo_command_10(elo, packet)) packet 267 drivers/input/touchscreen/elo.c dev->id.version = (packet[5] << 8) | packet[4]; packet 271 drivers/input/touchscreen/elo.c if (packet[3] & ELO10_PRESSURE) packet 276 drivers/input/touchscreen/elo.c elo_types[(packet[1] -'0') & 0x03], packet 277 drivers/input/touchscreen/elo.c packet[5], packet[4], packet[3], packet[7]); packet 181 drivers/input/touchscreen/hideep.c struct pgm_packet *packet = (void *)ts->xfer_buf; packet 185 drivers/input/touchscreen/hideep.c .len = len + sizeof(packet->header.len) + packet 186 drivers/input/touchscreen/hideep.c sizeof(packet->header.addr), packet 187 drivers/input/touchscreen/hideep.c .buf = &packet->header.len, packet 194 drivers/input/touchscreen/hideep.c packet->header.len = 0x80 | (count - 1); packet 195 drivers/input/touchscreen/hideep.c packet->header.addr = cpu_to_be32(addr); packet 196 drivers/input/touchscreen/hideep.c memcpy(packet->payload, data, len); packet 208 drivers/input/touchscreen/hideep.c struct pgm_packet *packet = (void *)ts->xfer_buf; packet 213 drivers/input/touchscreen/hideep.c .len = sizeof(packet->header.len) + packet 214 drivers/input/touchscreen/hideep.c sizeof(packet->header.addr), packet 215 drivers/input/touchscreen/hideep.c .buf = &packet->header.len, packet 229 drivers/input/touchscreen/hideep.c packet->header.len = count - 1; packet 230 drivers/input/touchscreen/hideep.c packet->header.addr = cpu_to_be32(addr); packet 430 drivers/input/touchscreen/melfas_mip4.c static void mip4_report_keys(struct mip4_ts *ts, u8 *packet) packet 438 drivers/input/touchscreen/melfas_mip4.c key = packet[0] & 0x0F; packet 439 drivers/input/touchscreen/melfas_mip4.c down = packet[0] & 0x80; packet 444 drivers/input/touchscreen/melfas_mip4.c key = packet[0] & 0x0F; packet 445 drivers/input/touchscreen/melfas_mip4.c down = packet[1] & 0x01; packet 465 drivers/input/touchscreen/melfas_mip4.c static void mip4_report_touch(struct mip4_ts *ts, u8 *packet) packet 482 drivers/input/touchscreen/melfas_mip4.c state = packet[0] & BIT(7); packet 483 drivers/input/touchscreen/melfas_mip4.c hover = packet[0] & BIT(5); packet 484 drivers/input/touchscreen/melfas_mip4.c palm = packet[0] & BIT(4); packet 485 drivers/input/touchscreen/melfas_mip4.c id = (packet[0] & 0x0F) - 1; packet 486 drivers/input/touchscreen/melfas_mip4.c x = ((packet[1] & 0x0F) << 8) | packet[2]; packet 487 drivers/input/touchscreen/melfas_mip4.c y = (((packet[1] >> 4) & 0x0F) << 8) | packet 488 drivers/input/touchscreen/melfas_mip4.c packet[3]; packet 489 drivers/input/touchscreen/melfas_mip4.c pressure = packet[4]; packet 490 drivers/input/touchscreen/melfas_mip4.c size = packet[5]; packet 492 drivers/input/touchscreen/melfas_mip4.c touch_major = packet[5]; packet 493 drivers/input/touchscreen/melfas_mip4.c touch_minor = packet[5]; packet 495 drivers/input/touchscreen/melfas_mip4.c touch_major = packet[6]; packet 496 drivers/input/touchscreen/melfas_mip4.c touch_minor = packet[7]; packet 503 drivers/input/touchscreen/melfas_mip4.c id = (packet[0] & 0x0F) - 1; packet 504 drivers/input/touchscreen/melfas_mip4.c hover = packet[1] & BIT(2); packet 505 drivers/input/touchscreen/melfas_mip4.c palm = packet[1] & BIT(1); packet 506 drivers/input/touchscreen/melfas_mip4.c state = packet[1] & BIT(0); packet 507 drivers/input/touchscreen/melfas_mip4.c x = ((packet[2] & 0x0F) << 8) | packet[3]; packet 508 drivers/input/touchscreen/melfas_mip4.c y = (((packet[2] >> 4) & 0x0F) << 8) | packet 509 drivers/input/touchscreen/melfas_mip4.c packet[4]; packet 510 drivers/input/touchscreen/melfas_mip4.c size = packet[6]; packet 511 drivers/input/touchscreen/melfas_mip4.c pressure_stage = (packet[7] & 0xF0) >> 4; packet 512 drivers/input/touchscreen/melfas_mip4.c pressure = ((packet[7] & 0x0F) << 8) | packet 513 drivers/input/touchscreen/melfas_mip4.c packet[8]; packet 514 drivers/input/touchscreen/melfas_mip4.c touch_major = packet[9]; packet 515 drivers/input/touchscreen/melfas_mip4.c touch_minor = packet[10]; packet 543 drivers/input/touchscreen/melfas_mip4.c static int mip4_handle_packet(struct mip4_ts *ts, u8 *packet) packet 550 drivers/input/touchscreen/melfas_mip4.c type = (packet[0] & 0x40) >> 6; packet 554 drivers/input/touchscreen/melfas_mip4.c type = (packet[0] & 0xF0) >> 4; packet 567 drivers/input/touchscreen/melfas_mip4.c mip4_report_keys(ts, packet); packet 571 drivers/input/touchscreen/melfas_mip4.c mip4_report_touch(ts, packet); packet 88 drivers/input/touchscreen/penmount.c static bool pm_checkpacket(unsigned char *packet) packet 94 drivers/input/touchscreen/penmount.c total += packet[i]; packet 96 drivers/input/touchscreen/penmount.c return packet[5] == (unsigned char)~(total & 0xff); packet 101 drivers/input/touchscreen/sis_i2c.c u8 packet[SIS_MAX_PACKET_SIZE]; packet 234 drivers/input/touchscreen/sis_i2c.c error = sis_read_packet(ts->client, ts->packet, packet 248 drivers/input/touchscreen/sis_i2c.c report_id = ts->packet[SIS_PKT_REPORT_OFFSET]; packet 249 drivers/input/touchscreen/sis_i2c.c contact = &ts->packet[SIS_PKT_CONTACT_OFFSET]; packet 1047 drivers/input/touchscreen/usbtouchscreen.c struct nexio_touch_packet *packet = (void *) pkt; packet 1049 drivers/input/touchscreen/usbtouchscreen.c unsigned int data_len = be16_to_cpu(packet->data_len); packet 1050 drivers/input/touchscreen/usbtouchscreen.c unsigned int x_len = be16_to_cpu(packet->x_len); packet 1051 drivers/input/touchscreen/usbtouchscreen.c unsigned int y_len = be16_to_cpu(packet->y_len); packet 1083 drivers/input/touchscreen/usbtouchscreen.c if (begin_x == -1 && packet->data[x] > NEXIO_THRESHOLD) { packet 1087 drivers/input/touchscreen/usbtouchscreen.c if (end_x == -1 && begin_x != -1 && packet->data[x] < NEXIO_THRESHOLD) { packet 1090 drivers/input/touchscreen/usbtouchscreen.c if (begin_y == -1 && packet->data[y] > NEXIO_THRESHOLD) { packet 1095 drivers/input/touchscreen/usbtouchscreen.c begin_y != -1 && packet->data[y] < NEXIO_THRESHOLD) { packet 1116 drivers/input/touchscreen/usbtouchscreen.c usbtouch->touch = packet->flags & 0x01; packet 1287 drivers/media/pci/bt8xx/dst.c u8 packet[8] = { 0x00, 0x09, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00 }; packet 1291 drivers/media/pci/bt8xx/dst.c packet[4] = state->tx_tuna[4]; packet 1292 drivers/media/pci/bt8xx/dst.c packet[2] = state->tx_tuna[2]; packet 1293 drivers/media/pci/bt8xx/dst.c packet[3] = state->tx_tuna[3]; packet 1294 drivers/media/pci/bt8xx/dst.c packet[7] = dst_check_sum (packet, 7); packet 1295 drivers/media/pci/bt8xx/dst.c return dst_command(state, packet, 8); packet 1421 drivers/media/pci/bt8xx/dst.c u8 packet[8] = { 0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xf0, 0xec }; packet 1426 drivers/media/pci/bt8xx/dst.c memcpy(&packet[3], cmd->msg, cmd->msg_len); packet 1428 drivers/media/pci/bt8xx/dst.c memcpy(&packet[2], cmd->msg, cmd->msg_len); packet 1431 drivers/media/pci/bt8xx/dst.c packet[7] = dst_check_sum(&packet[0], 7); packet 1432 drivers/media/pci/bt8xx/dst.c return dst_command(state, packet, 8); packet 181 drivers/media/platform/qcom/venus/hfi_msgs.c void *packet) packet 183 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_event_notify_pkt *pkt = packet; packet 185 drivers/media/platform/qcom/venus/hfi_msgs.c if (!packet) packet 209 drivers/media/platform/qcom/venus/hfi_msgs.c void *packet) packet 211 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_sys_init_done_pkt *pkt = packet; packet 254 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 256 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_sys_property_info_pkt *pkt = packet; packet 276 drivers/media/platform/qcom/venus/hfi_msgs.c void *packet) packet 278 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_sys_release_resource_done_pkt *pkt = packet; packet 285 drivers/media/platform/qcom/venus/hfi_msgs.c void *packet) packet 287 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_sys_ping_ack_pkt *pkt = packet; packet 298 drivers/media/platform/qcom/venus/hfi_msgs.c void *packet) packet 304 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 306 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_sys_pc_prep_done_pkt *pkt = packet; packet 364 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 366 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_property_info_pkt *pkt = packet; packet 401 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 403 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_init_done_pkt *pkt = packet; packet 427 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 429 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_load_resources_done_pkt *pkt = packet; packet 436 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 438 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_flush_done_pkt *pkt = packet; packet 445 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 447 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_empty_buffer_done_pkt *pkt = packet; packet 455 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 465 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_fbd_compressed_pkt *pkt = packet; packet 479 drivers/media/platform/qcom/venus/hfi_msgs.c packet; packet 536 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 538 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_start_done_pkt *pkt = packet; packet 545 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 547 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_stop_done_pkt *pkt = packet; packet 554 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 556 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_release_resources_done_pkt *pkt = packet; packet 563 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 565 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_release_buffers_done_pkt *pkt = packet; packet 572 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 574 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_end_done_pkt *pkt = packet; packet 581 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 583 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_sys_session_abort_done_pkt *pkt = packet; packet 590 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) packet 592 drivers/media/platform/qcom/venus/hfi_msgs.c struct hfi_msg_session_get_sequence_hdr_done_pkt *pkt = packet; packet 152 drivers/media/platform/qcom/venus/hfi_venus.c static void venus_dump_packet(struct venus_hfi_device *hdev, const void *packet) packet 154 drivers/media/platform/qcom/venus/hfi_venus.c size_t pkt_size = *(u32 *)packet; packet 159 drivers/media/platform/qcom/venus/hfi_venus.c print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 1, packet, packet 165 drivers/media/platform/qcom/venus/hfi_venus.c void *packet, u32 *rx_req) packet 179 drivers/media/platform/qcom/venus/hfi_venus.c venus_dump_packet(hdev, packet); packet 181 drivers/media/platform/qcom/venus/hfi_venus.c dwords = (*(u32 *)packet) >> 2; packet 210 drivers/media/platform/qcom/venus/hfi_venus.c memcpy(wr_ptr, packet, dwords << 2); packet 216 drivers/media/platform/qcom/venus/hfi_venus.c memcpy(wr_ptr, packet, len); packet 217 drivers/media/platform/qcom/venus/hfi_venus.c memcpy(queue->qmem.kva, packet + len, new_wr_idx << 2); packet 419 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE]; packet 425 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_sys_set_resource_pkt *)packet; packet 774 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE]; packet 777 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_sys_set_property_pkt *)packet; packet 791 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE]; packet 794 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_sys_set_property_pkt *)packet; packet 809 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE]; packet 815 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_sys_set_property_pkt *)packet; packet 830 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE]; packet 833 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_sys_set_property_pkt *)packet; packet 901 drivers/media/platform/qcom/venus/hfi_venus.c void *packet = hdev->dbg_buf; packet 903 drivers/media/platform/qcom/venus/hfi_venus.c while (!venus_iface_dbgq_read(hdev, packet)) { packet 904 drivers/media/platform/qcom/venus/hfi_venus.c struct hfi_msg_sys_coverage_pkt *pkt = packet; packet 907 drivers/media/platform/qcom/venus/hfi_venus.c struct hfi_msg_sys_debug_pkt *pkt = packet; packet 980 drivers/media/platform/qcom/venus/hfi_venus.c void *packet) packet 982 drivers/media/platform/qcom/venus/hfi_venus.c struct hfi_msg_event_notify_pkt *event_pkt = packet; packet 1250 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_LARGE_PKT_SIZE]; packet 1256 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_session_set_buffers_pkt *)packet; packet 1270 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_LARGE_PKT_SIZE]; packet 1276 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_session_release_buffer_pkt *)packet; packet 1300 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE]; packet 1303 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_session_parse_sequence_header_pkt *)packet; packet 1321 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE]; packet 1324 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_session_get_sequence_header_pkt *)packet; packet 1338 drivers/media/platform/qcom/venus/hfi_venus.c u8 packet[IFACEQ_VAR_LARGE_PKT_SIZE]; packet 1341 drivers/media/platform/qcom/venus/hfi_venus.c pkt = (struct hfi_session_set_property_pkt *)packet; packet 11 drivers/media/platform/vivid/vivid-vbi-cap.h void vivid_fill_time_of_day_packet(u8 *packet); packet 176 drivers/media/platform/vivid/vivid-vbi-gen.c static void vivid_vbi_gen_set_time_of_day(u8 *packet) packet 182 drivers/media/platform/vivid/vivid-vbi-gen.c packet[0] = calc_parity(0x07); packet 183 drivers/media/platform/vivid/vivid-vbi-gen.c packet[1] = calc_parity(0x01); packet 184 drivers/media/platform/vivid/vivid-vbi-gen.c packet[2] = calc_parity(0x40 | tm.tm_min); packet 185 drivers/media/platform/vivid/vivid-vbi-gen.c packet[3] = calc_parity(0x40 | tm.tm_hour); packet 186 drivers/media/platform/vivid/vivid-vbi-gen.c packet[4] = calc_parity(0x40 | tm.tm_mday); packet 189 drivers/media/platform/vivid/vivid-vbi-gen.c packet[4] = calc_parity(0x60 | tm.tm_mday); packet 190 drivers/media/platform/vivid/vivid-vbi-gen.c packet[5] = calc_parity(0x40 | (1 + tm.tm_mon)); packet 191 drivers/media/platform/vivid/vivid-vbi-gen.c packet[6] = calc_parity(0x40 | (1 + tm.tm_wday)); packet 192 drivers/media/platform/vivid/vivid-vbi-gen.c packet[7] = calc_parity(0x40 | ((tm.tm_year - 90) & 0x3f)); packet 193 drivers/media/platform/vivid/vivid-vbi-gen.c packet[8] = calc_parity(0x0f); packet 195 drivers/media/platform/vivid/vivid-vbi-gen.c checksum += packet[i] & 0x7f; packet 196 drivers/media/platform/vivid/vivid-vbi-gen.c packet[9] = calc_parity(0x100 - checksum); packet 198 drivers/media/platform/vivid/vivid-vbi-gen.c packet[10] = calc_parity(0x07); packet 199 drivers/media/platform/vivid/vivid-vbi-gen.c packet[11] = calc_parity(0x04); packet 201 drivers/media/platform/vivid/vivid-vbi-gen.c packet[12] = calc_parity(0x40 | ((sys_tz.tz_minuteswest / 60) & 0x1f)); packet 203 drivers/media/platform/vivid/vivid-vbi-gen.c packet[12] = calc_parity(0x40 | ((24 + sys_tz.tz_minuteswest / 60) & 0x1f)); packet 204 drivers/media/platform/vivid/vivid-vbi-gen.c packet[13] = calc_parity(0); packet 205 drivers/media/platform/vivid/vivid-vbi-gen.c packet[14] = calc_parity(0x0f); packet 207 drivers/media/platform/vivid/vivid-vbi-gen.c checksum += packet[i] & 0x7f; packet 208 drivers/media/platform/vivid/vivid-vbi-gen.c packet[15] = calc_parity(0x100 - checksum); packet 216 drivers/media/platform/vivid/vivid-vbi-gen.c static void vivid_vbi_gen_teletext(u8 *packet, unsigned line, unsigned frame) packet 221 drivers/media/platform/vivid/vivid-vbi-gen.c packet[0] = hamming[1 + ((line & 1) << 3)]; packet 222 drivers/media/platform/vivid/vivid-vbi-gen.c packet[1] = hamming[line >> 1]; packet 223 drivers/media/platform/vivid/vivid-vbi-gen.c memset(packet + 2, 0x20, 40); packet 226 drivers/media/platform/vivid/vivid-vbi-gen.c packet[2] = hamming[frame % 10]; packet 227 drivers/media/platform/vivid/vivid-vbi-gen.c packet[3] = hamming[frame / 10]; packet 228 drivers/media/platform/vivid/vivid-vbi-gen.c packet[4] = hamming[0]; packet 229 drivers/media/platform/vivid/vivid-vbi-gen.c packet[5] = hamming[0]; packet 230 drivers/media/platform/vivid/vivid-vbi-gen.c packet[6] = hamming[0]; packet 231 drivers/media/platform/vivid/vivid-vbi-gen.c packet[7] = hamming[0]; packet 232 drivers/media/platform/vivid/vivid-vbi-gen.c packet[8] = hamming[0]; packet 233 drivers/media/platform/vivid/vivid-vbi-gen.c packet[9] = hamming[1]; packet 236 drivers/media/platform/vivid/vivid-vbi-gen.c packet += offset; packet 237 drivers/media/platform/vivid/vivid-vbi-gen.c memcpy(packet, "Page: 100 Row: 10", 17); packet 238 drivers/media/platform/vivid/vivid-vbi-gen.c packet[7] = '0' + frame / 10; packet 239 drivers/media/platform/vivid/vivid-vbi-gen.c packet[8] = '0' + frame % 10; packet 240 drivers/media/platform/vivid/vivid-vbi-gen.c packet[15] = '0' + line / 10; packet 241 drivers/media/platform/vivid/vivid-vbi-gen.c packet[16] = '0' + line % 10; packet 243 drivers/media/platform/vivid/vivid-vbi-gen.c packet[i] = calc_parity(packet[i]); packet 42 drivers/media/rc/iguanair.c struct send_packet *packet; packet 74 drivers/media/rc/iguanair.c struct packet header; packet 188 drivers/media/rc/iguanair.c if (urb->status == 0 && ir->packet->header.cmd == CMD_NOP) packet 218 drivers/media/rc/iguanair.c ir->packet->header.start = 0; packet 219 drivers/media/rc/iguanair.c ir->packet->header.direction = DIR_OUT; packet 220 drivers/media/rc/iguanair.c ir->packet->header.cmd = CMD_NOP; packet 221 drivers/media/rc/iguanair.c iguanair_send(ir, sizeof(ir->packet->header)); packet 223 drivers/media/rc/iguanair.c ir->packet->header.cmd = CMD_GET_VERSION; packet 224 drivers/media/rc/iguanair.c rc = iguanair_send(ir, sizeof(ir->packet->header)); packet 239 drivers/media/rc/iguanair.c ir->packet->header.cmd = CMD_GET_BUFSIZE; packet 241 drivers/media/rc/iguanair.c rc = iguanair_send(ir, sizeof(ir->packet->header)); packet 253 drivers/media/rc/iguanair.c ir->packet->header.cmd = CMD_GET_FEATURES; packet 255 drivers/media/rc/iguanair.c rc = iguanair_send(ir, sizeof(ir->packet->header)); packet 264 drivers/media/rc/iguanair.c ir->packet->header.start = 0; packet 265 drivers/media/rc/iguanair.c ir->packet->header.direction = DIR_OUT; packet 266 drivers/media/rc/iguanair.c ir->packet->header.cmd = enable ? CMD_RECEIVER_ON : CMD_RECEIVER_OFF; packet 271 drivers/media/rc/iguanair.c return iguanair_send(ir, sizeof(ir->packet->header)); packet 313 drivers/media/rc/iguanair.c ir->packet->busy7 = (4 - sevens) * 2; packet 314 drivers/media/rc/iguanair.c ir->packet->busy4 = 110 - fours; packet 330 drivers/media/rc/iguanair.c ir->packet->channels = mask << 4; packet 353 drivers/media/rc/iguanair.c ir->packet->payload[size++] = p | ((i & 1) ? 0x80 : 0); packet 358 drivers/media/rc/iguanair.c ir->packet->header.start = 0; packet 359 drivers/media/rc/iguanair.c ir->packet->header.direction = DIR_OUT; packet 360 drivers/media/rc/iguanair.c ir->packet->header.cmd = CMD_SEND; packet 361 drivers/media/rc/iguanair.c ir->packet->length = size; packet 365 drivers/media/rc/iguanair.c rc = iguanair_send(ir, sizeof(*ir->packet) + size); packet 429 drivers/media/rc/iguanair.c ir->packet = usb_alloc_coherent(udev, MAX_OUT_PACKET, GFP_KERNEL, packet 434 drivers/media/rc/iguanair.c if (!ir->buf_in || !ir->packet || !ir->urb_in || !ir->urb_out || packet 449 drivers/media/rc/iguanair.c usb_fill_int_urb(ir->urb_out, udev, pipeout, ir->packet, MAX_OUT_PACKET, packet 513 drivers/media/rc/iguanair.c usb_free_coherent(udev, MAX_OUT_PACKET, ir->packet, packet 532 drivers/media/rc/iguanair.c usb_free_coherent(ir->udev, MAX_OUT_PACKET, ir->packet, ir->dma_out); packet 646 drivers/media/rc/imon.c const unsigned char packet[8] = { 0x01, 0x00, 0x00, 0x00, packet 659 drivers/media/rc/imon.c memcpy(ictx->usb_tx_buf, packet, sizeof(packet)); packet 55 drivers/media/usb/au0828/au0828-video.c int packet, int status) packet 85 drivers/media/usb/au0828/au0828-video.c if (packet < 0) { packet 89 drivers/media/usb/au0828/au0828-video.c packet, status, errmsg); packet 167 drivers/media/usb/cx231xx/cx231xx-dvb.c static inline void print_err_status(struct cx231xx *dev, int packet, int status) packet 197 drivers/media/usb/cx231xx/cx231xx-dvb.c if (packet < 0) { packet 203 drivers/media/usb/cx231xx/cx231xx-dvb.c packet, status, errmsg); packet 28 drivers/media/usb/cx231xx/cx231xx-vbi.c static inline void print_err_status(struct cx231xx *dev, int packet, int status) packet 58 drivers/media/usb/cx231xx/cx231xx-vbi.c if (packet < 0) { packet 64 drivers/media/usb/cx231xx/cx231xx-vbi.c packet, status, errmsg); packet 183 drivers/media/usb/cx231xx/cx231xx-video.c static inline void print_err_status(struct cx231xx *dev, int packet, int status) packet 213 drivers/media/usb/cx231xx/cx231xx-video.c if (packet < 0) { packet 217 drivers/media/usb/cx231xx/cx231xx-video.c packet, status, errmsg); packet 109 drivers/media/usb/em28xx/em28xx-dvb.c int packet, int status) packet 139 drivers/media/usb/em28xx/em28xx-dvb.c if (packet < 0) { packet 143 drivers/media/usb/em28xx/em28xx-dvb.c packet, status, errmsg); packet 556 drivers/media/usb/em28xx/em28xx-video.c int packet, int status) packet 586 drivers/media/usb/em28xx/em28xx-video.c if (packet < 0) { packet 590 drivers/media/usb/em28xx/em28xx-video.c packet, status, errmsg); packet 52 drivers/media/usb/gspca/se401.c u8 packet[PACKET_SIZE]; packet 493 drivers/media/usb/gspca/se401.c memcpy(&sd->packet[sd->packet_read], &data[i], count); packet 499 drivers/media/usb/gspca/se401.c bits = sd->packet[3] + (sd->packet[2] << 8); packet 500 drivers/media/usb/gspca/se401.c pixels = sd->packet[1] + ((sd->packet[0] & 0x3f) << 8); packet 501 drivers/media/usb/gspca/se401.c info = (sd->packet[0] & 0xc0) >> 6; packet 518 drivers/media/usb/gspca/se401.c memcpy(&sd->packet[sd->packet_read], &data[i], count); packet 529 drivers/media/usb/gspca/se401.c gspca_frame_add(gspca_dev, INTER_PACKET, sd->packet, packet 538 drivers/media/usb/gspca/se401.c sd_complete_frame(gspca_dev, sd->packet, plen); packet 541 drivers/media/usb/gspca/se401.c gspca_frame_add(gspca_dev, FIRST_PACKET, sd->packet, packet 19 drivers/media/usb/gspca/tv8532.c __u8 packet; packet 237 drivers/media/usb/gspca/tv8532.c sd->packet = 0; /* ignore the first packets */ packet 257 drivers/media/usb/gspca/tv8532.c sd->packet = gspca_dev->pixfmt.height / 2; packet 259 drivers/media/usb/gspca/tv8532.c } else if (sd->packet == 0) packet 261 drivers/media/usb/gspca/tv8532.c sd->packet--; packet 262 drivers/media/usb/gspca/tv8532.c if (sd->packet == 0) packet 25 drivers/media/usb/stk1160/stk1160-video.c int packet, int status) packet 56 drivers/media/usb/stk1160/stk1160-video.c if (packet < 0) packet 61 drivers/media/usb/stk1160/stk1160-video.c packet, status, errmsg); packet 34 drivers/media/usb/tm6000/tm6000-dvb.c int packet, int status) packet 64 drivers/media/usb/tm6000/tm6000-dvb.c if (packet < 0) { packet 69 drivers/media/usb/tm6000/tm6000-dvb.c packet, status, errmsg); packet 326 drivers/media/usb/tm6000/tm6000-video.c int packet, int status) packet 356 drivers/media/usb/tm6000/tm6000-video.c if (packet < 0) { packet 361 drivers/media/usb/tm6000/tm6000-video.c packet, status, errmsg); packet 124 drivers/media/usb/ttusb-dec/ttusb_dec.c u8 packet[MAX_PVA_LENGTH + 4]; packet 559 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_process_filter(struct ttusb_dec *dec, u8 *packet, packet 568 drivers/media/usb/ttusb-dec/ttusb_dec.c sid = packet[1]; packet 581 drivers/media/usb/ttusb-dec/ttusb_dec.c filter->feed->cb.sec(&packet[2], length - 2, NULL, 0, packet 597 drivers/media/usb/ttusb-dec/ttusb_dec.c csum ^= ((dec->packet[i] << 8) + dec->packet[i + 1]); packet 604 drivers/media/usb/ttusb-dec/ttusb_dec.c packet_id = dec->packet[dec->packet_length - 4] << 8; packet 605 drivers/media/usb/ttusb-dec/ttusb_dec.c packet_id += dec->packet[dec->packet_length - 3]; packet 620 drivers/media/usb/ttusb-dec/ttusb_dec.c ttusb_dec_process_pva(dec, dec->packet, packet 626 drivers/media/usb/ttusb-dec/ttusb_dec.c ttusb_dec_process_filter(dec, dec->packet, packet 674 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->packet[dec->packet_length++] = *b++; packet 677 drivers/media/usb/ttusb-dec/ttusb_dec.c if (dec->packet[0] == 'A' && packet 678 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->packet[1] == 'V') { packet 682 drivers/media/usb/ttusb-dec/ttusb_dec.c } else if (dec->packet[0] == 'S') { packet 686 drivers/media/usb/ttusb-dec/ttusb_dec.c } else if (dec->packet[0] == 0x00) { packet 694 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->packet[0], dec->packet[1]); packet 703 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->packet[dec->packet_length++] = *b++; packet 709 drivers/media/usb/ttusb-dec/ttusb_dec.c (dec->packet[6] << 8) + packet 710 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->packet[7]; packet 716 drivers/media/usb/ttusb-dec/ttusb_dec.c ((dec->packet[3] & 0x0f) << 8) + packet 717 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->packet[4]; packet 728 drivers/media/usb/ttusb-dec/ttusb_dec.c memcpy(dec->packet + dec->packet_length, packet 735 drivers/media/usb/ttusb-dec/ttusb_dec.c memcpy(&dec->packet[dec->packet_length], packet 747 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->packet[dec->packet_length++] = *b++; packet 92 drivers/net/caif/caif_serial.c ser->tty->packet << 2 | packet 767 drivers/net/can/kvaser_pciefd.c struct kvaser_pciefd_tx_packet packet; packet 774 drivers/net/can/kvaser_pciefd.c nwords = kvaser_pciefd_prepare_tx_packet(&packet, can, skb); packet 785 drivers/net/can/kvaser_pciefd.c iowrite32(packet.header[0], packet 787 drivers/net/can/kvaser_pciefd.c iowrite32(packet.header[1], packet 791 drivers/net/can/kvaser_pciefd.c u32 data_last = ((u32 *)packet.data)[nwords - 1]; packet 795 drivers/net/can/kvaser_pciefd.c KVASER_PCIEFD_KCAN_FIFO_REG, packet.data, packet 1575 drivers/net/can/kvaser_pciefd.c struct kvaser_pciefd_rx_packet packet; packet 1576 drivers/net/can/kvaser_pciefd.c struct kvaser_pciefd_rx_packet *p = &packet; packet 958 drivers/net/ethernet/8390/axnet_cs.c u8 packet[ETH_ZLEN]; packet 1033 drivers/net/ethernet/8390/axnet_cs.c memset(packet, 0, ETH_ZLEN); packet 1034 drivers/net/ethernet/8390/axnet_cs.c skb_copy_from_linear_data(skb, packet, skb->len); packet 1035 drivers/net/ethernet/8390/axnet_cs.c ei_block_output(dev, length, packet, output_page); packet 986 drivers/net/ethernet/amd/pcnet32.c unsigned char *packet; /* source packet data */ packet 1023 drivers/net/ethernet/amd/pcnet32.c packet = skb->data; packet 1031 drivers/net/ethernet/amd/pcnet32.c *packet++ = dev->dev_addr[i]; packet 1033 drivers/net/ethernet/amd/pcnet32.c *packet++ = dev->dev_addr[i]; packet 1035 drivers/net/ethernet/amd/pcnet32.c *packet++ = 0x08; packet 1036 drivers/net/ethernet/amd/pcnet32.c *packet++ = 0x06; packet 1038 drivers/net/ethernet/amd/pcnet32.c *packet++ = x; packet 1041 drivers/net/ethernet/amd/pcnet32.c *packet++ = i; packet 1102 drivers/net/ethernet/amd/pcnet32.c packet = lp->tx_skbuff[x]->data; packet 1104 drivers/net/ethernet/amd/pcnet32.c if (*(skb->data + i) != packet[i]) { packet 1107 drivers/net/ethernet/amd/pcnet32.c i, *(skb->data + i), packet[i]); packet 887 drivers/net/ethernet/amd/sunlance.c u16 __iomem *packet = (u16 __iomem *) &(ib->tx_buf[entry][0]); packet 888 drivers/net/ethernet/amd/sunlance.c struct ethhdr __iomem *eth = (struct ethhdr __iomem *) packet; packet 890 drivers/net/ethernet/amd/sunlance.c sbus_writew(0, &packet[i]); packet 900 drivers/net/ethernet/amd/sunlance.c u16 *packet = (u16 *) &(ib->tx_buf[entry][0]); packet 901 drivers/net/ethernet/amd/sunlance.c struct ethhdr *eth = (struct ethhdr *) packet; packet 902 drivers/net/ethernet/amd/sunlance.c memset(packet, 0, ETH_ZLEN); packet 528 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_packet_data *packet; packet 541 drivers/net/ethernet/amd/xgbe/xgbe-desc.c packet = &ring->packet_data; packet 542 drivers/net/ethernet/amd/xgbe/xgbe-desc.c packet->rdesc_count = 0; packet 543 drivers/net/ethernet/amd/xgbe/xgbe-desc.c packet->length = 0; packet 545 drivers/net/ethernet/amd/xgbe/xgbe-desc.c tso = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 547 drivers/net/ethernet/amd/xgbe/xgbe-desc.c vlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 551 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if ((tso && (packet->mss != ring->tx.cur_mss)) || packet 552 drivers/net/ethernet/amd/xgbe/xgbe-desc.c (vlan && (packet->vlan_ctag != ring->tx.cur_vlan_ctag))) packet 559 drivers/net/ethernet/amd/xgbe/xgbe-desc.c packet->header_len, DMA_TO_DEVICE); packet 565 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma_len = packet->header_len; packet 568 drivers/net/ethernet/amd/xgbe/xgbe-desc.c cur_index, &skb_dma, packet->header_len); packet 570 drivers/net/ethernet/amd/xgbe/xgbe-desc.c offset = packet->header_len; packet 572 drivers/net/ethernet/amd/xgbe/xgbe-desc.c packet->length += packet->header_len; packet 597 drivers/net/ethernet/amd/xgbe/xgbe-desc.c packet->length += len; packet 631 drivers/net/ethernet/amd/xgbe/xgbe-desc.c packet->length += len; packet 646 drivers/net/ethernet/amd/xgbe/xgbe-desc.c packet->rdesc_count = cur_index - start_index; packet 648 drivers/net/ethernet/amd/xgbe/xgbe-desc.c DBGPR("<--xgbe_map_tx_skb: count=%u\n", packet->rdesc_count); packet 650 drivers/net/ethernet/amd/xgbe/xgbe-desc.c return packet->rdesc_count; packet 1592 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_get_rx_tstamp(struct xgbe_packet_data *packet, packet 1603 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->rx_tstamp = nsec; packet 1604 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 1672 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_packet_data *packet = &ring->packet_data; packet 1683 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tx_packets = packet->tx_packets; packet 1684 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tx_bytes = packet->tx_bytes; packet 1686 drivers/net/ethernet/amd/xgbe/xgbe-dev.c csum = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1688 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tso = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1690 drivers/net/ethernet/amd/xgbe/xgbe-dev.c vlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1692 drivers/net/ethernet/amd/xgbe/xgbe-dev.c vxlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1695 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (tso && (packet->mss != ring->tx.cur_mss)) packet 1700 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (vlan && (packet->vlan_ctag != ring->tx.cur_vlan_ctag)) packet 1733 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->mss); packet 1737 drivers/net/ethernet/amd/xgbe/xgbe-dev.c MSS, packet->mss); packet 1747 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ring->tx.cur_mss = packet->mss; packet 1753 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->vlan_ctag); packet 1761 drivers/net/ethernet/amd/xgbe/xgbe-dev.c VT, packet->vlan_ctag); packet 1767 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ring->tx.cur_vlan_ctag = packet->vlan_ctag; packet 1789 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) packet 1806 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->tcp_payload_len); packet 1808 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->tcp_header_len / 4); packet 1822 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->length); packet 1829 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.tx_vxlan_packets += packet->tx_packets; packet 1832 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = cur_index - start_index + 1; i < packet->rdesc_count; i++) { packet 1884 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->rdesc_count, 1); packet 1910 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_packet_data *packet = &ring->packet_data; packet 1931 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_get_rx_tstamp(packet, rdesc); packet 1933 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 1935 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 1941 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, CONTEXT, 0); packet 1945 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 1950 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 1957 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 1963 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 1966 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->rss_hash = le32_to_cpu(rdesc->desc1); packet 1974 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->rss_hash_type = PKT_HASH_TYPE_L4; packet 1977 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->rss_hash_type = PKT_HASH_TYPE_L3; packet 1986 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 1994 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 1996 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 2002 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 2010 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 2025 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 2027 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->vlan_ctag = XGMAC_GET_BITS_LE(rdesc->desc0, packet 2031 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->vlan_ctag); packet 2034 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int tnp = XGMAC_GET_BITS(packet->attributes, packet 2038 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 2040 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 2044 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 2046 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 2050 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(packet->errors, RX_PACKET_ERRORS, packet 1712 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_packet_data *packet) packet 1716 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) { packet 1720 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XGMAC_SET_BITS(packet->attributes, packet 1732 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_prep_vlan(struct sk_buff *skb, struct xgbe_packet_data *packet) packet 1735 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->vlan_ctag = skb_vlan_tag_get(skb); packet 1738 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_prep_tso(struct sk_buff *skb, struct xgbe_packet_data *packet) packet 1742 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1750 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, VXLAN)) { packet 1751 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->header_len = skb_inner_transport_offset(skb) + packet 1753 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->tcp_header_len = inner_tcp_hdrlen(skb); packet 1755 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->header_len = skb_transport_offset(skb) + packet 1757 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->tcp_header_len = tcp_hdrlen(skb); packet 1759 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->tcp_payload_len = skb->len - packet->header_len; packet 1760 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->mss = skb_shinfo(skb)->gso_size; packet 1762 drivers/net/ethernet/amd/xgbe/xgbe-drv.c DBGPR(" packet->header_len=%u\n", packet->header_len); packet 1764 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->tcp_header_len, packet->tcp_payload_len); packet 1765 drivers/net/ethernet/amd/xgbe/xgbe-drv.c DBGPR(" packet->mss=%u\n", packet->mss); packet 1770 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->tx_packets = skb_shinfo(skb)->gso_segs; packet 1771 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->tx_bytes += (packet->tx_packets - 1) * packet->header_len; packet 1834 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_packet_data *packet) packet 1841 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->skb = skb; packet 1844 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->rdesc_count = 0; packet 1846 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->tx_packets = 1; packet 1847 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->tx_bytes = skb->len; packet 1853 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->rdesc_count++; packet 1857 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->rdesc_count++; packet 1859 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1861 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1864 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1868 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1877 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->rdesc_count++; packet 1880 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1886 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, packet 1890 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->rdesc_count++; packet 1897 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->rdesc_count++; packet 2018 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_packet_data *packet; packet 2027 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet = &ring->packet_data; packet 2039 drivers/net/ethernet/amd/xgbe/xgbe-drv.c memset(packet, 0, sizeof(*packet)); packet 2040 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_packet_info(pdata, ring, skb, packet); packet 2043 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_maybe_stop_tx_queue(channel, ring, packet->rdesc_count); packet 2047 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_prep_tso(skb, packet); packet 2054 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_prep_vlan(skb, packet); packet 2061 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_prep_tx_tstamp(pdata, skb, packet); packet 2064 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netdev_tx_sent_queue(txq, packet->tx_bytes); packet 2554 drivers/net/ethernet/amd/xgbe/xgbe-drv.c u8 *packet; packet 2567 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet = page_address(rdata->rx.hdr.pa.pages) + packet 2569 drivers/net/ethernet/amd/xgbe/xgbe-drv.c skb_copy_to_linear_data(skb, packet, len); packet 2576 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_packet_data *packet) packet 2579 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!XGMAC_GET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, FIRST)) packet 2589 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!XGMAC_GET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, LAST)) packet 2599 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_packet_data *packet, packet 2603 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!XGMAC_GET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, LAST)) packet 2689 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_packet_data *packet; packet 2711 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet = &ring->packet_data; packet 2721 drivers/net/ethernet/amd/xgbe/xgbe-drv.c memset(packet, 0, sizeof(*packet)); packet 2739 drivers/net/ethernet/amd/xgbe/xgbe-drv.c last = XGMAC_GET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, packet 2741 drivers/net/ethernet/amd/xgbe/xgbe-drv.c context_next = XGMAC_GET_BITS(packet->attributes, packet 2744 drivers/net/ethernet/amd/xgbe/xgbe-drv.c context = XGMAC_GET_BITS(packet->attributes, packet 2752 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (error || packet->errors) { packet 2753 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (packet->errors) packet 2762 drivers/net/ethernet/amd/xgbe/xgbe-drv.c buf1_len = xgbe_rx_buf1_len(rdata, packet); packet 2764 drivers/net/ethernet/amd/xgbe/xgbe-drv.c buf2_len = xgbe_rx_buf2_len(rdata, packet, len); packet 2816 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (XGMAC_GET_BITS(packet->attributes, packet 2820 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (XGMAC_GET_BITS(packet->attributes, packet 2824 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (XGMAC_GET_BITS(packet->attributes, packet 2829 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (XGMAC_GET_BITS(packet->attributes, packet 2832 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->vlan_ctag); packet 2834 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (XGMAC_GET_BITS(packet->attributes, packet 2839 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->rx_tstamp); packet 2844 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (XGMAC_GET_BITS(packet->attributes, packet 2846 drivers/net/ethernet/amd/xgbe/xgbe-drv.c skb_set_hash(skb, packet->rss_hash, packet 2847 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet->rss_hash_type); packet 95 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h u8 packet[1514U]; packet 1354 drivers/net/ethernet/atheros/atl1e/atl1e_main.c u8 *packet = (u8 *)(prrs + 1); packet 1368 drivers/net/ethernet/atheros/atl1e/atl1e_main.c iph = (struct iphdr *) (packet + head_len); packet 432 drivers/net/ethernet/atheros/atlx/atl2.c memcpy(skb->data, rxd->packet, rx_size); packet 341 drivers/net/ethernet/atheros/atlx/atl2.h unsigned char packet[1536-sizeof(struct rx_pkt_status)]; packet 5812 drivers/net/ethernet/broadcom/bnx2.c unsigned char *packet; packet 5845 drivers/net/ethernet/broadcom/bnx2.c packet = skb_put(skb, pkt_size); packet 5846 drivers/net/ethernet/broadcom/bnx2.c memcpy(packet, bp->dev->dev_addr, ETH_ALEN); packet 5847 drivers/net/ethernet/broadcom/bnx2.c memset(packet + ETH_ALEN, 0x0, 8); packet 5849 drivers/net/ethernet/broadcom/bnx2.c packet[i] = (unsigned char) (i & 0xff); packet 2496 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c unsigned char *packet; packet 2559 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c packet = skb_put(skb, pkt_size); packet 2560 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c memcpy(packet, bp->dev->dev_addr, ETH_ALEN); packet 2561 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c eth_zero_addr(packet + ETH_ALEN); packet 2562 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c memset(packet + 2*ETH_ALEN, 0x77, (ETH_HLEN - 2*ETH_ALEN)); packet 2564 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c packet[i] = (unsigned char) (i & 0xff); packet 6225 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h __le64 packet; packet 146 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c unsigned char *packet; packet 152 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c packet = skb_put(skb, HNS3_NIC_LB_TEST_PACKET_SIZE); packet 169 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c packet[i] = (unsigned char)(i & 0xff); packet 176 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c unsigned char *packet = skb->data; packet 180 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c if (packet[i] != (unsigned char)(i & 0xff)) packet 182 drivers/net/ethernet/intel/i40e/i40e_txrx.c static char packet[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x08, 0, packet 189 drivers/net/ethernet/intel/i40e/i40e_txrx.c memcpy(raw_packet, packet, I40E_UDPIP_DUMMY_PACKET_LEN); packet 255 drivers/net/ethernet/intel/i40e/i40e_txrx.c static char packet[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x08, 0, packet 263 drivers/net/ethernet/intel/i40e/i40e_txrx.c memcpy(raw_packet, packet, I40E_TCPIP_DUMMY_PACKET_LEN); packet 334 drivers/net/ethernet/intel/i40e/i40e_txrx.c static char packet[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x08, 0, packet 341 drivers/net/ethernet/intel/i40e/i40e_txrx.c memcpy(raw_packet, packet, I40E_SCTPIP_DUMMY_PACKET_LEN); packet 407 drivers/net/ethernet/intel/i40e/i40e_txrx.c static char packet[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x08, 0, packet 416 drivers/net/ethernet/intel/i40e/i40e_txrx.c memcpy(raw_packet, packet, I40E_IP_DUMMY_PACKET_LEN); packet 53 drivers/net/ethernet/mellanox/mlx4/en_selftest.c unsigned char *packet; packet 67 drivers/net/ethernet/mellanox/mlx4/en_selftest.c packet = skb_put(skb, packet_size); packet 73 drivers/net/ethernet/mellanox/mlx4/en_selftest.c packet[i] = (unsigned char)(i & 0xff); packet 2809 drivers/net/ethernet/nvidia/forcedeth.c static int nv_getlen(struct net_device *dev, void *packet, int datalen) packet 2815 drivers/net/ethernet/nvidia/forcedeth.c if (((struct vlan_ethhdr *)packet)->h_vlan_proto == htons(ETH_P_8021Q)) { packet 2816 drivers/net/ethernet/nvidia/forcedeth.c protolen = ntohs(((struct vlan_ethhdr *)packet)->h_vlan_encapsulated_proto); packet 2819 drivers/net/ethernet/nvidia/forcedeth.c protolen = ntohs(((struct ethhdr *)packet)->h_proto); packet 380 drivers/net/ethernet/nxp/lpc_eth.c __le32 packet; packet 561 drivers/net/ethernet/nxp/lpc_eth.c ptxrxdesc->packet = __va_to_pa( packet 572 drivers/net/ethernet/nxp/lpc_eth.c ptxrxdesc->packet = __va_to_pa( packet 1657 drivers/net/ethernet/qlogic/qede/qede_ethtool.c u8 *packet; packet 1688 drivers/net/ethernet/qlogic/qede/qede_ethtool.c packet = skb_put(skb, pkt_size); packet 1689 drivers/net/ethernet/qlogic/qede/qede_ethtool.c ether_addr_copy(packet, edev->ndev->dev_addr); packet 1690 drivers/net/ethernet/qlogic/qede/qede_ethtool.c ether_addr_copy(packet + ETH_ALEN, edev->ndev->dev_addr); packet 1691 drivers/net/ethernet/qlogic/qede/qede_ethtool.c memset(packet + (2 * ETH_ALEN), 0x77, (ETH_HLEN - (2 * ETH_ALEN))); packet 1693 drivers/net/ethernet/qlogic/qede/qede_ethtool.c packet[i] = (unsigned char)(i & 0xff); packet 198 drivers/net/ethernet/realtek/atp.c static void write_packet(long ioaddr, int length, unsigned char *packet, int pad, int mode); packet 496 drivers/net/ethernet/realtek/atp.c static void write_packet(long ioaddr, int length, unsigned char *packet, int pad_len, int data_mode) packet 509 drivers/net/ethernet/realtek/atp.c write_byte_mode0(ioaddr, *packet++); packet 516 drivers/net/ethernet/realtek/atp.c unsigned char outbyte = *packet++; packet 527 drivers/net/ethernet/realtek/atp.c write_byte_mode1(ioaddr, *packet++); packet 114 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c u8 packet, u32 queue) packet 130 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c value &= ~route_possibilities[packet - 1].reg_mask; packet 131 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c value |= (queue << route_possibilities[packet-1].reg_shift) & packet 132 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c route_possibilities[packet - 1].reg_mask; packet 135 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c if (packet == PACKET_AVCPQ) { packet 138 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c } else if (packet == PACKET_MCBCQ) { packet 293 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*rx_queue_routing)(struct mac_device_info *hw, u8 packet, packet 2426 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c u8 packet; packet 2433 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c packet = priv->plat->rx_queues_cfg[queue].pkt_route; packet 2434 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_rx_queue_routing(priv, priv->hw, packet, queue); packet 233 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs *packet; packet 247 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c unsigned char *src = tpriv->packet->src; packet 248 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c unsigned char *dst = tpriv->packet->dst; packet 269 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (tpriv->packet->sarc) { packet 281 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (tpriv->packet->tcp) { packet 286 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (thdr->dest != htons(tpriv->packet->dport)) packet 295 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (uhdr->dest != htons(tpriv->packet->dport)) packet 303 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (tpriv->packet->exp_hash && !skb->hash) packet 305 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (tpriv->packet->id != shdr->id) packet 333 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = attr; packet 865 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (!ether_addr_equal_unaligned(ehdr->h_dest, tpriv->packet->dst)) packet 875 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (uhdr->dest != htons(tpriv->packet->dport)) packet 911 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = &attr; packet 987 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = &attr; packet 1244 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = &attr; packet 1563 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (!ether_addr_equal_unaligned(ehdr->h_dest, tpriv->packet->src)) packet 1602 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = &attr; packet 994 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c u8 *packet; packet 1008 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c packet = page_address(desc_data->rx.hdr.pa.pages) + packet 1012 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c skb_copy_to_linear_data(skb, packet, copy_len); packet 227 drivers/net/ethernet/ti/netcp.h typedef int netcp_hook_rtn(int order, void *data, struct netcp_packet *packet); packet 189 drivers/net/hyperv/hyperv_net.h struct hv_netvsc_packet *packet, packet 684 drivers/net/hyperv/netvsc.c const struct hv_netvsc_packet *packet packet 686 drivers/net/hyperv/netvsc.c u32 send_index = packet->send_buf_index; packet 691 drivers/net/hyperv/netvsc.c q_idx = packet->q_idx; packet 696 drivers/net/hyperv/netvsc.c tx_stats->packets += packet->total_packets; packet 697 drivers/net/hyperv/netvsc.c tx_stats->bytes += packet->total_bytes; packet 768 drivers/net/hyperv/netvsc.c struct hv_netvsc_packet *packet, packet 778 drivers/net/hyperv/netvsc.c u32 page_count = packet->cp_partial ? packet->rmsg_pgcnt : packet 779 drivers/net/hyperv/netvsc.c packet->page_buf_cnt; packet 783 drivers/net/hyperv/netvsc.c remain = packet->total_data_buflen & (net_device->pkt_align - 1); packet 787 drivers/net/hyperv/netvsc.c packet->total_data_buflen += padding; packet 805 drivers/net/hyperv/netvsc.c struct hv_netvsc_packet *packet, packet 814 drivers/net/hyperv/netvsc.c &net_device->chan_table[packet->q_idx]; packet 818 drivers/net/hyperv/netvsc.c struct netdev_queue *txq = netdev_get_tx_queue(ndev, packet->q_idx); packet 829 drivers/net/hyperv/netvsc.c rpkt->send_buf_section_index = packet->send_buf_index; packet 830 drivers/net/hyperv/netvsc.c if (packet->send_buf_index == NETVSC_INVALID_INDEX) packet 833 drivers/net/hyperv/netvsc.c rpkt->send_buf_section_size = packet->total_data_buflen; packet 842 drivers/net/hyperv/netvsc.c if (packet->page_buf_cnt) { packet 843 drivers/net/hyperv/netvsc.c if (packet->cp_partial) packet 844 drivers/net/hyperv/netvsc.c pb += packet->rmsg_pgcnt; packet 847 drivers/net/hyperv/netvsc.c pb, packet->page_buf_cnt, packet 870 drivers/net/hyperv/netvsc.c packet->page_buf_cnt, packet->total_data_buflen, packet 900 drivers/net/hyperv/netvsc.c struct hv_netvsc_packet *packet, packet 911 drivers/net/hyperv/netvsc.c u32 pktlen = packet->total_data_buflen, msd_len = 0; packet 922 drivers/net/hyperv/netvsc.c nvchan = &net_device->chan_table[packet->q_idx]; packet 923 drivers/net/hyperv/netvsc.c packet->send_buf_index = NETVSC_INVALID_INDEX; packet 924 drivers/net/hyperv/netvsc.c packet->cp_partial = false; packet 930 drivers/net/hyperv/netvsc.c return netvsc_send_pkt(device, packet, net_device, pb, skb); packet 942 drivers/net/hyperv/netvsc.c } else if (try_batch && msd_len + packet->rmsg_size < packet 945 drivers/net/hyperv/netvsc.c packet->cp_partial = true; packet 962 drivers/net/hyperv/netvsc.c !packet->cp_partial && packet 963 drivers/net/hyperv/netvsc.c !netif_xmit_stopped(netdev_get_tx_queue(ndev, packet->q_idx)); packet 968 drivers/net/hyperv/netvsc.c packet, rndis_msg, pb, xmit_more); packet 970 drivers/net/hyperv/netvsc.c packet->send_buf_index = section_index; packet 972 drivers/net/hyperv/netvsc.c if (packet->cp_partial) { packet 973 drivers/net/hyperv/netvsc.c packet->page_buf_cnt -= packet->rmsg_pgcnt; packet 974 drivers/net/hyperv/netvsc.c packet->total_data_buflen = msd_len + packet->rmsg_size; packet 976 drivers/net/hyperv/netvsc.c packet->page_buf_cnt = 0; packet 977 drivers/net/hyperv/netvsc.c packet->total_data_buflen += msd_len; packet 981 drivers/net/hyperv/netvsc.c packet->total_packets += msdp->pkt->total_packets; packet 982 drivers/net/hyperv/netvsc.c packet->total_bytes += msdp->pkt->total_bytes; packet 990 drivers/net/hyperv/netvsc.c msdp->pkt = packet; packet 993 drivers/net/hyperv/netvsc.c cur_send = packet; packet 1000 drivers/net/hyperv/netvsc.c cur_send = packet; packet 410 drivers/net/hyperv/netvsc_drv.c struct hv_netvsc_packet *packet, packet 427 drivers/net/hyperv/netvsc_drv.c packet->rmsg_size = len; packet 428 drivers/net/hyperv/netvsc_drv.c packet->rmsg_pgcnt = slots_used; packet 525 drivers/net/hyperv/netvsc_drv.c struct hv_netvsc_packet *packet = NULL; packet 575 drivers/net/hyperv/netvsc_drv.c packet = (struct hv_netvsc_packet *)skb->cb; packet 577 drivers/net/hyperv/netvsc_drv.c packet->q_idx = skb_get_queue_mapping(skb); packet 579 drivers/net/hyperv/netvsc_drv.c packet->total_data_buflen = skb->len; packet 580 drivers/net/hyperv/netvsc_drv.c packet->total_bytes = skb->len; packet 581 drivers/net/hyperv/netvsc_drv.c packet->total_packets = 1; packet 587 drivers/net/hyperv/netvsc_drv.c rndis_msg->msg_len = packet->total_data_buflen; packet 591 drivers/net/hyperv/netvsc_drv.c .data_len = packet->total_data_buflen, packet 682 drivers/net/hyperv/netvsc_drv.c packet->total_data_buflen = rndis_msg->msg_len; packet 683 drivers/net/hyperv/netvsc_drv.c packet->page_buf_cnt = init_page_array(rndis_msg, rndis_msg_size, packet 684 drivers/net/hyperv/netvsc_drv.c skb, packet, pb); packet 689 drivers/net/hyperv/netvsc_drv.c ret = netvsc_send(net, packet, rndis_msg, pb, skb); packet 206 drivers/net/hyperv/rndis_filter.c struct hv_netvsc_packet *packet; packet 212 drivers/net/hyperv/rndis_filter.c packet = &req->pkt; packet 214 drivers/net/hyperv/rndis_filter.c packet->total_data_buflen = req->request_msg.msg_len; packet 215 drivers/net/hyperv/rndis_filter.c packet->page_buf_cnt = 1; packet 225 drivers/net/hyperv/rndis_filter.c packet->page_buf_cnt++; packet 238 drivers/net/hyperv/rndis_filter.c ret = netvsc_send(dev->ndev, packet, NULL, pb, NULL); packet 70 drivers/net/usb/gl620a.c struct gl_packet *packet; packet 91 drivers/net/usb/gl620a.c packet = &header->packets; packet 98 drivers/net/usb/gl620a.c size = le32_to_cpu(packet->packet_length); packet 112 drivers/net/usb/gl620a.c skb_put_data(gl_skb, packet->packet_data, size); packet 117 drivers/net/usb/gl620a.c packet = (struct gl_packet *)&packet->packet_data[size]; packet 3104 drivers/net/usb/lan78xx.c unsigned char *packet; packet 3115 drivers/net/usb/lan78xx.c packet = skb->data; packet 3145 drivers/net/usb/lan78xx.c skb2->data = packet; packet 99 drivers/net/usb/lg-vl600.c struct vl600_pkt_hdr *packet; packet 157 drivers/net/usb/lg-vl600.c if (buf->len < sizeof(*packet)) { packet 162 drivers/net/usb/lg-vl600.c packet = (struct vl600_pkt_hdr *) buf->data; packet 163 drivers/net/usb/lg-vl600.c packet_len = sizeof(*packet) + le32_to_cpup(&packet->len); packet 235 drivers/net/usb/lg-vl600.c struct vl600_pkt_hdr *packet; packet 280 drivers/net/usb/lg-vl600.c packet = (struct vl600_pkt_hdr *) skb->data; packet 285 drivers/net/usb/lg-vl600.c packet->h_proto = htons(ETH_P_IP); packet 286 drivers/net/usb/lg-vl600.c memset(&packet->dummy, 0, sizeof(packet->dummy)); packet 287 drivers/net/usb/lg-vl600.c packet->len = cpu_to_le32(orig_len); packet 2181 drivers/net/usb/smsc75xx.c unsigned char *packet; packet 2189 drivers/net/usb/smsc75xx.c packet = skb->data; packet 2232 drivers/net/usb/smsc75xx.c ax_skb->data = packet; packet 1920 drivers/net/usb/smsc95xx.c unsigned char *packet; packet 1925 drivers/net/usb/smsc95xx.c packet = skb->data; packet 1972 drivers/net/usb/smsc95xx.c ax_skb->data = packet; packet 371 drivers/net/wireless/ath/ath10k/htc.h struct sk_buff *packet); packet 900 drivers/net/wireless/ath/ath6kl/core.h void ath6kl_rx(struct htc_target *target, struct htc_packet *packet); packet 904 drivers/net/wireless/ath/ath6kl/core.h struct htc_packet *packet); packet 37 drivers/net/wireless/ath/ath6kl/hif-ops.h struct htc_packet *packet) packet 44 drivers/net/wireless/ath/ath6kl/hif-ops.h request, packet); packet 55 drivers/net/wireless/ath/ath6kl/hif.c struct htc_packet *packet = context; packet 58 drivers/net/wireless/ath/ath6kl/hif.c packet, status); packet 60 drivers/net/wireless/ath/ath6kl/hif.c packet->status = status; packet 61 drivers/net/wireless/ath/ath6kl/hif.c packet->completion(packet->context, packet); packet 85 drivers/net/wireless/ath/ath6kl/hif.h struct htc_packet *packet; packet 174 drivers/net/wireless/ath/ath6kl/hif.h struct htc_packet *packet; packet 238 drivers/net/wireless/ath/ath6kl/hif.h u32 length, u32 request, struct htc_packet *packet); packet 46 drivers/net/wireless/ath/ath6kl/htc-ops.h struct htc_packet *packet) packet 48 drivers/net/wireless/ath/ath6kl/htc-ops.h return target->dev->ar->htc_ops->tx(target, packet); packet 534 drivers/net/wireless/ath/ath6kl/htc.h struct htc_packet packet; packet 555 drivers/net/wireless/ath/ath6kl/htc.h int (*tx)(struct htc_target *target, struct htc_packet *packet); packet 635 drivers/net/wireless/ath/ath6kl/htc.h static inline void set_htc_pkt_info(struct htc_packet *packet, void *context, packet 639 drivers/net/wireless/ath/ath6kl/htc.h packet->pkt_cntxt = context; packet 640 drivers/net/wireless/ath/ath6kl/htc.h packet->buf = buf; packet 641 drivers/net/wireless/ath/ath6kl/htc.h packet->act_len = len; packet 642 drivers/net/wireless/ath/ath6kl/htc.h packet->endpoint = eid; packet 643 drivers/net/wireless/ath/ath6kl/htc.h packet->info.tx.tag = tag; packet 646 drivers/net/wireless/ath/ath6kl/htc.h static inline void htc_rxpkt_reset(struct htc_packet *packet) packet 648 drivers/net/wireless/ath/ath6kl/htc.h packet->buf = packet->buf_start; packet 649 drivers/net/wireless/ath/ath6kl/htc.h packet->act_len = 0; packet 652 drivers/net/wireless/ath/ath6kl/htc.h static inline void set_htc_rxpkt_info(struct htc_packet *packet, void *context, packet 656 drivers/net/wireless/ath/ath6kl/htc.h packet->pkt_cntxt = context; packet 657 drivers/net/wireless/ath/ath6kl/htc.h packet->buf = buf; packet 658 drivers/net/wireless/ath/ath6kl/htc.h packet->buf_start = buf; packet 659 drivers/net/wireless/ath/ath6kl/htc.h packet->buf_len = len; packet 660 drivers/net/wireless/ath/ath6kl/htc.h packet->endpoint = eid; packet 359 drivers/net/wireless/ath/ath6kl/htc_mbox.c static void ath6kl_htc_tx_prep_pkt(struct htc_packet *packet, u8 flags, packet 364 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf -= HTC_HDR_LENGTH; packet 365 drivers/net/wireless/ath/ath6kl/htc_mbox.c hdr = (struct htc_frame_hdr *)packet->buf; packet 368 drivers/net/wireless/ath/ath6kl/htc_mbox.c put_unaligned((u16)packet->act_len, &hdr->payld_len); packet 370 drivers/net/wireless/ath/ath6kl/htc_mbox.c hdr->eid = packet->endpoint; packet 386 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet = NULL; packet 398 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = list_first_entry(buf_list, struct htc_packet, list); packet 399 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 403 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf = packet->buf_start + HTC_HDR_LENGTH; packet 405 drivers/net/wireless/ath/ath6kl/htc_mbox.c return packet; packet 410 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet) packet 412 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->completion = NULL; packet 413 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf += HTC_HDR_LENGTH; packet 415 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!packet->status) packet 419 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status, packet->endpoint, packet->act_len, packet 420 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.tx.cred_used); packet 425 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.tx.cred_used; packet 452 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet) packet 454 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_endpoint *endpoint = &target->endpoint[packet->endpoint]; packet 458 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.tx.seqno); packet 460 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_tx_comp_update(target, endpoint, packet); packet 462 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add_tail(&packet->list, &container); packet 471 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet; packet 484 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = scat_req->scat_list[0].packet; packet 485 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint = &target->endpoint[packet->endpoint]; packet 489 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = scat_req->scat_list[i].packet; packet 490 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!packet) { packet 495 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = scat_req->status; packet 496 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_tx_comp_update(target, endpoint, packet); packet 497 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add_tail(&packet->list, &tx_compq); packet 508 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet) packet 514 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!packet->completion) packet 517 drivers/net/wireless/ath/ath6kl/htc_mbox.c send_len = packet->act_len + HTC_HDR_LENGTH; packet 523 drivers/net/wireless/ath/ath6kl/htc_mbox.c send_len, packet->info.tx.seqno, padded_len, packet 530 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf, padded_len, packet 533 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = status; packet 534 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf += HTC_HDR_LENGTH; packet 538 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf, padded_len, packet 539 drivers/net/wireless/ath/ath6kl/htc_mbox.c HIF_WR_ASYNC_BLOCK_INC, packet); packet 541 drivers/net/wireless/ath/ath6kl/htc_mbox.c trace_ath6kl_htc_tx(status, packet->endpoint, packet->buf, send_len); packet 605 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet; packet 613 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = list_first_entry(&endpoint->txq, struct htc_packet, packet 618 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet, get_queue_depth(&endpoint->txq)); packet 621 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len + HTC_HDR_LENGTH); packet 624 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->endpoint, len, &req_cred)) packet 628 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = list_first_entry(&endpoint->txq, struct htc_packet, packet 630 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_move_tail(&packet->list, queue); packet 633 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.tx.cred_used = req_cred; packet 636 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->completion = htc_tx_comp_handler; packet 637 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->context = target; packet 641 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.tx.flags = flags; packet 642 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.tx.seqno = endpoint->seqno; packet 685 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet; packet 693 drivers/net/wireless/ath/ath6kl/htc_mbox.c scat_req->scat_list[i].packet = NULL; packet 698 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = list_first_entry(queue, struct htc_packet, list); packet 700 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len + HTC_HDR_LENGTH); packet 711 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 713 drivers/net/wireless/ath/ath6kl/htc_mbox.c scat_req->scat_list[i].packet = packet; packet 715 drivers/net/wireless/ath/ath6kl/htc_mbox.c flags = packet->info.tx.flags | HTC_FLAGS_SEND_BUNDLE; packet 716 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_htc_tx_prep_pkt(packet, flags, packet 717 drivers/net/wireless/ath/ath6kl/htc_mbox.c cred_pad, packet->info.tx.seqno); packet 719 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_htc_tx_buf_align(&packet->buf, packet 720 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len + HTC_HDR_LENGTH); packet 721 drivers/net/wireless/ath/ath6kl/htc_mbox.c scat_req->scat_list[i].buf = packet->buf; packet 728 drivers/net/wireless/ath/ath6kl/htc_mbox.c i, packet, packet->info.tx.seqno, len, rem_scat); packet 734 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = scat_req->scat_list[i].packet; packet 735 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet) { packet 736 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf += HTC_HDR_LENGTH; packet 737 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add(&packet->list, queue); packet 762 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet; packet 839 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = scat_req->scat_list[i].packet; packet 840 drivers/net/wireless/ath/ath6kl/htc_mbox.c trace_ath6kl_htc_tx(packet->status, packet->endpoint, packet 841 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf, packet->act_len); packet 862 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet; packet 921 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = list_first_entry(&txq, struct htc_packet, packet 923 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 925 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_htc_tx_prep_pkt(packet, packet->info.tx.flags, packet 926 drivers/net/wireless/ath/ath6kl/htc_mbox.c 0, packet->info.tx.seqno); packet 927 drivers/net/wireless/ath/ath6kl/htc_mbox.c status = ath6kl_htc_tx_issue(target, packet); packet 930 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = status; packet 931 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->completion(packet->context, packet); packet 1122 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet) packet 1129 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->endpoint, packet->buf, packet->act_len); packet 1131 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->endpoint >= ENDPOINT_MAX) { packet 1136 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint = &target->endpoint[packet->endpoint]; packet 1138 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!ath6kl_htc_tx_try(target, endpoint, packet)) { packet 1139 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = (target->htc_flags & HTC_OP_STATE_STOPPING) ? packet 1142 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add(&packet->list, &queue); packet 1153 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, *tmp_pkt; packet 1167 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_pkt, &endpoint->txq, list) { packet 1169 drivers/net/wireless/ath/ath6kl/htc_mbox.c (tag == packet->info.tx.tag)) packet 1170 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_move_tail(&packet->list, &discard_q); packet 1175 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_pkt, &discard_q, list) { packet 1176 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = -ECANCELED; packet 1177 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 1180 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet, packet->act_len, packet 1181 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->endpoint, packet->info.tx.tag); packet 1184 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add_tail(&packet->list, &container); packet 1269 drivers/net/wireless/ath/ath6kl/htc_mbox.c static int htc_add_rxbuf(struct htc_target *target, struct htc_packet *packet) packet 1274 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add_tail(&packet->list, &queue); packet 1279 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, packet 1282 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->info.rx.rx_flags & HTC_RX_PKT_NO_RECYCLE) { packet 1283 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_rxpkt_reset(packet); packet 1284 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = -ECANCELED; packet 1285 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->ep_cb.rx(ep->target, packet); packet 1287 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_rxpkt_reset(packet); packet 1288 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_add_rxbuf((void *)(target), packet); packet 1293 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet) packet 1296 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add_tail(&packet->list, &target->free_ctrl_rxbuf); packet 1301 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, packet 1310 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (padded_len > packet->buf_len) { packet 1312 drivers/net/wireless/ath/ath6kl/htc_mbox.c padded_len, rx_len, packet->buf_len); packet 1318 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet, packet->info.rx.exp_hdr, packet 1323 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf, padded_len, packet 1326 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = status; packet 1338 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet) packet 1342 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (htc_hdr->eid == packet->endpoint) { packet 1344 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.indicat_flags |= packet 1370 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet; packet 1406 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = ep_cb.rx_allocthresh(ep->target, ep->eid, packet 1420 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = NULL; packet 1422 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = list_first_entry(&ep->rx_bufq, packet 1424 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 1428 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!packet) { packet 1435 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.rx_flags = 0; packet 1436 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.indicat_flags = 0; packet 1437 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = 0; packet 1445 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.rx_flags |= HTC_RX_PKT_NO_RECYCLE; packet 1448 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add_tail(&packet->list, queue); packet 1456 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.rx_flags |= HTC_RX_PKT_REFRESH_HDR; packet 1457 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.exp_hdr = 0xFFFFFFFF; packet 1460 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.exp_hdr = *lk_ahds; packet 1462 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len = le16_to_cpu(htc_hdr->payld_len) + packet 1475 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, *tmp_pkt; packet 1557 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_pkt, queue, list) { packet 1558 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 1559 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_reclaim_rxbuf(target, packet, packet 1560 drivers/net/wireless/ath/ath6kl/htc_mbox.c &target->endpoint[packet->endpoint]); packet 1804 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, packet 1810 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)packet->buf; packet 1821 drivers/net/wireless/ath/ath6kl/htc_mbox.c memcpy((u8 *)&lk_ahd, packet->buf, sizeof(lk_ahd)); packet 1823 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->info.rx.rx_flags & HTC_RX_PKT_REFRESH_HDR) { packet 1829 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.exp_hdr = lk_ahd; packet 1830 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len = payload_len + HTC_HDR_LENGTH; packet 1833 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->act_len > packet->buf_len) { packet 1840 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len = min(packet->act_len, packet->buf_len); packet 1845 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->endpoint != htc_hdr->eid) { packet 1847 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_hdr->eid, packet->endpoint); packet 1853 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (lk_ahd != packet->info.rx.exp_hdr) { packet 1855 drivers/net/wireless/ath/ath6kl/htc_mbox.c __func__, packet, packet->info.rx.rx_flags); packet 1857 drivers/net/wireless/ath/ath6kl/htc_mbox.c "", &packet->info.rx.exp_hdr, 4); packet 1873 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->info.rx.rx_flags & HTC_RX_PKT_IGNORE_LOOKAHEAD) { packet 1878 drivers/net/wireless/ath/ath6kl/htc_mbox.c status = htc_proc_trailer(target, packet->buf + HTC_HDR_LENGTH packet 1881 drivers/net/wireless/ath/ath6kl/htc_mbox.c n_lkahds, packet->endpoint); packet 1886 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len -= htc_hdr->ctrl[0]; packet 1889 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf += HTC_HDR_LENGTH; packet 1890 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len -= HTC_HDR_LENGTH; packet 1895 drivers/net/wireless/ath/ath6kl/htc_mbox.c "", packet->buf, packet->act_len); packet 1901 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet) packet 1905 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint->eid, packet); packet 1907 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint->ep_cb.rx(endpoint->target, packet); packet 1916 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet; packet 1953 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = list_first_entry(rxq, struct htc_packet, list); packet 1954 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 1957 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len); packet 1960 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add(&packet->list, rxq); packet 1972 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.rx_flags |= packet 1976 drivers/net/wireless/ath/ath6kl/htc_mbox.c scat_req->scat_list[i].buf = packet->buf; packet 1979 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.rx_flags |= HTC_RX_PKT_PART_OF_BUNDLE; packet 1981 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add_tail(&packet->list, sync_compq); packet 2008 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, *tmp_pkt; packet 2012 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_pkt, comp_pktq, list) { packet 2013 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep = &target->endpoint[packet->endpoint]; packet 2015 drivers/net/wireless/ath/ath6kl/htc_mbox.c trace_ath6kl_htc_rx(packet->status, packet->endpoint, packet 2016 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf, packet->act_len); packet 2019 drivers/net/wireless/ath/ath6kl/htc_mbox.c status = ath6kl_htc_rx_process_hdr(target, packet, lk_ahds, packet 2024 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 2033 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep, packet); packet 2039 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.indicat_flags |= packet 2044 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->info.rx.rx_flags & HTC_RX_PKT_PART_OF_BUNDLE) packet 2047 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_htc_rx_complete(ep, packet); packet 2061 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, *tmp_pkt; packet 2089 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = list_first_entry(rx_pktq, struct htc_packet, packet 2093 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->completion = NULL; packet 2101 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.rx_flags |= packet 2105 drivers/net/wireless/ath/ath6kl/htc_mbox.c status = ath6kl_htc_rx_packet(target, packet, packet 2106 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len); packet 2108 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_move_tail(&packet->list, &tmp_rxq); packet 2126 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_pkt, rx_pktq, list) { packet 2127 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 2128 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_reclaim_rxbuf(target, packet, packet 2129 drivers/net/wireless/ath/ath6kl/htc_mbox.c &target->endpoint[packet->endpoint]); packet 2132 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_pkt, &tmp_rxq, list) { packet 2133 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 2134 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_reclaim_rxbuf(target, packet, packet 2135 drivers/net/wireless/ath/ath6kl/htc_mbox.c &target->endpoint[packet->endpoint]); packet 2262 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet = NULL; packet 2278 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = htc_get_control_buf(target, false); packet 2280 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!packet) packet 2283 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.rx_flags = 0; packet 2284 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->info.rx.exp_hdr = look_ahead; packet 2285 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len = le16_to_cpu(htc_hdr->payld_len) + HTC_HDR_LENGTH; packet 2287 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->act_len > packet->buf_len) packet 2291 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->completion = NULL; packet 2294 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ath6kl_htc_rx_packet(target, packet, packet->act_len)) packet 2297 drivers/net/wireless/ath/ath6kl/htc_mbox.c trace_ath6kl_htc_rx(packet->status, packet->endpoint, packet 2298 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf, packet->act_len); packet 2301 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = ath6kl_htc_rx_process_hdr(target, packet, NULL, NULL); packet 2303 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->status) { packet 2305 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status); packet 2309 drivers/net/wireless/ath/ath6kl/htc_mbox.c return packet; packet 2312 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet != NULL) { packet 2313 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_rxpkt_reset(packet); packet 2314 drivers/net/wireless/ath/ath6kl/htc_mbox.c reclaim_rx_ctrl_buf(target, packet); packet 2345 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, *tmp_pkt; packet 2348 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_pkt, pkt_queue, list) { packet 2349 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->status = -ECANCELED; packet 2350 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 2351 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_htc_rx_complete(endpoint, packet); packet 2385 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, *tmp_pkt; packet 2395 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_pkt, packet 2397 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 2401 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet, packet->buf_len, packet 2402 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->endpoint); packet 2412 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->endpoint == ENDPOINT_0) { packet 2413 drivers/net/wireless/ath/ath6kl/htc_mbox.c kfree(packet->buf_start); packet 2414 drivers/net/wireless/ath/ath6kl/htc_mbox.c kfree(packet); packet 2416 drivers/net/wireless/ath/ath6kl/htc_mbox.c dev_kfree_skb(packet->pkt_cntxt); packet 2659 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet = NULL; packet 2666 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = htc_wait_for_ctrl_msg(target); packet 2668 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!packet) packet 2672 drivers/net/wireless/ath/ath6kl/htc_mbox.c rdy_msg = (struct htc_ready_ext_msg *)packet->buf; packet 2675 drivers/net/wireless/ath/ath6kl/htc_mbox.c (packet->act_len < sizeof(struct htc_ready_msg))) { packet 2693 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet->act_len >= sizeof(struct htc_ready_ext_msg)) { packet 2730 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (packet) { packet 2731 drivers/net/wireless/ath/ath6kl/htc_mbox.c htc_rxpkt_reset(packet); packet 2732 drivers/net/wireless/ath/ath6kl/htc_mbox.c reclaim_rx_ctrl_buf(target, packet); packet 2744 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet; packet 2757 drivers/net/wireless/ath/ath6kl/htc_mbox.c while ((packet = htc_get_control_buf(target, false)) != NULL) { packet 2758 drivers/net/wireless/ath/ath6kl/htc_mbox.c status = htc_add_rxbuf(target, packet); packet 2787 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet; packet 2799 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = kzalloc(sizeof(*packet), GFP_KERNEL); packet 2800 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!packet) packet 2803 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf_start = kzalloc(ctrl_bufsz, GFP_KERNEL); packet 2804 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!packet->buf_start) { packet 2805 drivers/net/wireless/ath/ath6kl/htc_mbox.c kfree(packet); packet 2809 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf_len = ctrl_bufsz; packet 2811 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->act_len = 0; packet 2812 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->buf = packet->buf_start; packet 2813 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet->endpoint = ENDPOINT_0; packet 2814 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add_tail(&packet->list, &target->free_ctrl_rxbuf); packet 2816 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_add_tail(&packet->list, &target->free_ctrl_txbuf); packet 2893 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_packet *packet, *tmp_packet; packet 2897 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_packet, packet 2899 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 2900 drivers/net/wireless/ath/ath6kl/htc_mbox.c kfree(packet->buf_start); packet 2901 drivers/net/wireless/ath/ath6kl/htc_mbox.c kfree(packet); packet 2904 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_for_each_entry_safe(packet, tmp_packet, packet 2906 drivers/net/wireless/ath/ath6kl/htc_mbox.c list_del(&packet->list); packet 2907 drivers/net/wireless/ath/ath6kl/htc_mbox.c kfree(packet->buf_start); packet 2908 drivers/net/wireless/ath/ath6kl/htc_mbox.c kfree(packet); packet 25 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet); packet 29 drivers/net/wireless/ath/ath6kl/htc_pipe.c static inline void restore_tx_packet(struct htc_packet *packet) packet 31 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet->info.tx.flags & HTC_FLAGS_TX_FIXUP_NETBUF) { packet 32 drivers/net/wireless/ath/ath6kl/htc_pipe.c skb_pull(packet->skb, sizeof(struct htc_frame_hdr)); packet 33 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.flags &= ~HTC_FLAGS_TX_FIXUP_NETBUF; packet 40 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 65 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(queue_to_indicate, packet 68 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 71 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, ep->eid, packet); packet 72 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_cb.tx_complete(ep->target, packet); packet 78 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet) packet 80 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep = &target->endpoint[packet->endpoint]; packet 83 drivers/net/wireless/ath/ath6kl/htc_pipe.c restore_tx_packet(packet); packet 85 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_add_tail(&packet->list, &container); packet 98 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 110 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->txq, struct htc_packet, list); packet 114 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, packet, get_queue_depth(&ep->txq)); packet 116 drivers/net/wireless/ath/ath6kl/htc_pipe.c transfer_len = packet->act_len + HTC_HDR_LENGTH; packet 159 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->txq, struct htc_packet, list); packet 161 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 163 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.cred_used = credits_required; packet 165 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.flags = send_flags; packet 166 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.seqno = ep->seqno; packet 169 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_add_tail(&packet->list, queue); packet 177 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 186 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->txq, struct htc_packet, list); packet 187 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 191 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, packet, get_queue_depth(&ep->txq)); packet 192 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.seqno = ep->seqno; packet 193 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.flags = 0; packet 194 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.cred_used = 0; packet 198 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_add_tail(&packet->list, queue); packet 211 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 218 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(pkt_queue, struct htc_packet, list); packet 219 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 221 drivers/net/wireless/ath/ath6kl/htc_pipe.c skb = packet->skb; packet 228 drivers/net/wireless/ath/ath6kl/htc_pipe.c payload_len = packet->act_len; packet 238 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.flags |= HTC_FLAGS_TX_FIXUP_NETBUF; packet 242 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr->flags = packet->info.tx.flags; packet 243 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr->eid = (u8) packet->endpoint; packet 245 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_hdr->ctrl[1] = (u8) packet->info.tx.seqno; packet 250 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_add_tail(&packet->list, &ep->pipe.tx_lookup_queue); packet 269 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 272 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.credits += packet->info.tx.cred_used; packet 276 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_add(&packet->list, pkt_queue); packet 286 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, packet, status); packet 289 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(pkt_queue, packet 291 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 292 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->status = status; packet 293 drivers/net/wireless/ath/ath6kl/htc_pipe.c send_packet_completion(target, packet); packet 305 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet, *tmp_pkt; packet 370 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(txq, packet 374 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_move_tail(&packet->list, &send_queue); packet 382 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_for_each_entry_safe(packet, tmp_pkt, packet 386 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, packet); packet 387 drivers/net/wireless/ath/ath6kl/htc_pipe.c action = ep->ep_cb.tx_full(ep->target, packet); packet 398 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_move_tail(&packet->list, packet 501 drivers/net/wireless/ath/ath6kl/htc_pipe.c static void destroy_htc_txctrl_packet(struct htc_packet *packet) packet 504 drivers/net/wireless/ath/ath6kl/htc_pipe.c skb = packet->skb; packet 506 drivers/net/wireless/ath/ath6kl/htc_pipe.c kfree(packet); packet 511 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet = NULL; packet 514 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = kzalloc(sizeof(struct htc_packet), GFP_KERNEL); packet 515 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet == NULL) packet 521 drivers/net/wireless/ath/ath6kl/htc_pipe.c kfree(packet); packet 524 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->skb = skb; packet 526 drivers/net/wireless/ath/ath6kl/htc_pipe.c return packet; packet 530 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet) packet 532 drivers/net/wireless/ath/ath6kl/htc_pipe.c destroy_htc_txctrl_packet(packet); packet 541 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet) packet 543 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_free_txctrl_packet(target, packet); packet 694 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 698 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->txq, struct htc_packet, list); packet 699 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 700 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->status = 0; packet 701 drivers/net/wireless/ath/ath6kl/htc_pipe.c send_packet_completion(target, packet); packet 717 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet, *tmp_pkt, *found_packet = NULL; packet 726 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_for_each_entry_safe(packet, tmp_pkt, &ep->pipe.tx_lookup_queue, packet 729 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (skb == packet->skb) { packet 731 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 732 drivers/net/wireless/ath/ath6kl/htc_pipe.c found_packet = packet; packet 747 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 757 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = htc_lookup_tx_packet(target, ep, skb); packet 758 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet == NULL) { packet 763 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->status = 0; packet 764 drivers/net/wireless/ath/ath6kl/htc_pipe.c send_packet_completion(target, packet); packet 784 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet, *tmp_pkt; packet 790 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(pkt_queue, struct htc_packet, list); packet 792 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet->endpoint >= ENDPOINT_MAX) { packet 796 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[packet->endpoint]; packet 802 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_for_each_entry_safe(packet, tmp_pkt, pkt_queue, list) { packet 803 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->status = -ENOMEM; packet 815 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 823 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = target->pipe.htc_packet_pool; packet 824 drivers/net/wireless/ath/ath6kl/htc_pipe.c target->pipe.htc_packet_pool = (struct htc_packet *) packet->list.next; packet 828 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->list.next = NULL; packet 829 drivers/net/wireless/ath/ath6kl/htc_pipe.c return packet; packet 833 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet) packet 840 drivers/net/wireless/ath/ath6kl/htc_pipe.c target->pipe.htc_packet_pool = packet; packet 841 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->list.next = NULL; packet 844 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->list.next = lh; packet 845 drivers/net/wireless/ath/ath6kl/htc_pipe.c target->pipe.htc_packet_pool = packet; packet 912 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 921 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(queue_to_indicate, packet 923 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 924 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_cb.rx(ep->target, packet); packet 932 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet) packet 936 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_add_tail(&packet->list, &container); packet 949 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 1063 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = alloc_htc_packet_container(target); packet 1064 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet == NULL) { packet 1069 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->status = 0; packet 1070 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->endpoint = htc_hdr->eid; packet 1071 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->pkt_cntxt = skb; packet 1074 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->buf = skb_push(skb, 0) + HTC_HDR_LENGTH; packet 1075 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->act_len = netlen - HTC_HDR_LENGTH - trailerlen; packet 1083 drivers/net/wireless/ath/ath6kl/htc_pipe.c recv_packet_completion(target, ep, packet); packet 1086 drivers/net/wireless/ath/ath6kl/htc_pipe.c free_htc_packet_container(target, packet); packet 1099 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 1107 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->rx_bufq, packet 1109 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 1112 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->status = -ECANCELED; packet 1113 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->act_len = 0; packet 1117 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet, packet->buf_len, packet 1118 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->endpoint); packet 1121 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_add_tail(&packet->list, &container); packet 1161 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet) packet 1163 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct sk_buff *skb = packet->skb; packet 1165 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet->endpoint == ENDPOINT_0 && packet 1166 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->status == -ECANCELED && packet 1223 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet = NULL; packet 1255 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = htc_alloc_txctrl_packet(target); packet 1257 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet == NULL) { packet 1263 drivers/net/wireless/ath/ath6kl/htc_pipe.c skb = packet->skb; packet 1290 drivers/net/wireless/ath/ath6kl/htc_pipe.c set_htc_pkt_info(packet, NULL, (u8 *) conn_msg, packet 1294 drivers/net/wireless/ath/ath6kl/htc_pipe.c status = ath6kl_htc_pipe_tx(target, packet); packet 1297 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = NULL; packet 1399 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet != NULL) packet 1400 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_free_txctrl_packet(target, packet); packet 1410 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 1427 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = kzalloc(sizeof(struct htc_packet), GFP_KERNEL); packet 1429 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet != NULL) packet 1430 drivers/net/wireless/ath/ath6kl/htc_pipe.c free_htc_packet_container(target, packet); packet 1463 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 1466 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = alloc_htc_packet_container(target); packet 1467 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet == NULL) packet 1469 drivers/net/wireless/ath/ath6kl/htc_pipe.c kfree(packet); packet 1482 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet; packet 1487 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = htc_alloc_txctrl_packet(target); packet 1488 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (packet == NULL) { packet 1493 drivers/net/wireless/ath/ath6kl/htc_pipe.c skb = packet->skb; packet 1502 drivers/net/wireless/ath/ath6kl/htc_pipe.c set_htc_pkt_info(packet, NULL, (u8 *) setup, packet 1508 drivers/net/wireless/ath/ath6kl/htc_pipe.c return ath6kl_htc_pipe_tx(target, packet); packet 1540 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet) packet 1546 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, packet->endpoint, packet->buf, packet 1547 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->act_len); packet 1550 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_add_tail(&packet->list, &queue); packet 1625 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet, *tmp_pkt, *first; packet 1654 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_for_each_entry_safe(packet, tmp_pkt, pkt_queue, list) { packet 1655 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->status = -ECANCELED; packet 1674 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_packet *packet, *tmp_pkt; packet 1682 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_for_each_entry_safe(packet, tmp_pkt, packet 1684 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_del(&packet->list); packet 1688 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet, packet->buf_len, packet 1689 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->endpoint); packet 1690 drivers/net/wireless/ath/ath6kl/htc_pipe.c dev_kfree_skb(packet->pkt_cntxt); packet 456 drivers/net/wireless/ath/ath6kl/sdio.c context = req->packet; packet 568 drivers/net/wireless/ath/ath6kl/sdio.c struct htc_packet *packet) packet 582 drivers/net/wireless/ath/ath6kl/sdio.c bus_req->packet = packet; packet 1244 drivers/net/wireless/ath/ath6kl/sdio.c context = req->packet; packet 587 drivers/net/wireless/ath/ath6kl/txrx.c struct htc_packet *packet) packet 591 drivers/net/wireless/ath/ath6kl/txrx.c enum htc_endpoint_id endpoint = packet->endpoint; packet 607 drivers/net/wireless/ath/ath6kl/txrx.c if (packet->info.tx.tag == ATH6KL_CONTROL_PKT_TAG) packet 685 drivers/net/wireless/ath/ath6kl/txrx.c struct htc_packet *packet; packet 703 drivers/net/wireless/ath/ath6kl/txrx.c packet = list_first_entry(packet_queue, struct htc_packet, packet 705 drivers/net/wireless/ath/ath6kl/txrx.c list_del(&packet->list); packet 707 drivers/net/wireless/ath/ath6kl/txrx.c if (WARN_ON_ONCE(packet->endpoint == ENDPOINT_UNUSED || packet 708 drivers/net/wireless/ath/ath6kl/txrx.c packet->endpoint >= ENDPOINT_MAX)) packet 711 drivers/net/wireless/ath/ath6kl/txrx.c ath6kl_cookie = (struct ath6kl_cookie *)packet->pkt_cntxt; packet 715 drivers/net/wireless/ath/ath6kl/txrx.c status = packet->status; packet 717 drivers/net/wireless/ath/ath6kl/txrx.c eid = packet->endpoint; packet 728 drivers/net/wireless/ath/ath6kl/txrx.c if (WARN_ON_ONCE(!status && (packet->act_len != skb->len))) { packet 748 drivers/net/wireless/ath/ath6kl/txrx.c (struct wmi_cmd_hdr *) packet->buf); packet 751 drivers/net/wireless/ath/ath6kl/txrx.c (struct wmi_data_hdr *) packet->buf); packet 772 drivers/net/wireless/ath/ath6kl/txrx.c __func__, skb, packet->buf, packet->act_len, packet 777 drivers/net/wireless/ath/ath6kl/txrx.c __func__, skb, packet->buf, packet->act_len, packet 880 drivers/net/wireless/ath/ath6kl/txrx.c struct htc_packet *packet; packet 900 drivers/net/wireless/ath/ath6kl/txrx.c packet = (struct htc_packet *) skb->head; packet 906 drivers/net/wireless/ath/ath6kl/txrx.c set_htc_rxpkt_info(packet, skb, skb->data, packet 908 drivers/net/wireless/ath/ath6kl/txrx.c packet->skb = skb; packet 909 drivers/net/wireless/ath/ath6kl/txrx.c list_add_tail(&packet->list, &queue); packet 918 drivers/net/wireless/ath/ath6kl/txrx.c struct htc_packet *packet; packet 926 drivers/net/wireless/ath/ath6kl/txrx.c packet = (struct htc_packet *) skb->head; packet 932 drivers/net/wireless/ath/ath6kl/txrx.c set_htc_rxpkt_info(packet, skb, skb->data, packet 934 drivers/net/wireless/ath/ath6kl/txrx.c packet->skb = skb; packet 937 drivers/net/wireless/ath/ath6kl/txrx.c list_add_tail(&packet->list, &ar->amsdu_rx_buffer_queue); packet 952 drivers/net/wireless/ath/ath6kl/txrx.c struct htc_packet *packet = NULL; packet 971 drivers/net/wireless/ath/ath6kl/txrx.c packet = list_first_entry(&ar->amsdu_rx_buffer_queue, packet 973 drivers/net/wireless/ath/ath6kl/txrx.c list_del(&packet->list); packet 981 drivers/net/wireless/ath/ath6kl/txrx.c packet->endpoint = endpoint; packet 987 drivers/net/wireless/ath/ath6kl/txrx.c return packet; packet 1301 drivers/net/wireless/ath/ath6kl/txrx.c void ath6kl_rx(struct htc_target *target, struct htc_packet *packet) packet 1304 drivers/net/wireless/ath/ath6kl/txrx.c struct sk_buff *skb = packet->pkt_cntxt; packet 1310 drivers/net/wireless/ath/ath6kl/txrx.c int status = packet->status; packet 1311 drivers/net/wireless/ath/ath6kl/txrx.c enum htc_endpoint_id ept = packet->endpoint; packet 1324 drivers/net/wireless/ath/ath6kl/txrx.c __func__, ar, ept, skb, packet->buf, packet 1325 drivers/net/wireless/ath/ath6kl/txrx.c packet->act_len, status); packet 1327 drivers/net/wireless/ath/ath6kl/txrx.c if (status || packet->act_len < HTC_HDR_LENGTH) { packet 1332 drivers/net/wireless/ath/ath6kl/txrx.c skb_put(skb, packet->act_len + HTC_HDR_LENGTH); packet 1364 drivers/net/wireless/ath/ath6kl/txrx.c vif->ndev->stats.rx_bytes += packet->act_len; packet 1390 drivers/net/wireless/ath/ath6kl/txrx.c ((packet->act_len < min_hdr_len) || packet 1391 drivers/net/wireless/ath/ath6kl/txrx.c (packet->act_len > WMI_MAX_AMSDU_RX_DATA_FRAME_LENGTH))) { packet 1512 drivers/net/wireless/ath/ath6kl/txrx.c if ((packet->act_len < min_hdr_len) || packet 1513 drivers/net/wireless/ath/ath6kl/txrx.c (packet->act_len > packet 1841 drivers/net/wireless/ath/ath6kl/txrx.c struct htc_packet *packet, *tmp_pkt; packet 1849 drivers/net/wireless/ath/ath6kl/txrx.c list_for_each_entry_safe(packet, tmp_pkt, &ar->amsdu_rx_buffer_queue, packet 1851 drivers/net/wireless/ath/ath6kl/txrx.c list_del(&packet->list); packet 1853 drivers/net/wireless/ath/ath6kl/txrx.c dev_kfree_skb(packet->pkt_cntxt); packet 1812 drivers/net/wireless/atmel/at76c50x-usb.c memcpy(tx_buffer->packet, skb->data, skb->len); packet 158 drivers/net/wireless/atmel/at76c50x-usb.h #define AT76_RX_HDRLEN offsetof(struct at76_rx_buffer, packet) packet 169 drivers/net/wireless/atmel/at76c50x-usb.h u8 packet[IEEE80211_MAX_FRAG_THRESHOLD]; packet 173 drivers/net/wireless/atmel/at76c50x-usb.h #define AT76_TX_HDRLEN offsetof(struct at76_tx_buffer, packet) packet 180 drivers/net/wireless/atmel/at76c50x-usb.h u8 packet[IEEE80211_MAX_FRAG_THRESHOLD]; packet 43 drivers/net/wireless/broadcom/b43legacy/pio.c const u8 *packet, packet 54 drivers/net/wireless/broadcom/b43legacy/pio.c source = packet; packet 65 drivers/net/wireless/broadcom/b43legacy/pio.c const u8 *packet, packet 72 drivers/net/wireless/broadcom/b43legacy/pio.c data = tx_get_next_word(txhdr, packet, packet 80 drivers/net/wireless/broadcom/b43legacy/pio.c data = tx_get_next_word(txhdr, packet, packet 85 drivers/net/wireless/broadcom/b43legacy/pio.c tx_octet(queue, packet[octets - packet 104 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pio_txpacket *packet) packet 128 drivers/net/wireless/broadcom/b43legacy/pio.c packetindex = pio_txpacket_getindex(packet); packet 138 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pio_txpacket **packet) packet 163 drivers/net/wireless/broadcom/b43legacy/pio.c *packet = &(queue->tx_packets_cache[packetindex]); packet 174 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pio_txpacket *packet, packet 188 drivers/net/wireless/broadcom/b43legacy/pio.c generate_cookie(queue, packet)); packet 202 drivers/net/wireless/broadcom/b43legacy/pio.c static void free_txpacket(struct b43legacy_pio_txpacket *packet, packet 205 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pioqueue *queue = packet->queue; packet 207 drivers/net/wireless/broadcom/b43legacy/pio.c if (packet->skb) { packet 209 drivers/net/wireless/broadcom/b43legacy/pio.c dev_kfree_skb_irq(packet->skb); packet 211 drivers/net/wireless/broadcom/b43legacy/pio.c dev_kfree_skb(packet->skb); packet 213 drivers/net/wireless/broadcom/b43legacy/pio.c list_move(&packet->list, &queue->txfree); packet 217 drivers/net/wireless/broadcom/b43legacy/pio.c static int pio_tx_packet(struct b43legacy_pio_txpacket *packet) packet 219 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pioqueue *queue = packet->queue; packet 220 drivers/net/wireless/broadcom/b43legacy/pio.c struct sk_buff *skb = packet->skb; packet 229 drivers/net/wireless/broadcom/b43legacy/pio.c free_txpacket(packet, 1); packet 244 drivers/net/wireless/broadcom/b43legacy/pio.c err = pio_tx_write_fragment(queue, skb, packet, packet 249 drivers/net/wireless/broadcom/b43legacy/pio.c free_txpacket(packet, 1); packet 262 drivers/net/wireless/broadcom/b43legacy/pio.c list_move_tail(&packet->list, &queue->txrunning); packet 272 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pio_txpacket *packet, *tmp_packet; packet 283 drivers/net/wireless/broadcom/b43legacy/pio.c list_for_each_entry_safe(packet, tmp_packet, &queue->txqueue, list) { packet 291 drivers/net/wireless/broadcom/b43legacy/pio.c err = pio_tx_packet(packet); packet 301 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pio_txpacket *packet; packet 306 drivers/net/wireless/broadcom/b43legacy/pio.c packet = &(queue->tx_packets_cache[i]); packet 308 drivers/net/wireless/broadcom/b43legacy/pio.c packet->queue = queue; packet 309 drivers/net/wireless/broadcom/b43legacy/pio.c INIT_LIST_HEAD(&packet->list); packet 311 drivers/net/wireless/broadcom/b43legacy/pio.c list_add(&packet->list, &queue->txfree); packet 370 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pio_txpacket *packet, *tmp_packet; packet 374 drivers/net/wireless/broadcom/b43legacy/pio.c list_for_each_entry_safe(packet, tmp_packet, &queue->txrunning, list) packet 375 drivers/net/wireless/broadcom/b43legacy/pio.c free_txpacket(packet, 0); packet 376 drivers/net/wireless/broadcom/b43legacy/pio.c list_for_each_entry_safe(packet, tmp_packet, &queue->txqueue, list) packet 377 drivers/net/wireless/broadcom/b43legacy/pio.c free_txpacket(packet, 0); packet 457 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pio_txpacket *packet; packet 462 drivers/net/wireless/broadcom/b43legacy/pio.c packet = list_entry(queue->txfree.next, struct b43legacy_pio_txpacket, packet 464 drivers/net/wireless/broadcom/b43legacy/pio.c packet->skb = skb; packet 466 drivers/net/wireless/broadcom/b43legacy/pio.c list_move_tail(&packet->list, &queue->txqueue); packet 479 drivers/net/wireless/broadcom/b43legacy/pio.c struct b43legacy_pio_txpacket *packet; packet 483 drivers/net/wireless/broadcom/b43legacy/pio.c queue = parse_cookie(dev, status->cookie, &packet); packet 486 drivers/net/wireless/broadcom/b43legacy/pio.c if (!packet->skb) packet 490 drivers/net/wireless/broadcom/b43legacy/pio.c queue->tx_devq_used -= (packet->skb->len + packet 493 drivers/net/wireless/broadcom/b43legacy/pio.c info = IEEE80211_SKB_CB(packet->skb); packet 525 drivers/net/wireless/broadcom/b43legacy/pio.c ieee80211_tx_status_irqsafe(dev->wl->hw, packet->skb); packet 526 drivers/net/wireless/broadcom/b43legacy/pio.c packet->skb = NULL; packet 528 drivers/net/wireless/broadcom/b43legacy/pio.c free_txpacket(packet, 1); packet 48 drivers/net/wireless/broadcom/b43legacy/pio.h #define pio_txpacket_getindex(packet) ((int)((packet) - \ packet 49 drivers/net/wireless/broadcom/b43legacy/pio.h (packet)->queue->tx_packets_cache)) packet 719 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_tx_packet *packet; packet 762 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet = list_entry(element, struct ipw2100_tx_packet, list); packet 763 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->jiffy_start = jiffies; packet 766 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.c_struct.cmd->host_command_reg = cmd->host_command; packet 767 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.c_struct.cmd->host_command_reg1 = cmd->host_command1; packet 768 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.c_struct.cmd->host_command_len_reg = packet 770 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.c_struct.cmd->sequence = cmd->host_command_sequence; packet 772 drivers/net/wireless/intel/ipw2x00/ipw2100.c memcpy(packet->info.c_struct.cmd->host_command_params_reg, packet 774 drivers/net/wireless/intel/ipw2x00/ipw2100.c sizeof(packet->info.c_struct.cmd->host_command_params_reg)); packet 2290 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_rx_packet *packet) packet 2292 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->skb = dev_alloc_skb(sizeof(struct ipw2100_rx)); packet 2293 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (!packet->skb) packet 2296 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->rxp = (struct ipw2100_rx *)packet->skb->data; packet 2297 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->dma_addr = pci_map_single(priv->pci_dev, packet->skb->data, packet 2300 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (pci_dma_mapping_error(priv->pci_dev, packet->dma_addr)) { packet 2301 drivers/net/wireless/intel/ipw2x00/ipw2100.c dev_kfree_skb(packet->skb); packet 2454 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_rx_packet *packet = &priv->rx_buffers[i]; packet 2458 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (unlikely(status->frame_size > skb_tailroom(packet->skb))) { packet 2462 drivers/net/wireless/intel/ipw2x00/ipw2100.c status->frame_size, skb_tailroom(packet->skb)); packet 2482 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->dma_addr, packet 2485 drivers/net/wireless/intel/ipw2x00/ipw2100.c skb_put(packet->skb, status->frame_size); packet 2490 drivers/net/wireless/intel/ipw2x00/ipw2100.c skb_copy_from_linear_data(packet->skb, packet_data, packet 2495 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (!libipw_rx(priv->ieee, packet->skb, stats)) { packet 2504 drivers/net/wireless/intel/ipw2x00/ipw2100.c dev_kfree_skb_any(packet->skb); packet 2505 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->skb = NULL; packet 2509 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (unlikely(ipw2100_alloc_skb(priv, packet))) { packet 2518 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->rx_queue.drv[i].host_addr = packet->dma_addr; packet 2528 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_rx_packet *packet = &priv->rx_buffers[i]; packet 2540 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (unlikely(status->frame_size > skb_tailroom(packet->skb) - packet 2546 drivers/net/wireless/intel/ipw2x00/ipw2100.c skb_tailroom(packet->skb)); packet 2565 drivers/net/wireless/intel/ipw2x00/ipw2100.c pci_unmap_single(priv->pci_dev, packet->dma_addr, packet 2567 drivers/net/wireless/intel/ipw2x00/ipw2100.c memmove(packet->skb->data + sizeof(struct ipw_rt_hdr), packet 2568 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->skb->data, status->frame_size); packet 2570 drivers/net/wireless/intel/ipw2x00/ipw2100.c ipw_rt = (struct ipw_rt_hdr *) packet->skb->data; packet 2580 drivers/net/wireless/intel/ipw2x00/ipw2100.c skb_put(packet->skb, status->frame_size + sizeof(struct ipw_rt_hdr)); packet 2582 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (!libipw_rx(priv->ieee, packet->skb, stats)) { packet 2586 drivers/net/wireless/intel/ipw2x00/ipw2100.c dev_kfree_skb_any(packet->skb); packet 2587 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->skb = NULL; packet 2591 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (unlikely(ipw2100_alloc_skb(priv, packet))) { packet 2600 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->rx_queue.drv[i].host_addr = packet->dma_addr; packet 2665 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_rx_packet *packet; packet 2687 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet = &priv->rx_buffers[i]; packet 2691 drivers/net/wireless/intel/ipw2x00/ipw2100.c pci_dma_sync_single_for_cpu(priv->pci_dev, packet->dma_addr, packet 2700 drivers/net/wireless/intel/ipw2x00/ipw2100.c u = packet->rxp; packet 2811 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_tx_packet *packet; packet 2821 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet = list_entry(element, struct ipw2100_tx_packet, list); packet 2822 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd = &txq->drv[packet->index]; packet 2825 drivers/net/wireless/intel/ipw2x00/ipw2100.c switch (packet->type) { packet 2896 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (packet->type == DATA) { packet 2909 drivers/net/wireless/intel/ipw2x00/ipw2100.c switch (packet->type) { packet 2915 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->net_dev->name, txq->oldest, packet->index); packet 2919 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd = &txq->drv[(packet->index + 1 + i) % txq->entries]; packet 2922 drivers/net/wireless/intel/ipw2x00/ipw2100.c (packet->index + 1 + i) % txq->entries, packet 2930 drivers/net/wireless/intel/ipw2x00/ipw2100.c libipw_txb_free(packet->info.d_struct.txb); packet 2931 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.d_struct.txb = NULL; packet 2952 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->net_dev->name, txq->oldest, packet->index); packet 2955 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (packet->info.c_struct.cmd->host_command_reg < packet 2958 drivers/net/wireless/intel/ipw2x00/ipw2100.c command_types[packet->info.c_struct.cmd-> packet 2960 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.c_struct.cmd-> packet 2962 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.c_struct.cmd->cmd_status_reg); packet 2977 drivers/net/wireless/intel/ipw2x00/ipw2100.c jiffies - packet->jiffy_start); packet 2999 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_tx_packet *packet; packet 3020 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet = list_entry(element, struct ipw2100_tx_packet, list); packet 3027 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->index = txq->next; packet 3032 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd->host_addr = packet->info.c_struct.cmd_phys; packet 3068 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_tx_packet *packet; packet 3084 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet = list_entry(element, struct ipw2100_tx_packet, list); packet 3086 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (unlikely(1 + packet->info.d_struct.txb->nr_frags > packet 3095 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (txq->available <= 3 + packet->info.d_struct.txb->nr_frags) { packet 3105 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->index = txq->next; packet 3107 drivers/net/wireless/intel/ipw2x00/ipw2100.c ipw_hdr = packet->info.d_struct.data; packet 3108 drivers/net/wireless/intel/ipw2x00/ipw2100.c hdr = (struct libipw_hdr_3addr *)packet->info.d_struct.txb-> packet 3128 drivers/net/wireless/intel/ipw2x00/ipw2100.c ipw_hdr->encrypted = packet->info.d_struct.txb->encrypted; packet 3129 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (packet->info.d_struct.txb->nr_frags > 1) packet 3131 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.d_struct.txb->frag_size - packet 3136 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd->host_addr = packet->info.d_struct.data_phys; packet 3138 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd->num_fragments = 1 + packet->info.d_struct.txb->nr_frags; packet 3146 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->index, tbd->host_addr, tbd->buf_length); packet 3148 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (packet->info.d_struct.txb->nr_frags > 1) packet 3150 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.d_struct.txb->nr_frags); packet 3153 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (i = 0; i < packet->info.d_struct.txb->nr_frags; i++) { packet 3155 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (i == packet->info.d_struct.txb->nr_frags - 1) packet 3164 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd->buf_length = packet->info.d_struct.txb-> packet 3168 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.d_struct. packet 3193 drivers/net/wireless/intel/ipw2x00/ipw2100.c txq->available -= 1 + packet->info.d_struct.txb->nr_frags; packet 3386 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_tx_packet *packet; packet 3402 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet = list_entry(element, struct ipw2100_tx_packet, list); packet 3404 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.d_struct.txb = txb; packet 3409 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->jiffy_start = jiffies; packet 4592 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_rx_packet *packet = &priv->rx_buffers[i]; packet 4594 drivers/net/wireless/intel/ipw2x00/ipw2100.c err = ipw2100_alloc_skb(priv, packet); packet 4601 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->rx_queue.drv[i].host_addr = packet->dma_addr; packet 5804 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_tx_packet *packet; packet 5817 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet = list_entry(element, struct ipw2100_tx_packet, list); packet 5822 drivers/net/wireless/intel/ipw2x00/ipw2100.c libipw_txb_free(packet->info.d_struct.txb); packet 5823 drivers/net/wireless/intel/ipw2x00/ipw2100.c packet->info.d_struct.txb = NULL; packet 1227 drivers/net/wireless/intel/iwlwifi/mvm/d3.c wakeup.packet = pkt->data; packet 1242 drivers/net/wireless/intel/iwlwifi/mvm/d3.c wakeup.packet = status->wake_packet; packet 399 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_packet *packet; packet 407 drivers/net/wireless/marvell/libertas/if_sdio.c packet = card->packets; packet 408 drivers/net/wireless/marvell/libertas/if_sdio.c if (packet) packet 409 drivers/net/wireless/marvell/libertas/if_sdio.c card->packets = packet->next; packet 412 drivers/net/wireless/marvell/libertas/if_sdio.c if (!packet) packet 420 drivers/net/wireless/marvell/libertas/if_sdio.c packet->buffer, packet->nb); packet 428 drivers/net/wireless/marvell/libertas/if_sdio.c kfree(packet); packet 912 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_packet *packet, *cur; packet 930 drivers/net/wireless/marvell/libertas/if_sdio.c packet = kzalloc(sizeof(struct if_sdio_packet) + size, packet 932 drivers/net/wireless/marvell/libertas/if_sdio.c if (!packet) { packet 937 drivers/net/wireless/marvell/libertas/if_sdio.c packet->next = NULL; packet 938 drivers/net/wireless/marvell/libertas/if_sdio.c packet->nb = size; packet 943 drivers/net/wireless/marvell/libertas/if_sdio.c packet->buffer[0] = (nb + 4) & 0xff; packet 944 drivers/net/wireless/marvell/libertas/if_sdio.c packet->buffer[1] = ((nb + 4) >> 8) & 0xff; packet 945 drivers/net/wireless/marvell/libertas/if_sdio.c packet->buffer[2] = type; packet 946 drivers/net/wireless/marvell/libertas/if_sdio.c packet->buffer[3] = 0; packet 948 drivers/net/wireless/marvell/libertas/if_sdio.c memcpy(packet->buffer + 4, buf, nb); packet 953 drivers/net/wireless/marvell/libertas/if_sdio.c card->packets = packet; packet 958 drivers/net/wireless/marvell/libertas/if_sdio.c cur->next = packet; packet 1140 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_packet *packet; packet 1239 drivers/net/wireless/marvell/libertas/if_sdio.c packet = card->packets; packet 1241 drivers/net/wireless/marvell/libertas/if_sdio.c kfree(packet); packet 1252 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_packet *packet; packet 1283 drivers/net/wireless/marvell/libertas/if_sdio.c packet = card->packets; packet 1285 drivers/net/wireless/marvell/libertas/if_sdio.c kfree(packet); packet 80 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_packet *packet; packet 83 drivers/net/wireless/marvell/libertas/if_spi.c packet = container_of(cursor, struct if_spi_packet, list); packet 84 drivers/net/wireless/marvell/libertas/if_spi.c list_del(&packet->list); packet 85 drivers/net/wireless/marvell/libertas/if_spi.c kfree(packet); packet 88 drivers/net/wireless/marvell/libertas/if_spi.c packet = container_of(cursor, struct if_spi_packet, list); packet 89 drivers/net/wireless/marvell/libertas/if_spi.c list_del(&packet->list); packet 90 drivers/net/wireless/marvell/libertas/if_spi.c kfree(packet); packet 787 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_packet *packet, int type) packet 808 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write(card, port_reg, packet->buffer, packet->blen); packet 813 drivers/net/wireless/marvell/libertas/if_spi.c kfree(packet); packet 849 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_packet *packet; packet 894 drivers/net/wireless/marvell/libertas/if_spi.c packet = NULL; packet 897 drivers/net/wireless/marvell/libertas/if_spi.c packet = (struct if_spi_packet *)(card-> packet 899 drivers/net/wireless/marvell/libertas/if_spi.c list_del(&packet->list); packet 903 drivers/net/wireless/marvell/libertas/if_spi.c if (packet) packet 904 drivers/net/wireless/marvell/libertas/if_spi.c if_spi_h2c(card, packet, MVMS_CMD); packet 908 drivers/net/wireless/marvell/libertas/if_spi.c packet = NULL; packet 911 drivers/net/wireless/marvell/libertas/if_spi.c packet = (struct if_spi_packet *)(card-> packet 913 drivers/net/wireless/marvell/libertas/if_spi.c list_del(&packet->list); packet 917 drivers/net/wireless/marvell/libertas/if_spi.c if (packet) packet 918 drivers/net/wireless/marvell/libertas/if_spi.c if_spi_h2c(card, packet, MVMS_DAT); packet 940 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_packet *packet; packet 950 drivers/net/wireless/marvell/libertas/if_spi.c packet = kzalloc(sizeof(struct if_spi_packet) + blen, GFP_ATOMIC); packet 951 drivers/net/wireless/marvell/libertas/if_spi.c if (!packet) { packet 955 drivers/net/wireless/marvell/libertas/if_spi.c packet->blen = blen; packet 956 drivers/net/wireless/marvell/libertas/if_spi.c memcpy(packet->buffer, buf, nb); packet 957 drivers/net/wireless/marvell/libertas/if_spi.c memset(packet->buffer + nb, 0, blen - nb); packet 963 drivers/net/wireless/marvell/libertas/if_spi.c list_add_tail(&packet->list, &card->cmd_packet_list); packet 969 drivers/net/wireless/marvell/libertas/if_spi.c list_add_tail(&packet->list, &card->data_packet_list); packet 973 drivers/net/wireless/marvell/libertas/if_spi.c kfree(packet); packet 1167 drivers/scsi/storvsc_drv.c void *packet = hv_pkt_data(desc); packet 1175 drivers/scsi/storvsc_drv.c memcpy(&request->vstor_packet, packet, packet 1179 drivers/scsi/storvsc_drv.c storvsc_on_receive(stor_device, packet, request); packet 53 drivers/soc/bcm/raspberrypi-power.c struct rpi_power_domain_packet packet; packet 55 drivers/soc/bcm/raspberrypi-power.c packet.domain = rpi_domain->domain; packet 56 drivers/soc/bcm/raspberrypi-power.c packet.on = on; packet 61 drivers/soc/bcm/raspberrypi-power.c &packet, sizeof(packet)); packet 141 drivers/soc/bcm/raspberrypi-power.c struct rpi_power_domain_packet packet; packet 144 drivers/soc/bcm/raspberrypi-power.c packet.domain = RPI_POWER_DOMAIN_ARM; packet 145 drivers/soc/bcm/raspberrypi-power.c packet.on = ~0; packet 149 drivers/soc/bcm/raspberrypi-power.c &packet, sizeof(packet)); packet 151 drivers/soc/bcm/raspberrypi-power.c return ret == 0 && packet.on != ~0; packet 1386 drivers/staging/octeon/octeon-stubs.h union cvmx_buf_ptr packet, cvmx_pko_lock_t use_locking) packet 145 drivers/tty/hvc/hvsi.c static inline int len_packet(const uint8_t *packet) packet 147 drivers/tty/hvc/hvsi.c return (int)((struct hvsi_header *)packet)->len; packet 150 drivers/tty/hvc/hvsi.c static inline int is_header(const uint8_t *packet) packet 152 drivers/tty/hvc/hvsi.c struct hvsi_header *header = (struct hvsi_header *)packet; packet 156 drivers/tty/hvc/hvsi.c static inline int got_packet(const struct hvsi_struct *hp, uint8_t *packet) packet 158 drivers/tty/hvc/hvsi.c if (hp->inbuf_end < packet + sizeof(struct hvsi_header)) packet 161 drivers/tty/hvc/hvsi.c if (hp->inbuf_end < (packet + len_packet(packet))) packet 181 drivers/tty/hvc/hvsi.c #define dbg_dump_packet(packet) dump_packet(packet) packet 184 drivers/tty/hvc/hvsi.c #define dbg_dump_packet(packet) do { } while (0) packet 206 drivers/tty/hvc/hvsi.c static void dump_packet(uint8_t *packet) packet 208 drivers/tty/hvc/hvsi.c struct hvsi_header *header = (struct hvsi_header *)packet; packet 213 drivers/tty/hvc/hvsi.c dump_hex(packet, header->len); packet 225 drivers/tty/hvc/hvsi.c static void hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet, packet 228 drivers/tty/hvc/hvsi.c struct hvsi_control *header = (struct hvsi_control *)packet; packet 249 drivers/tty/hvc/hvsi.c dump_packet(packet); packet 254 drivers/tty/hvc/hvsi.c static void hvsi_recv_response(struct hvsi_struct *hp, uint8_t *packet) packet 256 drivers/tty/hvc/hvsi.c struct hvsi_query_response *resp = (struct hvsi_query_response *)packet; packet 274 drivers/tty/hvc/hvsi.c dump_packet(packet); packet 282 drivers/tty/hvc/hvsi.c struct hvsi_query_response packet __ALIGNED__; packet 285 drivers/tty/hvc/hvsi.c packet.hdr.type = VS_QUERY_RESPONSE_PACKET_HEADER; packet 286 drivers/tty/hvc/hvsi.c packet.hdr.len = sizeof(struct hvsi_query_response); packet 287 drivers/tty/hvc/hvsi.c packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); packet 288 drivers/tty/hvc/hvsi.c packet.verb = cpu_to_be16(VSV_SEND_VERSION_NUMBER); packet 289 drivers/tty/hvc/hvsi.c packet.u.version = HVSI_VERSION; packet 290 drivers/tty/hvc/hvsi.c packet.query_seqno = cpu_to_be16(query_seqno+1); packet 292 drivers/tty/hvc/hvsi.c pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len); packet 293 drivers/tty/hvc/hvsi.c dbg_dump_hex((uint8_t*)&packet, packet.hdr.len); packet 295 drivers/tty/hvc/hvsi.c wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); packet 296 drivers/tty/hvc/hvsi.c if (wrote != packet.hdr.len) { packet 305 drivers/tty/hvc/hvsi.c static void hvsi_recv_query(struct hvsi_struct *hp, uint8_t *packet) packet 307 drivers/tty/hvc/hvsi.c struct hvsi_query *query = (struct hvsi_query *)packet; packet 316 drivers/tty/hvc/hvsi.c dump_packet(packet); packet 350 drivers/tty/hvc/hvsi.c static bool hvsi_recv_data(struct hvsi_struct *hp, const uint8_t *packet) packet 352 drivers/tty/hvc/hvsi.c const struct hvsi_header *header = (const struct hvsi_header *)packet; packet 353 drivers/tty/hvc/hvsi.c const uint8_t *data = packet + sizeof(struct hvsi_header); packet 391 drivers/tty/hvc/hvsi.c uint8_t *packet = hp->inbuf; packet 409 drivers/tty/hvc/hvsi.c while ((packet < hp->inbuf_end) && got_packet(hp, packet)) { packet 410 drivers/tty/hvc/hvsi.c struct hvsi_header *header = (struct hvsi_header *)packet; packet 412 drivers/tty/hvc/hvsi.c if (!is_header(packet)) { packet 415 drivers/tty/hvc/hvsi.c while ((packet < hp->inbuf_end) && (!is_header(packet))) packet 416 drivers/tty/hvc/hvsi.c packet++; packet 421 drivers/tty/hvc/hvsi.c len_packet(packet)); packet 422 drivers/tty/hvc/hvsi.c dbg_dump_packet(packet); packet 428 drivers/tty/hvc/hvsi.c flip = hvsi_recv_data(hp, packet); packet 431 drivers/tty/hvc/hvsi.c hvsi_recv_control(hp, packet, tty, handshake); packet 434 drivers/tty/hvc/hvsi.c hvsi_recv_response(hp, packet); packet 437 drivers/tty/hvc/hvsi.c hvsi_recv_query(hp, packet); packet 442 drivers/tty/hvc/hvsi.c dump_packet(packet); packet 446 drivers/tty/hvc/hvsi.c packet += len_packet(packet); packet 454 drivers/tty/hvc/hvsi.c compact_inbuf(hp, packet); packet 542 drivers/tty/hvc/hvsi.c struct hvsi_query packet __ALIGNED__; packet 545 drivers/tty/hvc/hvsi.c packet.hdr.type = VS_QUERY_PACKET_HEADER; packet 546 drivers/tty/hvc/hvsi.c packet.hdr.len = sizeof(struct hvsi_query); packet 547 drivers/tty/hvc/hvsi.c packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); packet 548 drivers/tty/hvc/hvsi.c packet.verb = cpu_to_be16(verb); packet 550 drivers/tty/hvc/hvsi.c pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len); packet 551 drivers/tty/hvc/hvsi.c dbg_dump_hex((uint8_t*)&packet, packet.hdr.len); packet 553 drivers/tty/hvc/hvsi.c wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); packet 554 drivers/tty/hvc/hvsi.c if (wrote != packet.hdr.len) { packet 585 drivers/tty/hvc/hvsi.c struct hvsi_control packet __ALIGNED__; packet 588 drivers/tty/hvc/hvsi.c packet.hdr.type = VS_CONTROL_PACKET_HEADER; packet 589 drivers/tty/hvc/hvsi.c packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); packet 590 drivers/tty/hvc/hvsi.c packet.hdr.len = sizeof(struct hvsi_control); packet 591 drivers/tty/hvc/hvsi.c packet.verb = cpu_to_be16(VSV_SET_MODEM_CTL); packet 592 drivers/tty/hvc/hvsi.c packet.mask = cpu_to_be32(HVSI_TSDTR); packet 595 drivers/tty/hvc/hvsi.c packet.word = cpu_to_be32(HVSI_TSDTR); packet 597 drivers/tty/hvc/hvsi.c pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len); packet 598 drivers/tty/hvc/hvsi.c dbg_dump_hex((uint8_t*)&packet, packet.hdr.len); packet 600 drivers/tty/hvc/hvsi.c wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); packet 601 drivers/tty/hvc/hvsi.c if (wrote != packet.hdr.len) { packet 666 drivers/tty/hvc/hvsi.c struct hvsi_data packet __ALIGNED__; packet 671 drivers/tty/hvc/hvsi.c packet.hdr.type = VS_DATA_PACKET_HEADER; packet 672 drivers/tty/hvc/hvsi.c packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); packet 673 drivers/tty/hvc/hvsi.c packet.hdr.len = count + sizeof(struct hvsi_header); packet 674 drivers/tty/hvc/hvsi.c memcpy(&packet.data, buf, count); packet 676 drivers/tty/hvc/hvsi.c ret = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); packet 677 drivers/tty/hvc/hvsi.c if (ret == packet.hdr.len) { packet 686 drivers/tty/hvc/hvsi.c struct hvsi_control packet __ALIGNED__; packet 688 drivers/tty/hvc/hvsi.c packet.hdr.type = VS_CONTROL_PACKET_HEADER; packet 689 drivers/tty/hvc/hvsi.c packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); packet 690 drivers/tty/hvc/hvsi.c packet.hdr.len = 6; packet 691 drivers/tty/hvc/hvsi.c packet.verb = cpu_to_be16(VSV_CLOSE_PROTOCOL); packet 693 drivers/tty/hvc/hvsi.c pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len); packet 694 drivers/tty/hvc/hvsi.c dbg_dump_hex((uint8_t*)&packet, packet.hdr.len); packet 696 drivers/tty/hvc/hvsi.c hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); packet 10 drivers/tty/hvc/hvsi_lib.c static int hvsi_send_packet(struct hvsi_priv *pv, struct hvsi_header *packet) packet 12 drivers/tty/hvc/hvsi_lib.c packet->seqno = cpu_to_be16(atomic_inc_return(&pv->seqno)); packet 15 drivers/tty/hvc/hvsi_lib.c return pv->put_chars(pv->termno, (char *)packet, packet->len); packet 459 drivers/tty/ipwireless/hardware.c static void do_send_packet(struct ipw_hardware *hw, struct ipw_tx_packet *packet) packet 462 drivers/tty/ipwireless/hardware.c unsigned short data_left = packet->length - packet->offset; packet 467 drivers/tty/ipwireless/hardware.c (packet->fragment_count == 0) packet 478 drivers/tty/ipwireless/hardware.c pkt.hdr_first.protocol = packet->protocol; packet 479 drivers/tty/ipwireless/hardware.c pkt.hdr_first.address = packet->dest_addr; packet 483 drivers/tty/ipwireless/hardware.c if (packet->fragment_count == 0) { packet 485 drivers/tty/ipwireless/hardware.c pkt.hdr_first.length_lsb = (unsigned char) packet->length; packet 487 drivers/tty/ipwireless/hardware.c (unsigned char) (packet->length >> 8); packet 491 drivers/tty/ipwireless/hardware.c ((unsigned char *) packet) + sizeof(struct ipw_tx_packet) + packet 492 drivers/tty/ipwireless/hardware.c packet->offset, fragment_data_len); packet 493 drivers/tty/ipwireless/hardware.c packet->offset += fragment_data_len; packet 494 drivers/tty/ipwireless/hardware.c packet->fragment_count++; packet 497 drivers/tty/ipwireless/hardware.c if (packet->offset == packet->length) packet 502 drivers/tty/ipwireless/hardware.c if (packet->offset < packet->length) { packet 510 drivers/tty/ipwireless/hardware.c list_add(&packet->queue, &hw->tx_queue[0]); packet 514 drivers/tty/ipwireless/hardware.c if (packet->packet_callback) packet 515 drivers/tty/ipwireless/hardware.c packet->packet_callback(packet->callback_data, packet 516 drivers/tty/ipwireless/hardware.c packet->length); packet 517 drivers/tty/ipwireless/hardware.c kfree(packet); packet 556 drivers/tty/ipwireless/hardware.c struct ipw_rx_packet *packet, packet 560 drivers/tty/ipwireless/hardware.c if (!packet) { packet 565 drivers/tty/ipwireless/hardware.c packet = list_first_entry(&hw->rx_pool, packet 569 drivers/tty/ipwireless/hardware.c list_del(&packet->queue); packet 580 drivers/tty/ipwireless/hardware.c packet = kmalloc(sizeof(struct ipw_rx_packet) packet 582 drivers/tty/ipwireless/hardware.c if (!packet) packet 584 drivers/tty/ipwireless/hardware.c packet->capacity = new_capacity; packet 586 drivers/tty/ipwireless/hardware.c packet->length = 0; packet 589 drivers/tty/ipwireless/hardware.c if (packet->length + minimum_free_space > packet->capacity) { packet 590 drivers/tty/ipwireless/hardware.c struct ipw_rx_packet *old_packet = packet; packet 592 drivers/tty/ipwireless/hardware.c packet = kmalloc(sizeof(struct ipw_rx_packet) + packet 595 drivers/tty/ipwireless/hardware.c if (!packet) { packet 599 drivers/tty/ipwireless/hardware.c memcpy(packet, old_packet, packet 602 drivers/tty/ipwireless/hardware.c packet->capacity = old_packet->length + minimum_free_space; packet 606 drivers/tty/ipwireless/hardware.c return packet; packet 609 drivers/tty/ipwireless/hardware.c static void pool_free(struct ipw_hardware *hw, struct ipw_rx_packet *packet) packet 612 drivers/tty/ipwireless/hardware.c kfree(packet); packet 615 drivers/tty/ipwireless/hardware.c list_add(&packet->queue, &hw->rx_pool); packet 626 drivers/tty/ipwireless/hardware.c struct ipw_rx_packet *packet = NULL; packet 662 drivers/tty/ipwireless/hardware.c packet = *assem; packet 666 drivers/tty/ipwireless/hardware.c hw->rx_bytes_queued += packet->length; packet 671 drivers/tty/ipwireless/hardware.c packet = pool_allocate(hw, NULL, length); packet 672 drivers/tty/ipwireless/hardware.c if (!packet) { packet 677 drivers/tty/ipwireless/hardware.c packet->protocol = protocol; packet 678 drivers/tty/ipwireless/hardware.c packet->channel_idx = channel_idx; packet 679 drivers/tty/ipwireless/hardware.c memcpy((unsigned char *)packet + sizeof(struct ipw_rx_packet), packet 681 drivers/tty/ipwireless/hardware.c packet->length = length; packet 688 drivers/tty/ipwireless/hardware.c if (packet) { packet 690 drivers/tty/ipwireless/hardware.c list_add_tail(&packet->queue, &hw->rx_queue); packet 711 drivers/tty/ipwireless/hardware.c struct ipw_rx_packet *packet = packet 717 drivers/tty/ipwireless/hardware.c list_del(&packet->queue); packet 724 drivers/tty/ipwireless/hardware.c if (packet->protocol == TL_PROTOCOLID_COM_DATA) { packet 734 drivers/tty/ipwireless/hardware.c packet->channel_idx, packet 735 drivers/tty/ipwireless/hardware.c (unsigned char *)packet packet 737 drivers/tty/ipwireless/hardware.c packet->length); packet 741 drivers/tty/ipwireless/hardware.c hw->rx_bytes_queued -= packet->length; packet 747 drivers/tty/ipwireless/hardware.c handle_received_CTRL_packet(hw, packet->channel_idx, packet 748 drivers/tty/ipwireless/hardware.c (unsigned char *)packet packet 750 drivers/tty/ipwireless/hardware.c packet->length); packet 752 drivers/tty/ipwireless/hardware.c pool_free(hw, packet); packet 812 drivers/tty/ipwireless/hardware.c const union nl_packet *packet, packet 815 drivers/tty/ipwireless/hardware.c unsigned int protocol = packet->hdr.protocol; packet 816 drivers/tty/ipwireless/hardware.c unsigned int address = packet->hdr.address; packet 820 drivers/tty/ipwireless/hardware.c int is_last = packet->hdr.packet_rank & NL_LAST_PACKET; packet 822 drivers/tty/ipwireless/hardware.c if (packet->hdr.packet_rank & NL_FIRST_PACKET) packet 827 drivers/tty/ipwireless/hardware.c data = packet->rawpkt + header_length; packet 963 drivers/tty/ipwireless/hardware.c struct ipw_tx_packet *packet = NULL; packet 968 drivers/tty/ipwireless/hardware.c packet = list_first_entry( packet 974 drivers/tty/ipwireless/hardware.c list_del(&packet->queue); packet 979 drivers/tty/ipwireless/hardware.c if (!packet) { packet 988 drivers/tty/ipwireless/hardware.c do_send_packet(hw, packet); packet 1238 drivers/tty/ipwireless/hardware.c struct ipw_tx_packet *packet) packet 1243 drivers/tty/ipwireless/hardware.c list_add_tail(&packet->queue, &hw->tx_queue[priority]); packet 1255 drivers/tty/ipwireless/hardware.c struct ipw_tx_packet *packet = kzalloc( packet 1259 drivers/tty/ipwireless/hardware.c if (!packet) packet 1262 drivers/tty/ipwireless/hardware.c INIT_LIST_HEAD(&packet->queue); packet 1263 drivers/tty/ipwireless/hardware.c packet->dest_addr = dest_addr; packet 1264 drivers/tty/ipwireless/hardware.c packet->protocol = protocol; packet 1265 drivers/tty/ipwireless/hardware.c packet->length = data_size; packet 1267 drivers/tty/ipwireless/hardware.c return packet; packet 1280 drivers/tty/ipwireless/hardware.c struct ipw_control_packet *packet = kzalloc(header_size, GFP_ATOMIC); packet 1282 drivers/tty/ipwireless/hardware.c if (!packet) packet 1285 drivers/tty/ipwireless/hardware.c INIT_LIST_HEAD(&packet->header.queue); packet 1286 drivers/tty/ipwireless/hardware.c packet->header.dest_addr = dest_addr; packet 1287 drivers/tty/ipwireless/hardware.c packet->header.protocol = protocol; packet 1288 drivers/tty/ipwireless/hardware.c packet->header.length = header_size - sizeof(struct ipw_tx_packet); packet 1289 drivers/tty/ipwireless/hardware.c packet->body.sig_no = sig_no; packet 1291 drivers/tty/ipwireless/hardware.c return packet; packet 1299 drivers/tty/ipwireless/hardware.c struct ipw_tx_packet *packet; packet 1301 drivers/tty/ipwireless/hardware.c packet = alloc_data_packet(length, (channel_idx + 1), packet 1303 drivers/tty/ipwireless/hardware.c if (!packet) packet 1305 drivers/tty/ipwireless/hardware.c packet->packet_callback = callback; packet 1306 drivers/tty/ipwireless/hardware.c packet->callback_data = callback_data; packet 1307 drivers/tty/ipwireless/hardware.c memcpy((unsigned char *) packet + sizeof(struct ipw_tx_packet), data, packet 1310 drivers/tty/ipwireless/hardware.c send_packet(hw, PRIO_DATA, packet); packet 1317 drivers/tty/ipwireless/hardware.c struct ipw_control_packet *packet; packet 1323 drivers/tty/ipwireless/hardware.c packet = alloc_ctrl_packet(sizeof(struct ipw_control_packet), packet 1325 drivers/tty/ipwireless/hardware.c if (!packet) packet 1327 drivers/tty/ipwireless/hardware.c packet->header.length = sizeof(struct ipw_control_packet_body); packet 1328 drivers/tty/ipwireless/hardware.c packet->body.value = (state == 0 ? 0 : 1); packet 1329 drivers/tty/ipwireless/hardware.c send_packet(hw, prio, &packet->header); packet 1570 drivers/tty/ipwireless/hardware.c struct ipw_setup_reboot_msg_ack *packet; packet 1574 drivers/tty/ipwireless/hardware.c packet = alloc_ctrl_packet( packet 1578 drivers/tty/ipwireless/hardware.c if (!packet) { packet 1583 drivers/tty/ipwireless/hardware.c packet->header.length = packet 1585 drivers/tty/ipwireless/hardware.c send_packet(hw, PRIO_SETUP, &packet->header); packet 349 drivers/tty/n_tty.c if (tty->link->packet) { packet 2142 drivers/tty/n_tty.c int packet; packet 2174 drivers/tty/n_tty.c packet = tty->packet; packet 2180 drivers/tty/n_tty.c if (packet && tty->link->ctrl_status) { packet 2242 drivers/tty/n_tty.c if (packet && b == buf) { packet 2416 drivers/tty/n_tty.c if (tty->packet && tty->link->ctrl_status) packet 61 drivers/tty/pty.c tty->packet = 0; packet 188 drivers/tty/pty.c if (!tty->packet) { packet 191 drivers/tty/pty.c tty->packet = 1; packet 194 drivers/tty/pty.c tty->packet = 0; packet 203 drivers/tty/pty.c int pktmode = tty->packet; packet 232 drivers/tty/pty.c if (to->packet) { packet 266 drivers/tty/pty.c if (tty->link && tty->link->packet) { packet 346 drivers/tty/pty.c if (tty->link && tty->link->packet) { packet 359 drivers/tty/pty.c if (tty->link && tty->link->packet) { packet 200 drivers/usb/gadget/function/u_serial.c gs_send_packet(struct gs_port *port, char *packet, unsigned size) packet 208 drivers/usb/gadget/function/u_serial.c size = kfifo_out(&port->port_write_buf, packet, size); packet 394 drivers/usb/gadget/function/u_serial.c char *packet = req->buf; packet 402 drivers/usb/gadget/function/u_serial.c packet += n; packet 406 drivers/usb/gadget/function/u_serial.c count = tty_insert_flip_string(&port->port, packet, packet 1210 drivers/usb/host/ehci-sched.c struct ehci_iso_packet *uframe = &iso_sched->packet[i]; packet 1700 drivers/usb/host/ehci-sched.c struct ehci_iso_packet *uf = &iso_sched->packet[index]; packet 1757 drivers/usb/host/ehci-sched.c int packet; packet 1776 drivers/usb/host/ehci-sched.c for (packet = iso_sched->first_packet, itd = NULL; packet 1777 drivers/usb/host/ehci-sched.c packet < urb->number_of_packets;) { packet 1795 drivers/usb/host/ehci-sched.c itd_patch(ehci, itd, iso_sched, packet, uframe); packet 1799 drivers/usb/host/ehci-sched.c packet++; packet 1803 drivers/usb/host/ehci-sched.c || packet == urb->number_of_packets) { packet 2009 drivers/usb/host/ehci-sched.c struct ehci_iso_packet *packet = &iso_sched->packet[i]; packet 2022 drivers/usb/host/ehci-sched.c packet->transaction = cpu_to_hc32(ehci, trans); packet 2025 drivers/usb/host/ehci-sched.c packet->bufp = buf; packet 2026 drivers/usb/host/ehci-sched.c packet->buf1 = (buf + length) & ~0x0fff; packet 2027 drivers/usb/host/ehci-sched.c if (packet->buf1 != (buf & ~(u64)0x0fff)) packet 2028 drivers/usb/host/ehci-sched.c packet->cross = 1; packet 2036 drivers/usb/host/ehci-sched.c packet->buf1 |= length; packet 2118 drivers/usb/host/ehci-sched.c struct ehci_iso_packet *uf = &iso_sched->packet[index]; packet 2158 drivers/usb/host/ehci-sched.c int packet; packet 2178 drivers/usb/host/ehci-sched.c for (packet = sched->first_packet, sitd = NULL; packet 2179 drivers/usb/host/ehci-sched.c packet < urb->number_of_packets; packet 2180 drivers/usb/host/ehci-sched.c packet++) { packet 2193 drivers/usb/host/ehci-sched.c sitd_patch(ehci, stream, sitd, sched, packet); packet 463 drivers/usb/host/ehci.h struct ehci_iso_packet packet[0]; packet 28 drivers/usb/host/fhci-sched.c static void recycle_frame(struct fhci_usb *usb, struct packet *pkt) packet 40 drivers/usb/host/fhci-sched.c void fhci_transaction_confirm(struct fhci_usb *usb, struct packet *pkt) packet 43 drivers/usb/host/fhci-sched.c struct packet *td_pkt; packet 137 drivers/usb/host/fhci-sched.c struct packet *pkt = td->pkt; packet 158 drivers/usb/host/fhci-sched.c struct packet *pkt; packet 108 drivers/usb/host/fhci-tds.c struct packet *pkt = cq_get(&ep->conf_frame_Q); packet 118 drivers/usb/host/fhci-tds.c struct packet *pkt = cq_get(&ep->empty_frame_Q); packet 183 drivers/usb/host/fhci-tds.c struct packet *pkt; packet 280 drivers/usb/host/fhci-tds.c struct packet *pkt; packet 378 drivers/usb/host/fhci-tds.c struct packet *pkt, packet 355 drivers/usb/host/fhci.h struct packet *pkt; packet 537 drivers/usb/host/fhci.h u32 fhci_host_transaction(struct fhci_usb *usb, struct packet *pkt, packet 553 drivers/usb/host/fhci.h void fhci_transaction_confirm(struct fhci_usb *usb, struct packet *pkt); packet 4043 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_packet *uframe = &iso_sched->packet[i]; packet 4307 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_packet *uf = &iso_sched->packet[index]; packet 4358 drivers/usb/host/fotg210-hcd.c int packet; packet 4377 drivers/usb/host/fotg210-hcd.c for (packet = 0, itd = NULL; packet < urb->number_of_packets;) { packet 4394 drivers/usb/host/fotg210-hcd.c itd_patch(fotg210, itd, iso_sched, packet, uframe); packet 4398 drivers/usb/host/fotg210-hcd.c packet++; packet 4402 drivers/usb/host/fotg210-hcd.c || packet == urb->number_of_packets) { packet 493 drivers/usb/host/fotg210.h struct fotg210_iso_packet packet[0]; packet 18 drivers/usb/host/xhci-dbgtty.c dbc_send_packet(struct dbc_port *port, char *packet, unsigned int size) packet 26 drivers/usb/host/xhci-dbgtty.c size = kfifo_out(&port->write_fifo, packet, size); packet 362 drivers/usb/host/xhci-dbgtty.c char *packet = req->buf; packet 368 drivers/usb/host/xhci-dbgtty.c packet += n; packet 372 drivers/usb/host/xhci-dbgtty.c count = tty_insert_flip_string(&port->port, packet, packet 527 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet *packet) packet 534 drivers/usb/misc/sisusbvga/sisusb.c packet->data = 0; packet 542 drivers/usb/misc/sisusbvga/sisusb.c SISUSB_CORRECT_ENDIANNESS_PACKET(packet); packet 546 drivers/usb/misc/sisusbvga/sisusb.c (char *)packet, NULL, 0, &bytes_transferred, 0, 0); packet 556 drivers/usb/misc/sisusbvga/sisusb.c packet->data = le32_to_cpu(tmp); packet 563 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet *packet, unsigned int tflags) packet 570 drivers/usb/misc/sisusbvga/sisusb.c packet->data = 0; packet 578 drivers/usb/misc/sisusbvga/sisusb.c SISUSB_CORRECT_ENDIANNESS_PACKET(packet); packet 582 drivers/usb/misc/sisusbvga/sisusb.c (char *)packet, NULL, 0, &bytes_transferred, tflags, 0); packet 592 drivers/usb/misc/sisusbvga/sisusb.c packet->data = le32_to_cpu(tmp); packet 613 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 615 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (1 << (addr & 3)) | (type << 6); packet 616 drivers/usb/misc/sisusbvga/sisusb.c packet.address = addr & ~3; packet 617 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data << ((addr & 3) << 3); packet 618 drivers/usb/misc/sisusbvga/sisusb.c return sisusb_send_packet(sisusb, 10, &packet); packet 624 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 627 drivers/usb/misc/sisusbvga/sisusb.c packet.address = addr & ~3; packet 631 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0003; packet 632 drivers/usb/misc/sisusbvga/sisusb.c packet.data = (u32)data; packet 633 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 636 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0006; packet 637 drivers/usb/misc/sisusbvga/sisusb.c packet.data = (u32)data << 8; packet 638 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 641 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000c; packet 642 drivers/usb/misc/sisusbvga/sisusb.c packet.data = (u32)data << 16; packet 643 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 646 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0008; packet 647 drivers/usb/misc/sisusbvga/sisusb.c packet.data = (u32)data << 24; packet 648 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 649 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0001; packet 650 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 651 drivers/usb/misc/sisusbvga/sisusb.c packet.data = (u32)data >> 8; packet 652 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 10, &packet); packet 661 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 664 drivers/usb/misc/sisusbvga/sisusb.c packet.address = addr & ~3; packet 668 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0007; packet 669 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data & 0x00ffffff; packet 670 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 673 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000e; packet 674 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data << 8; packet 675 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 678 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000c; packet 679 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data << 16; packet 680 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 681 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0001; packet 682 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 683 drivers/usb/misc/sisusbvga/sisusb.c packet.data = (data >> 16) & 0x00ff; packet 684 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 10, &packet); packet 687 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0008; packet 688 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data << 24; packet 689 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 690 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0003; packet 691 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 692 drivers/usb/misc/sisusbvga/sisusb.c packet.data = (data >> 8) & 0xffff; packet 693 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 10, &packet); packet 702 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 705 drivers/usb/misc/sisusbvga/sisusb.c packet.address = addr & ~3; packet 709 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000f; packet 710 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data; packet 711 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 714 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000e; packet 715 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data << 8; packet 716 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 717 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0001; packet 718 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 719 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data >> 24; packet 720 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 10, &packet); packet 723 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000c; packet 724 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data << 16; packet 725 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 726 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0003; packet 727 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 728 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data >> 16; packet 729 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 10, &packet); packet 732 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0008; packet 733 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data << 24; packet 734 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 10, &packet); packet 735 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0007; packet 736 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 737 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data >> 8; packet 738 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 10, &packet); packet 758 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 857 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 858 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x000001d4; packet 859 drivers/usb/misc/sisusbvga/sisusb.c packet.data = addr; packet 861 drivers/usb/misc/sisusbvga/sisusb.c &packet, 0); packet 862 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 863 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x000001d0; packet 864 drivers/usb/misc/sisusbvga/sisusb.c packet.data = (length & ~3); packet 866 drivers/usb/misc/sisusbvga/sisusb.c &packet, 0); packet 867 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 868 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x000001c0; packet 869 drivers/usb/misc/sisusbvga/sisusb.c packet.data = flag | 0x16; packet 871 drivers/usb/misc/sisusbvga/sisusb.c &packet, 0); packet 898 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 899 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x00000194; packet 900 drivers/usb/misc/sisusbvga/sisusb.c packet.data = addr; packet 902 drivers/usb/misc/sisusbvga/sisusb.c &packet, 0); packet 903 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 904 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x00000190; packet 905 drivers/usb/misc/sisusbvga/sisusb.c packet.data = (length & ~3); packet 907 drivers/usb/misc/sisusbvga/sisusb.c &packet, 0); packet 909 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 910 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x00000180; packet 911 drivers/usb/misc/sisusbvga/sisusb.c packet.data = flag | 0x16; packet 913 drivers/usb/misc/sisusbvga/sisusb.c 10, &packet, 0); packet 970 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 973 drivers/usb/misc/sisusbvga/sisusb.c CLEARPACKET(&packet); packet 974 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (1 << (addr & 3)) | (type << 6); packet 975 drivers/usb/misc/sisusbvga/sisusb.c packet.address = addr & ~3; packet 976 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 977 drivers/usb/misc/sisusbvga/sisusb.c *data = (u8)(packet.data >> ((addr & 3) << 3)); packet 984 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 987 drivers/usb/misc/sisusbvga/sisusb.c CLEARPACKET(&packet); packet 989 drivers/usb/misc/sisusbvga/sisusb.c packet.address = addr & ~3; packet 993 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0003; packet 994 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 995 drivers/usb/misc/sisusbvga/sisusb.c *data = (u16)(packet.data); packet 998 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0006; packet 999 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1000 drivers/usb/misc/sisusbvga/sisusb.c *data = (u16)(packet.data >> 8); packet 1003 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000c; packet 1004 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1005 drivers/usb/misc/sisusbvga/sisusb.c *data = (u16)(packet.data >> 16); packet 1008 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0008; packet 1009 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1010 drivers/usb/misc/sisusbvga/sisusb.c *data = (u16)(packet.data >> 24); packet 1011 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0001; packet 1012 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 1013 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 6, &packet); packet 1014 drivers/usb/misc/sisusbvga/sisusb.c *data |= (u16)(packet.data << 8); packet 1023 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 1026 drivers/usb/misc/sisusbvga/sisusb.c packet.address = addr & ~3; packet 1030 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0007; packet 1031 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1032 drivers/usb/misc/sisusbvga/sisusb.c *data = packet.data & 0x00ffffff; packet 1035 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000e; packet 1036 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1037 drivers/usb/misc/sisusbvga/sisusb.c *data = packet.data >> 8; packet 1040 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000c; packet 1041 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1042 drivers/usb/misc/sisusbvga/sisusb.c *data = packet.data >> 16; packet 1043 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0001; packet 1044 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 1045 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 6, &packet); packet 1046 drivers/usb/misc/sisusbvga/sisusb.c *data |= ((packet.data & 0xff) << 16); packet 1049 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0008; packet 1050 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1051 drivers/usb/misc/sisusbvga/sisusb.c *data = packet.data >> 24; packet 1052 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0003; packet 1053 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 1054 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 6, &packet); packet 1055 drivers/usb/misc/sisusbvga/sisusb.c *data |= ((packet.data & 0xffff) << 8); packet 1064 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 1067 drivers/usb/misc/sisusbvga/sisusb.c packet.address = addr & ~3; packet 1071 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000f; packet 1072 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1073 drivers/usb/misc/sisusbvga/sisusb.c *data = packet.data; packet 1076 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000e; packet 1077 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1078 drivers/usb/misc/sisusbvga/sisusb.c *data = packet.data >> 8; packet 1079 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0001; packet 1080 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 1081 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 6, &packet); packet 1082 drivers/usb/misc/sisusbvga/sisusb.c *data |= (packet.data << 24); packet 1085 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x000c; packet 1086 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1087 drivers/usb/misc/sisusbvga/sisusb.c *data = packet.data >> 16; packet 1088 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0003; packet 1089 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 1090 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 6, &packet); packet 1091 drivers/usb/misc/sisusbvga/sisusb.c *data |= (packet.data << 16); packet 1094 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0008; packet 1095 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1096 drivers/usb/misc/sisusbvga/sisusb.c *data = packet.data >> 24; packet 1097 drivers/usb/misc/sisusbvga/sisusb.c packet.header = (type << 6) | 0x0007; packet 1098 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (addr & ~3) + 4; packet 1099 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_packet(sisusb, 6, &packet); packet 1100 drivers/usb/misc/sisusbvga/sisusb.c *data |= (packet.data << 8); packet 1334 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 1336 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x008f; packet 1337 drivers/usb/misc/sisusbvga/sisusb.c packet.address = regnum | 0x10000; packet 1338 drivers/usb/misc/sisusbvga/sisusb.c packet.data = data; packet 1339 drivers/usb/misc/sisusbvga/sisusb.c return sisusb_send_packet(sisusb, 10, &packet); packet 1345 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 1348 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x008f; packet 1349 drivers/usb/misc/sisusbvga/sisusb.c packet.address = (u32)regnum | 0x10000; packet 1350 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_packet(sisusb, 6, &packet); packet 1351 drivers/usb/misc/sisusbvga/sisusb.c *data = packet.data; packet 2127 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_packet packet; packet 2132 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 2133 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x00000324; packet 2134 drivers/usb/misc/sisusbvga/sisusb.c packet.data = 0x00000004; packet 2135 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_send_bridge_packet(sisusb, 10, &packet, 0); packet 2137 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 2138 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x00000364; packet 2139 drivers/usb/misc/sisusbvga/sisusb.c packet.data = 0x00000004; packet 2140 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); packet 2142 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 2143 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x00000384; packet 2144 drivers/usb/misc/sisusbvga/sisusb.c packet.data = 0x00000004; packet 2145 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); packet 2147 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 2148 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x00000100; packet 2149 drivers/usb/misc/sisusbvga/sisusb.c packet.data = 0x00000700; packet 2150 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); packet 2152 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x000f; packet 2153 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x00000004; packet 2154 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_bridge_packet(sisusb, 6, &packet, 0); packet 2155 drivers/usb/misc/sisusbvga/sisusb.c packet.data |= 0x17; packet 2156 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); packet 2189 drivers/usb/misc/sisusbvga/sisusb.c packet.header = 0x001f; packet 2190 drivers/usb/misc/sisusbvga/sisusb.c packet.address = 0x00000050; packet 2191 drivers/usb/misc/sisusbvga/sisusb.c packet.data = 0x000000ff; packet 2192 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); packet 183 drivers/usb/misc/sisusbvga/sisusb.h #define CLEARPACKET(packet) memset(packet, 0, 10) packet 101 drivers/usb/serial/aircable.c int has_headers, char *packet, int len) packet 105 drivers/usb/serial/aircable.c packet += HCI_HEADER_LENGTH; packet 112 drivers/usb/serial/aircable.c tty_insert_flip_string(&port->port, packet, len); packet 2483 drivers/usb/serial/ftdi_sio.c struct ftdi_private *priv, char *packet, int len) packet 2498 drivers/usb/serial/ftdi_sio.c status = packet[0] & FTDI_STATUS_B0_MASK; packet 2524 drivers/usb/serial/ftdi_sio.c if (packet[1] & FTDI_RS_TEMT) packet 2538 drivers/usb/serial/ftdi_sio.c if (packet[1] & FTDI_RS_ERR_MASK) { packet 2541 drivers/usb/serial/ftdi_sio.c if (packet[1] & FTDI_RS_BI) { packet 2545 drivers/usb/serial/ftdi_sio.c } else if (packet[1] & FTDI_RS_PE) { packet 2548 drivers/usb/serial/ftdi_sio.c } else if (packet[1] & FTDI_RS_FE) { packet 2553 drivers/usb/serial/ftdi_sio.c if (packet[1] & FTDI_RS_OE) { packet 2560 drivers/usb/serial/ftdi_sio.c ch = packet + 2; packet 498 drivers/usb/serial/ssu100.c char *packet = (char *)urb->transfer_buffer; packet 505 drivers/usb/serial/ssu100.c (packet[0] == 0x1b) && (packet[1] == 0x1b) && packet 506 drivers/usb/serial/ssu100.c ((packet[2] == 0x00) || (packet[2] == 0x01))) { packet 507 drivers/usb/serial/ssu100.c if (packet[2] == 0x00) packet 508 drivers/usb/serial/ssu100.c ssu100_update_lsr(port, packet[3], &flag); packet 509 drivers/usb/serial/ssu100.c if (packet[2] == 0x01) packet 510 drivers/usb/serial/ssu100.c ssu100_update_msr(port, packet[3]); packet 513 drivers/usb/serial/ssu100.c ch = packet + 4; packet 515 drivers/usb/serial/ssu100.c ch = packet; packet 273 drivers/visorbus/controlvmchannel.h struct controlvm_packet_device_create packet; packet 279 drivers/visorbus/controlvmchannel.h struct controlvm_packet_device_configure packet; packet 198 drivers/w1/w1_netlink.c } packet; packet 199 drivers/w1/w1_netlink.c memcpy(&packet.cn, cn, sizeof(packet.cn)); packet 200 drivers/w1/w1_netlink.c memcpy(&packet.msg, msg, sizeof(packet.msg)); packet 201 drivers/w1/w1_netlink.c packet.cn.len = sizeof(packet.msg); packet 202 drivers/w1/w1_netlink.c packet.msg.len = 0; packet 203 drivers/w1/w1_netlink.c packet.msg.status = (u8)-error; packet 204 drivers/w1/w1_netlink.c cn_netlink_send(&packet.cn, portid, 0, GFP_KERNEL); packet 219 drivers/w1/w1_netlink.c } packet; packet 220 drivers/w1/w1_netlink.c memset(&packet, 0, sizeof(packet)); packet 222 drivers/w1/w1_netlink.c packet.cn.id.idx = CN_W1_IDX; packet 223 drivers/w1/w1_netlink.c packet.cn.id.val = CN_W1_VAL; packet 225 drivers/w1/w1_netlink.c packet.cn.seq = dev->seq++; packet 226 drivers/w1/w1_netlink.c packet.cn.len = sizeof(*msg); packet 228 drivers/w1/w1_netlink.c memcpy(&packet.msg, msg, sizeof(*msg)); packet 229 drivers/w1/w1_netlink.c packet.msg.len = 0; packet 231 drivers/w1/w1_netlink.c cn_netlink_send(&packet.cn, 0, 0, GFP_KERNEL); packet 223 drivers/watchdog/ziirave_wdt.c u8 i, checksum = 0, packet[ZIIRAVE_FIRM_PKT_TOTAL_SIZE]; packet 244 drivers/watchdog/ziirave_wdt.c packet[0] = len; packet 246 drivers/watchdog/ziirave_wdt.c put_unaligned_le16(addr16, packet + 1); packet 248 drivers/watchdog/ziirave_wdt.c memcpy(packet + 3, data, len); packet 249 drivers/watchdog/ziirave_wdt.c memset(packet + 3 + len, 0, ZIIRAVE_FIRM_PKT_DATA_SIZE - len); packet 253 drivers/watchdog/ziirave_wdt.c checksum += packet[i]; packet 254 drivers/watchdog/ziirave_wdt.c packet[ZIIRAVE_FIRM_PKT_TOTAL_SIZE - 1] = checksum; packet 257 drivers/watchdog/ziirave_wdt.c sizeof(packet), packet); packet 136 fs/autofs/waitq.c struct autofs_v5_packet *packet = &pkt.v5_pkt.v5_packet; packet 139 fs/autofs/waitq.c pktsz = sizeof(*packet); packet 141 fs/autofs/waitq.c packet->wait_queue_token = wq->wait_queue_token; packet 142 fs/autofs/waitq.c packet->len = wq->name.len; packet 143 fs/autofs/waitq.c memcpy(packet->name, wq->name.name, wq->name.len); packet 144 fs/autofs/waitq.c packet->name[wq->name.len] = '\0'; packet 145 fs/autofs/waitq.c packet->dev = wq->dev; packet 146 fs/autofs/waitq.c packet->ino = wq->ino; packet 147 fs/autofs/waitq.c packet->uid = from_kuid_munged(user_ns, wq->uid); packet 148 fs/autofs/waitq.c packet->gid = from_kgid_munged(user_ns, wq->gid); packet 149 fs/autofs/waitq.c packet->pid = wq->pid; packet 150 fs/autofs/waitq.c packet->tgid = wq->tgid; packet 257 fs/cifs/smbdirect.c return (void *)request->packet; packet 262 fs/cifs/smbdirect.c return (void *)response->packet; packet 320 fs/cifs/smbdirect.c struct smbd_negotiate_resp *packet = smbd_response_payload(response); packet 328 fs/cifs/smbdirect.c if (le16_to_cpu(packet->negotiated_version) != SMBD_V1) { packet 330 fs/cifs/smbdirect.c le16_to_cpu(packet->negotiated_version)); packet 333 fs/cifs/smbdirect.c info->protocol = le16_to_cpu(packet->negotiated_version); packet 335 fs/cifs/smbdirect.c if (packet->credits_requested == 0) { packet 339 fs/cifs/smbdirect.c info->receive_credit_target = le16_to_cpu(packet->credits_requested); packet 341 fs/cifs/smbdirect.c if (packet->credits_granted == 0) { packet 345 fs/cifs/smbdirect.c atomic_set(&info->send_credits, le16_to_cpu(packet->credits_granted)); packet 349 fs/cifs/smbdirect.c if (le32_to_cpu(packet->preferred_send_size) > info->max_receive_size) { packet 351 fs/cifs/smbdirect.c le32_to_cpu(packet->preferred_send_size)); packet 354 fs/cifs/smbdirect.c info->max_receive_size = le32_to_cpu(packet->preferred_send_size); packet 356 fs/cifs/smbdirect.c if (le32_to_cpu(packet->max_receive_size) < SMBD_MIN_RECEIVE_SIZE) { packet 358 fs/cifs/smbdirect.c le32_to_cpu(packet->max_receive_size)); packet 362 fs/cifs/smbdirect.c le32_to_cpu(packet->max_receive_size)); packet 364 fs/cifs/smbdirect.c if (le32_to_cpu(packet->max_fragmented_size) < packet 367 fs/cifs/smbdirect.c le32_to_cpu(packet->max_fragmented_size)); packet 371 fs/cifs/smbdirect.c le32_to_cpu(packet->max_fragmented_size); packet 379 fs/cifs/smbdirect.c le32_to_cpu(packet->max_readwrite_size), packet 712 fs/cifs/smbdirect.c struct smbd_negotiate_req *packet; packet 720 fs/cifs/smbdirect.c packet = smbd_request_payload(request); packet 721 fs/cifs/smbdirect.c packet->min_version = cpu_to_le16(SMBD_V1); packet 722 fs/cifs/smbdirect.c packet->max_version = cpu_to_le16(SMBD_V1); packet 723 fs/cifs/smbdirect.c packet->reserved = 0; packet 724 fs/cifs/smbdirect.c packet->credits_requested = cpu_to_le16(info->send_credit_target); packet 725 fs/cifs/smbdirect.c packet->preferred_send_size = cpu_to_le32(info->max_send_size); packet 726 fs/cifs/smbdirect.c packet->max_receive_size = cpu_to_le32(info->max_receive_size); packet 727 fs/cifs/smbdirect.c packet->max_fragmented_size = packet 732 fs/cifs/smbdirect.c info->id->device, (void *)packet, packet 733 fs/cifs/smbdirect.c sizeof(*packet), DMA_TO_DEVICE); packet 739 fs/cifs/smbdirect.c request->sge[0].length = sizeof(*packet); packet 834 fs/cifs/smbdirect.c struct smbd_data_transfer *packet; packet 860 fs/cifs/smbdirect.c packet = smbd_request_payload(request); packet 861 fs/cifs/smbdirect.c packet->credits_requested = cpu_to_le16(info->send_credit_target); packet 862 fs/cifs/smbdirect.c packet->credits_granted = packet 866 fs/cifs/smbdirect.c packet->flags = 0; packet 868 fs/cifs/smbdirect.c packet->flags |= cpu_to_le16(SMB_DIRECT_RESPONSE_REQUESTED); packet 870 fs/cifs/smbdirect.c packet->reserved = 0; packet 872 fs/cifs/smbdirect.c packet->data_offset = 0; packet 874 fs/cifs/smbdirect.c packet->data_offset = cpu_to_le32(24); packet 875 fs/cifs/smbdirect.c packet->data_length = cpu_to_le32(size); packet 876 fs/cifs/smbdirect.c packet->remaining_data_length = cpu_to_le32(remaining_data_length); packet 877 fs/cifs/smbdirect.c packet->padding = 0; packet 881 fs/cifs/smbdirect.c le16_to_cpu(packet->credits_requested), packet 882 fs/cifs/smbdirect.c le16_to_cpu(packet->credits_granted), packet 883 fs/cifs/smbdirect.c le32_to_cpu(packet->data_offset), packet 884 fs/cifs/smbdirect.c le32_to_cpu(packet->data_length), packet 885 fs/cifs/smbdirect.c le32_to_cpu(packet->remaining_data_length)); packet 895 fs/cifs/smbdirect.c (void *)packet, packet 1096 fs/cifs/smbdirect.c info->id->device, response->packet, packet 246 fs/cifs/smbdirect.h u8 packet[]; packet 264 fs/cifs/smbdirect.h u8 packet[]; packet 145 fs/ecryptfs/keystore.c char **packet, size_t *packet_len) packet 163 fs/ecryptfs/keystore.c *packet = kmalloc(data_len, GFP_KERNEL); packet 164 fs/ecryptfs/keystore.c message = *packet; packet 286 fs/ecryptfs/keystore.c struct ecryptfs_crypt_stat *crypt_stat, char **packet, packet 306 fs/ecryptfs/keystore.c *packet = kmalloc(data_len, GFP_KERNEL); packet 307 fs/ecryptfs/keystore.c message = *packet; packet 659 fs/ocfs2/dlm/dlmcommon.h struct dlm_query_join_packet packet; packet 773 fs/ocfs2/dlm/dlmdomain.c static void dlm_query_join_packet_to_wire(struct dlm_query_join_packet *packet, packet 778 fs/ocfs2/dlm/dlmdomain.c response.packet = *packet; packet 783 fs/ocfs2/dlm/dlmdomain.c struct dlm_query_join_packet *packet) packet 788 fs/ocfs2/dlm/dlmdomain.c *packet = response.packet; packet 795 fs/ocfs2/dlm/dlmdomain.c struct dlm_query_join_packet packet = { packet 816 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_DISALLOW; packet 820 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_OK_NO_MAP; packet 839 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_DISALLOW; packet 859 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_OK_NO_MAP; packet 862 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_DISALLOW; packet 866 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_DISALLOW; packet 870 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_DISALLOW; packet 875 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_DISALLOW; packet 886 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_PROTOCOL_MISMATCH; packet 890 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_PROTOCOL_MISMATCH; packet 892 fs/ocfs2/dlm/dlmdomain.c packet.dlm_minor = query->dlm_proto.pv_minor; packet 893 fs/ocfs2/dlm/dlmdomain.c packet.fs_minor = query->fs_proto.pv_minor; packet 894 fs/ocfs2/dlm/dlmdomain.c packet.code = JOIN_OK; packet 905 fs/ocfs2/dlm/dlmdomain.c mlog(0, "We respond with %u\n", packet.code); packet 907 fs/ocfs2/dlm/dlmdomain.c dlm_query_join_packet_to_wire(&packet, &response); packet 1420 fs/ocfs2/dlm/dlmdomain.c struct dlm_query_join_packet packet; packet 1443 fs/ocfs2/dlm/dlmdomain.c dlm_query_join_wire_to_packet(join_resp, &packet); packet 1453 fs/ocfs2/dlm/dlmdomain.c *response = packet.code; packet 1454 fs/ocfs2/dlm/dlmdomain.c switch (packet.code) { packet 1473 fs/ocfs2/dlm/dlmdomain.c dlm->dlm_locking_proto.pv_minor = packet.dlm_minor; packet 1474 fs/ocfs2/dlm/dlmdomain.c dlm->fs_locking_proto.pv_minor = packet.fs_minor; packet 1487 fs/ocfs2/dlm/dlmdomain.c packet.code, node); packet 119 fs/udf/partition.c uint32_t packet; packet 124 fs/udf/partition.c packet = (block + offset) & ~(sdata->s_packet_len - 1); packet 140 fs/udf/partition.c else if (origLoc == packet) packet 144 fs/udf/partition.c else if (origLoc > packet) packet 157 fs/udf/partition.c uint32_t packet; packet 170 fs/udf/partition.c packet = (old_block - map->s_partition_root) & packet 201 fs/udf/partition.c cpu_to_le32(packet); packet 216 fs/udf/partition.c } else if (origLoc == packet) { packet 224 fs/udf/partition.c } else if (origLoc > packet) packet 243 fs/udf/partition.c cpu_to_le32(packet); packet 62 include/drm/drm_mipi_dsi.h int mipi_dsi_create_packet(struct mipi_dsi_packet *packet, packet 266 include/linux/firewire.h typedef void (*fw_packet_callback_t)(struct fw_packet *packet, packet 324 include/linux/firewire.h struct fw_packet packet; packet 458 include/linux/firewire.h struct fw_iso_packet *packet, packet 96 include/linux/hil_mlc.h hil_packet packet; /* Packet to send or to compare */ packet 83 include/linux/stm.h ssize_t (*packet)(struct stm_data *, unsigned int, packet 318 include/linux/tty.h packet:1, packet 2800 include/net/cfg80211.h const void *packet; packet 145 include/net/ipx.h __be16 ipx_cksum(struct ipxhdr *packet, int length); packet 119 include/net/net_namespace.h struct netns_packet packet; packet 122 include/net/sctp/command.h struct sctp_packet *packet; packet 163 include/net/sctp/command.h SCTP_ARG_CONSTRUCTOR(PACKET, struct sctp_packet *, packet) packet 740 include/net/sctp/structs.h enum sctp_xmit sctp_packet_transmit_chunk(struct sctp_packet *packet, packet 743 include/net/sctp/structs.h enum sctp_xmit sctp_packet_append_chunk(struct sctp_packet *packet, packet 748 include/net/sctp/structs.h static inline int sctp_packet_empty(struct sctp_packet *packet) packet 750 include/net/sctp/structs.h return packet->size == packet->overhead; packet 944 include/net/sctp/structs.h struct sctp_packet packet; packet 1032 include/net/sctp/structs.h void sctp_inq_push(struct sctp_inq *, struct sctp_chunk *packet); packet 195 include/uapi/drm/radeon_drm.h } packet; packet 263 include/uapi/drm/radeon_drm.h unsigned char cmd_type, packet, pad0, pad1; packet 266 include/uapi/drm/radeon_drm.h unsigned char cmd_type, packet; packet 868 include/uapi/linux/cdrom.h __u8 packet : 1; packet 881 include/uapi/linux/cdrom.h __u8 packet : 1; packet 30 include/uapi/linux/netfilter/xt_statistic.h __u32 packet; packet 53 include/uapi/linux/pg.h char packet[12]; /* packet command */ packet 251 net/batman-adv/fragmentation.c struct batadv_frag_packet *packet; packet 265 net/batman-adv/fragmentation.c packet = (struct batadv_frag_packet *)skb_out->data; packet 266 net/batman-adv/fragmentation.c size = ntohs(packet->total_size) + hdr_size; packet 357 net/batman-adv/fragmentation.c struct batadv_frag_packet *packet; packet 361 net/batman-adv/fragmentation.c packet = (struct batadv_frag_packet *)skb->data; packet 362 net/batman-adv/fragmentation.c orig_node_dst = batadv_orig_hash_find(bat_priv, packet->dest); packet 373 net/batman-adv/fragmentation.c total_size = ntohs(packet->total_size); packet 379 net/batman-adv/fragmentation.c packet->ttl--; packet 105 net/batman-adv/icmp_socket.c struct batadv_socket_packet *packet, *tmp; packet 110 net/batman-adv/icmp_socket.c list_for_each_entry_safe(packet, tmp, &client->queue_list, list) { packet 111 net/batman-adv/icmp_socket.c list_del(&packet->list); packet 112 net/batman-adv/icmp_socket.c kfree(packet); packet 1505 net/batman-adv/network-coding.c struct batadv_unicast_packet *packet; packet 1517 net/batman-adv/network-coding.c packet = (struct batadv_unicast_packet *)payload; packet 1518 net/batman-adv/network-coding.c if (packet->packet_type != BATADV_UNICAST) packet 1535 net/batman-adv/network-coding.c packet_id = batadv_skb_crc32(skb, payload + sizeof(*packet)); packet 1558 net/batman-adv/network-coding.c struct batadv_unicast_packet *packet; packet 1570 net/batman-adv/network-coding.c packet = (struct batadv_unicast_packet *)payload; packet 1571 net/batman-adv/network-coding.c if (packet->packet_type != BATADV_UNICAST) packet 1595 net/batman-adv/network-coding.c packet_id = batadv_skb_crc32(skb, payload + sizeof(*packet)); packet 26 net/batman-adv/send.h bool batadv_forw_packet_steal(struct batadv_forw_packet *packet, spinlock_t *l); packet 1720 net/can/j1939/transport.c int packet; packet 1746 net/can/j1939/transport.c packet = (dat[0] - 1 + session->pkt.dpo); packet 1747 net/can/j1939/transport.c if (packet > session->pkt.total || packet 1761 net/can/j1939/transport.c offset = packet * 7 - skcb->offset; packet 1773 net/can/j1939/transport.c if (packet == session->pkt.rx) packet 263 net/netfilter/nfnetlink_queue.c nfqnl_put_packet_info(struct sk_buff *nlskb, struct sk_buff *packet, packet 268 net/netfilter/nfnetlink_queue.c if (packet->ip_summed == CHECKSUM_PARTIAL) packet 273 net/netfilter/nfnetlink_queue.c if (skb_is_gso(packet)) packet 856 net/nfc/hci/core.c struct hcp_packet *packet; packet 864 net/nfc/hci/core.c packet = (struct hcp_packet *)skb->data; packet 865 net/nfc/hci/core.c if ((packet->header & ~NFC_HCI_FRAGMENT) == 0) { packet 872 net/nfc/hci/core.c pipe = packet->header & NFC_HCI_FRAGMENT; packet 899 net/nfc/hci/core.c packet->header &= NFC_HCI_FRAGMENT; packet 907 net/nfc/hci/core.c packet = (struct hcp_packet *)hcp_skb->data; packet 908 net/nfc/hci/core.c type = HCP_MSG_GET_TYPE(packet->message.header); packet 910 net/nfc/hci/core.c pipe = packet->header; packet 911 net/nfc/hci/core.c instruction = HCP_MSG_GET_CMD(packet->message.header); packet 48 net/nfc/hci/hcp.c struct hcp_packet *packet; packet 71 net/nfc/hci/hcp.c packet = (struct hcp_packet *)skb->data; packet 72 net/nfc/hci/hcp.c packet->header = pipe; packet 75 net/nfc/hci/hcp.c packet->message.header = HCP_HEADER(type, instruction); packet 77 net/nfc/hci/hcp.c memcpy(packet->message.data, ptr, packet 82 net/nfc/hci/hcp.c memcpy(&packet->message, ptr, data_link_len); packet 88 net/nfc/hci/hcp.c packet->header |= ~NFC_HCI_FRAGMENT; packet 434 net/nfc/nci/hci.c struct nci_hcp_packet *packet; packet 447 net/nfc/nci/hci.c packet = (struct nci_hcp_packet *)skb->data; packet 448 net/nfc/nci/hci.c if ((packet->header & ~NCI_HCI_FRAGMENT) == 0) { packet 455 net/nfc/nci/hci.c pipe = NCI_HCP_MSG_GET_PIPE(packet->header); packet 482 net/nfc/nci/hci.c packet->header &= NCI_HCI_FRAGMENT; packet 490 net/nfc/nci/hci.c packet = (struct nci_hcp_packet *)hcp_skb->data; packet 491 net/nfc/nci/hci.c type = NCI_HCP_MSG_GET_TYPE(packet->message.header); packet 493 net/nfc/nci/hci.c pipe = NCI_HCP_MSG_GET_PIPE(packet->header); packet 539 net/openvswitch/datapath.c struct sk_buff *packet; packet 555 net/openvswitch/datapath.c packet = __dev_alloc_skb(NET_IP_ALIGN + len, GFP_KERNEL); packet 557 net/openvswitch/datapath.c if (!packet) packet 559 net/openvswitch/datapath.c skb_reserve(packet, NET_IP_ALIGN); packet 561 net/openvswitch/datapath.c nla_memcpy(__skb_put(packet, len), a[OVS_PACKET_ATTR_PACKET], len); packet 566 net/openvswitch/datapath.c packet->ignore_df = 1; packet 568 net/openvswitch/datapath.c OVS_CB(packet)->mru = mru; packet 577 net/openvswitch/datapath.c packet, &flow->key, log); packet 587 net/openvswitch/datapath.c packet->priority = flow->key.phy.priority; packet 588 net/openvswitch/datapath.c packet->mark = flow->key.phy.skb_mark; packet 603 net/openvswitch/datapath.c packet->dev = input_vport->dev; packet 604 net/openvswitch/datapath.c OVS_CB(packet)->input_vport = input_vport; packet 608 net/openvswitch/datapath.c err = ovs_execute_actions(dp, packet, sf_acts, &flow->key); packet 620 net/openvswitch/datapath.c kfree_skb(packet); packet 3025 net/packet/af_packet.c mutex_lock(&net->packet.sklist_lock); packet 3027 net/packet/af_packet.c mutex_unlock(&net->packet.sklist_lock); packet 3293 net/packet/af_packet.c mutex_lock(&net->packet.sklist_lock); packet 3294 net/packet/af_packet.c sk_add_node_tail_rcu(sk, &net->packet.sklist); packet 3295 net/packet/af_packet.c mutex_unlock(&net->packet.sklist_lock); packet 4072 net/packet/af_packet.c sk_for_each_rcu(sk, &net->packet.sklist) { packet 4578 net/packet/af_packet.c return seq_hlist_start_head_rcu(&net->packet.sklist, *pos); packet 4584 net/packet/af_packet.c return seq_hlist_next_rcu(v, &net->packet.sklist, pos); packet 4627 net/packet/af_packet.c mutex_init(&net->packet.sklist_lock); packet 4628 net/packet/af_packet.c INIT_HLIST_HEAD(&net->packet.sklist); packet 4640 net/packet/af_packet.c WARN_ON_ONCE(!hlist_empty(&net->packet.sklist)); packet 200 net/packet/diag.c mutex_lock(&net->packet.sklist_lock); packet 201 net/packet/diag.c sk_for_each(sk, &net->packet.sklist) { packet 218 net/packet/diag.c mutex_unlock(&net->packet.sklist_lock); packet 669 net/sctp/associola.c sctp_packet_init(&peer->packet, peer, asoc->base.bind_addr.port, packet 45 net/sctp/output.c static enum sctp_xmit __sctp_packet_append_chunk(struct sctp_packet *packet, packet 47 net/sctp/output.c static enum sctp_xmit sctp_packet_can_append_data(struct sctp_packet *packet, packet 49 net/sctp/output.c static void sctp_packet_append_data(struct sctp_packet *packet, packet 51 net/sctp/output.c static enum sctp_xmit sctp_packet_will_fit(struct sctp_packet *packet, packet 55 net/sctp/output.c static void sctp_packet_reset(struct sctp_packet *packet) packet 60 net/sctp/output.c packet->size = packet->overhead; packet 62 net/sctp/output.c packet->has_cookie_echo = 0; packet 63 net/sctp/output.c packet->has_sack = 0; packet 64 net/sctp/output.c packet->has_data = 0; packet 65 net/sctp/output.c packet->has_auth = 0; packet 66 net/sctp/output.c packet->ipfragok = 0; packet 67 net/sctp/output.c packet->auth = NULL; packet 73 net/sctp/output.c void sctp_packet_config(struct sctp_packet *packet, __u32 vtag, packet 76 net/sctp/output.c struct sctp_transport *tp = packet->transport; packet 81 net/sctp/output.c pr_debug("%s: packet:%p vtag:0x%x\n", __func__, packet, vtag); packet 82 net/sctp/output.c packet->vtag = vtag; packet 85 net/sctp/output.c if (!sctp_packet_empty(packet)) packet 89 net/sctp/output.c packet->max_size = tp->pathmtu; packet 95 net/sctp/output.c packet->overhead = sctp_mtu_payload(sp, 0, 0); packet 96 net/sctp/output.c packet->size = packet->overhead; packet 124 net/sctp/output.c sctp_packet_append_chunk(packet, chunk); packet 136 net/sctp/output.c packet->max_size = sk_can_gso(sk) ? tp->dst->dev->gso_max_size packet 142 net/sctp/output.c void sctp_packet_init(struct sctp_packet *packet, packet 146 net/sctp/output.c pr_debug("%s: packet:%p transport:%p\n", __func__, packet, transport); packet 148 net/sctp/output.c packet->transport = transport; packet 149 net/sctp/output.c packet->source_port = sport; packet 150 net/sctp/output.c packet->destination_port = dport; packet 151 net/sctp/output.c INIT_LIST_HEAD(&packet->chunk_list); packet 153 net/sctp/output.c packet->overhead = 0; packet 154 net/sctp/output.c sctp_packet_reset(packet); packet 155 net/sctp/output.c packet->vtag = 0; packet 159 net/sctp/output.c void sctp_packet_free(struct sctp_packet *packet) packet 163 net/sctp/output.c pr_debug("%s: packet:%p\n", __func__, packet); packet 165 net/sctp/output.c list_for_each_entry_safe(chunk, tmp, &packet->chunk_list, list) { packet 178 net/sctp/output.c enum sctp_xmit sctp_packet_transmit_chunk(struct sctp_packet *packet, packet 185 net/sctp/output.c packet, packet->size, chunk, chunk->skb ? chunk->skb->len : -1); packet 187 net/sctp/output.c switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) { packet 189 net/sctp/output.c if (!packet->has_cookie_echo) { packet 192 net/sctp/output.c error = sctp_packet_transmit(packet, gfp); packet 200 net/sctp/output.c retval = sctp_packet_append_chunk(packet, packet 302 net/sctp/output.c static enum sctp_xmit __sctp_packet_append_chunk(struct sctp_packet *packet, packet 309 net/sctp/output.c retval = sctp_packet_will_fit(packet, chunk, chunk_len); packet 318 net/sctp/output.c sctp_packet_append_data(packet, chunk); packet 320 net/sctp/output.c packet->has_sack = 1; packet 322 net/sctp/output.c packet->has_auth = 1; packet 324 net/sctp/output.c packet->has_data = 1; packet 331 net/sctp/output.c packet->has_cookie_echo = 1; packet 335 net/sctp/output.c packet->has_sack = 1; packet 341 net/sctp/output.c packet->has_auth = 1; packet 342 net/sctp/output.c packet->auth = chunk; packet 347 net/sctp/output.c list_add_tail(&chunk->list, &packet->chunk_list); packet 348 net/sctp/output.c packet->size += chunk_len; packet 349 net/sctp/output.c chunk->transport = packet->transport; packet 357 net/sctp/output.c enum sctp_xmit sctp_packet_append_chunk(struct sctp_packet *packet, packet 362 net/sctp/output.c pr_debug("%s: packet:%p chunk:%p\n", __func__, packet, chunk); packet 369 net/sctp/output.c retval = sctp_packet_can_append_data(packet, chunk); packet 375 net/sctp/output.c retval = sctp_packet_bundle_auth(packet, chunk); packet 380 net/sctp/output.c retval = sctp_packet_bundle_sack(packet, chunk); packet 384 net/sctp/output.c retval = __sctp_packet_append_chunk(packet, chunk); packet 406 net/sctp/output.c static int sctp_packet_pack(struct sctp_packet *packet, packet 409 net/sctp/output.c struct sctp_transport *tp = packet->transport; packet 422 net/sctp/output.c pkt_size = packet->size; packet 428 net/sctp/output.c pkt_size = packet->overhead; packet 429 net/sctp/output.c list_for_each_entry_safe(chunk, tmp, &packet->chunk_list, packet 433 net/sctp/output.c if (chunk == packet->auth) packet 435 net/sctp/output.c else if (auth_len + padded + packet->overhead > packet 445 net/sctp/output.c skb_reserve(nskb, packet->overhead + MAX_HEADER); packet 449 net/sctp/output.c pkt_size -= packet->overhead; packet 450 net/sctp/output.c list_for_each_entry_safe(chunk, tmp, &packet->chunk_list, list) { packet 466 net/sctp/output.c if (chunk == packet->auth) packet 482 net/sctp/output.c if (!sctp_chunk_is_data(chunk) && chunk != packet->auth) packet 491 net/sctp/output.c packet->auth->shkey, gfp); packet 493 net/sctp/output.c if (list_empty(&packet->chunk_list)) packet 494 net/sctp/output.c sctp_chunk_free(packet->auth); packet 496 net/sctp/output.c list_add(&packet->auth->list, packet 497 net/sctp/output.c &packet->chunk_list); packet 504 net/sctp/output.c } while (!list_empty(&packet->chunk_list)); packet 524 net/sctp/output.c dst_xfrm(skb_dst(head)) || packet->ipfragok) { packet 545 net/sctp/output.c int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp) packet 547 net/sctp/output.c struct sctp_transport *tp = packet->transport; packet 556 net/sctp/output.c pr_debug("%s: packet:%p\n", __func__, packet); packet 557 net/sctp/output.c if (list_empty(&packet->chunk_list)) packet 559 net/sctp/output.c chunk = list_entry(packet->chunk_list.next, struct sctp_chunk, list); packet 563 net/sctp/output.c if (packet->size > tp->pathmtu && !packet->ipfragok) { packet 572 net/sctp/output.c head = alloc_skb((gso ? packet->overhead : packet->size) + packet 576 net/sctp/output.c skb_reserve(head, packet->overhead + MAX_HEADER); packet 582 net/sctp/output.c sh->source = htons(packet->source_port); packet 583 net/sctp/output.c sh->dest = htons(packet->destination_port); packet 584 net/sctp/output.c sh->vtag = htonl(packet->vtag); packet 597 net/sctp/output.c pkt_count = sctp_packet_pack(packet, head, gso, gfp); packet 605 net/sctp/output.c if (packet->has_data && sctp_state(asoc, ESTABLISHED) && packet 623 net/sctp/output.c head->ignore_df = packet->ipfragok; packet 634 net/sctp/output.c list_for_each_entry_safe(chunk, tmp, &packet->chunk_list, list) { packet 639 net/sctp/output.c sctp_packet_reset(packet); packet 648 net/sctp/output.c static enum sctp_xmit sctp_packet_can_append_data(struct sctp_packet *packet, packet 652 net/sctp/output.c struct sctp_transport *transport = packet->transport; packet 708 net/sctp/output.c if (!sctp_packet_empty(packet)) packet 719 net/sctp/output.c packet->overhead - sctp_datachk_len(&chunk->asoc->stream) - 4) packet 732 net/sctp/output.c static void sctp_packet_append_data(struct sctp_packet *packet, packet 735 net/sctp/output.c struct sctp_transport *transport = packet->transport; packet 757 net/sctp/output.c static enum sctp_xmit sctp_packet_will_fit(struct sctp_packet *packet, packet 769 net/sctp/output.c if ((packet->auth && chunk->shkey != packet->auth->shkey) || packet 770 net/sctp/output.c (!packet->auth && chunk->shkey && packet 774 net/sctp/output.c psize = packet->size; packet 775 net/sctp/output.c if (packet->transport->asoc) packet 776 net/sctp/output.c pmtu = packet->transport->asoc->pathmtu; packet 778 net/sctp/output.c pmtu = packet->transport->pathmtu; packet 789 net/sctp/output.c if (sctp_packet_empty(packet) || packet 790 net/sctp/output.c (!packet->has_data && chunk->auth)) { packet 795 net/sctp/output.c packet->ipfragok = 1; packet 804 net/sctp/output.c maxsize = pmtu - packet->overhead; packet 805 net/sctp/output.c if (packet->auth) packet 806 net/sctp/output.c maxsize -= SCTP_PAD4(packet->auth->skb->len); packet 816 net/sctp/output.c if (!sctp_chunk_is_data(chunk) && packet->has_data) packet 819 net/sctp/output.c if (psize + chunk_len > packet->max_size) packet 823 net/sctp/output.c if (!packet->transport->burst_limited && packet 824 net/sctp/output.c psize + chunk_len > (packet->transport->cwnd >> 1)) packet 830 net/sctp/output.c if (packet->transport->burst_limited && packet 831 net/sctp/output.c psize + chunk_len > (packet->transport->burst_limited >> 1)) packet 784 net/sctp/outqueue.c struct sctp_packet *packet; packet 852 net/sctp/outqueue.c ctx->packet = &ctx->transport->packet; packet 858 net/sctp/outqueue.c sctp_packet_config(ctx->packet, packet 913 net/sctp/outqueue.c ctx->packet->vtag = ctx->asoc->c.my_vtag; packet 939 net/sctp/outqueue.c status = sctp_packet_transmit_chunk(ctx->packet, chunk, packet 982 net/sctp/outqueue.c ctx->packet = &ctx->transport->packet; packet 988 net/sctp/outqueue.c sctp_packet_config(ctx->packet, ctx->asoc->peer.i.init_tag, packet 992 net/sctp/outqueue.c error = __sctp_outq_flush_rtx(ctx->q, ctx->packet, rtx_timeout, packet 1005 net/sctp/outqueue.c if (ctx->packet->has_cookie_echo) packet 1029 net/sctp/outqueue.c if (!ctx->packet || !ctx->packet->has_cookie_echo) packet 1091 net/sctp/outqueue.c status = sctp_packet_transmit_chunk(ctx->packet, chunk, 0, packet 1130 net/sctp/outqueue.c if (ctx->packet->has_cookie_echo) packet 1138 net/sctp/outqueue.c struct sctp_packet *packet; packet 1144 net/sctp/outqueue.c packet = &t->packet; packet 1145 net/sctp/outqueue.c if (!sctp_packet_empty(packet)) { packet 1146 net/sctp/outqueue.c error = sctp_packet_transmit(packet, ctx->gfp); packet 1172 net/sctp/outqueue.c .packet = NULL, packet 1264 net/sctp/sm_sideeffect.c struct sctp_packet *packet; packet 1473 net/sctp/sm_sideeffect.c packet = cmd->obj.packet; packet 1474 net/sctp/sm_sideeffect.c sctp_packet_transmit(packet, gfp); packet 1475 net/sctp/sm_sideeffect.c sctp_ootb_pkt_free(packet); packet 313 net/sctp/sm_statefuns.c struct sctp_packet *packet; packet 373 net/sctp/sm_statefuns.c packet = sctp_abort_pkt_new(net, ep, asoc, arg, packet 381 net/sctp/sm_statefuns.c if (packet) { packet 383 net/sctp/sm_statefuns.c SCTP_PACKET(packet)); packet 512 net/sctp/sm_statefuns.c struct sctp_packet *packet; packet 545 net/sctp/sm_statefuns.c packet = sctp_abort_pkt_new(net, ep, asoc, arg, packet 553 net/sctp/sm_statefuns.c if (packet) { packet 555 net/sctp/sm_statefuns.c SCTP_PACKET(packet)); packet 1463 net/sctp/sm_statefuns.c struct sctp_packet *packet; packet 1511 net/sctp/sm_statefuns.c packet = sctp_abort_pkt_new(net, ep, asoc, arg, packet 1517 net/sctp/sm_statefuns.c if (packet) { packet 1519 net/sctp/sm_statefuns.c SCTP_PACKET(packet)); packet 3369 net/sctp/sm_statefuns.c struct sctp_packet *packet = NULL; packet 3373 net/sctp/sm_statefuns.c packet = sctp_ootb_pkt_new(net, asoc, chunk); packet 3374 net/sctp/sm_statefuns.c if (!packet) packet 3382 net/sctp/sm_statefuns.c sctp_ootb_pkt_free(packet); packet 3388 net/sctp/sm_statefuns.c packet->vtag = ntohl(chunk->sctp_hdr->vtag); packet 3393 net/sctp/sm_statefuns.c sctp_packet_append_chunk(packet, abort); packet 3396 net/sctp/sm_statefuns.c SCTP_PACKET(packet)); packet 3633 net/sctp/sm_statefuns.c struct sctp_packet *packet = NULL; packet 3637 net/sctp/sm_statefuns.c packet = sctp_ootb_pkt_new(net, asoc, chunk); packet 3638 net/sctp/sm_statefuns.c if (!packet) packet 3646 net/sctp/sm_statefuns.c sctp_ootb_pkt_free(packet); packet 3652 net/sctp/sm_statefuns.c packet->vtag = ntohl(chunk->sctp_hdr->vtag); packet 3657 net/sctp/sm_statefuns.c sctp_packet_append_chunk(packet, shut); packet 3660 net/sctp/sm_statefuns.c SCTP_PACKET(packet)); packet 4549 net/sctp/sm_statefuns.c struct sctp_packet *packet = NULL; packet 4608 net/sctp/sm_statefuns.c packet = sctp_ootb_pkt_new(net, asoc, chunk); packet 4610 net/sctp/sm_statefuns.c if (!packet) packet 4614 net/sctp/sm_statefuns.c packet->vtag = ntohl(chunk->sctp_hdr->vtag); packet 4618 net/sctp/sm_statefuns.c sctp_packet_append_chunk(packet, abort); packet 4621 net/sctp/sm_statefuns.c SCTP_PACKET(packet)); packet 6178 net/sctp/sm_statefuns.c struct sctp_packet *packet; packet 6181 net/sctp/sm_statefuns.c packet = sctp_ootb_pkt_new(net, asoc, chunk); packet 6183 net/sctp/sm_statefuns.c if (packet) { packet 6189 net/sctp/sm_statefuns.c sctp_ootb_pkt_free(packet); packet 6195 net/sctp/sm_statefuns.c packet->vtag = ntohl(chunk->sctp_hdr->vtag); packet 6205 net/sctp/sm_statefuns.c sctp_packet_append_chunk(packet, abort); packet 6209 net/sctp/sm_statefuns.c return packet; packet 6219 net/sctp/sm_statefuns.c struct sctp_packet *packet; packet 6277 net/sctp/sm_statefuns.c packet = &transport->packet; packet 6278 net/sctp/sm_statefuns.c sctp_packet_init(packet, transport, sport, dport); packet 6279 net/sctp/sm_statefuns.c sctp_packet_config(packet, vtag, 0); packet 6281 net/sctp/sm_statefuns.c return packet; packet 6288 net/sctp/sm_statefuns.c void sctp_ootb_pkt_free(struct sctp_packet *packet) packet 6290 net/sctp/sm_statefuns.c sctp_transport_free(packet->transport); packet 6301 net/sctp/sm_statefuns.c struct sctp_packet *packet; packet 6304 net/sctp/sm_statefuns.c packet = sctp_ootb_pkt_new(net, asoc, chunk); packet 6305 net/sctp/sm_statefuns.c if (packet) { packet 6310 net/sctp/sm_statefuns.c packet->vtag = cookie->c.peer_vtag; packet 6314 net/sctp/sm_statefuns.c sctp_packet_append_chunk(packet, err_chunk); packet 6316 net/sctp/sm_statefuns.c SCTP_PACKET(packet)); packet 162 net/sctp/transport.c sctp_packet_free(&transport->packet); packet 197 net/sunrpc/xprtsock.c static void xs_pktdump(char *msg, u32 *packet, unsigned int count) packet 199 net/sunrpc/xprtsock.c u8 *buf = (u8 *) packet; packet 215 net/sunrpc/xprtsock.c static inline void xs_pktdump(char *msg, u32 *packet, unsigned int count) packet 16650 net/wireless/nl80211.c if (wakeup->packet) { packet 16666 net/wireless/nl80211.c wakeup->packet)) packet 3308 net/wireless/trace.h __dynamic_array(u8, packet, packet 3323 net/wireless/trace.h if (wakeup && wakeup->packet && wakeup->packet_present_len) packet 3324 net/wireless/trace.h memcpy(__get_dynamic_array(packet), wakeup->packet, packet 60 sound/pci/oxygen/xonar_dg.c unsigned int packet; packet 62 sound/pci/oxygen/xonar_dg.c packet = reg << 8; packet 63 sound/pci/oxygen/xonar_dg.c packet |= (CS4245_SPI_ADDRESS | CS4245_SPI_WRITE) << 16; packet 64 sound/pci/oxygen/xonar_dg.c packet |= data->cs4245_shadow[reg]; packet 71 sound/pci/oxygen/xonar_dg.c packet); packet 156 sound/usb/6fire/pcm.c struct usb_iso_packet_descriptor *packet; packet 164 sound/usb/6fire/pcm.c packet = &rt->in_urbs[i].packets[k]; packet 165 sound/usb/6fire/pcm.c packet->offset = k * rt->in_packet_size; packet 166 sound/usb/6fire/pcm.c packet->length = rt->in_packet_size; packet 167 sound/usb/6fire/pcm.c packet->actual_length = 0; packet 168 sound/usb/6fire/pcm.c packet->status = 0; packet 313 sound/usb/endpoint.c struct snd_usb_packet_info *uninitialized_var(packet); packet 319 sound/usb/endpoint.c packet = ep->next_packet + ep->next_packet_read_pos; packet 336 sound/usb/endpoint.c for (i = 0; i < packet->packets; i++) packet 337 sound/usb/endpoint.c ctx->packet_size[i] = packet->packet_size[i]; packet 148 tools/firewire/decode-fcp.c (struct avc_frame *) t->request->packet.write_block.data; packet 177 tools/firewire/decode-fcp.c (struct avc_frame *) t->request->packet.write_block.data; packet 179 tools/firewire/decode-fcp.c ((unsigned long long) t->request->packet.common.offset_high << 32) | packet 180 tools/firewire/decode-fcp.c t->request->packet.common.offset_low; packet 182 tools/firewire/decode-fcp.c if (t->request->packet.common.tcode != TCODE_WRITE_BLOCK_REQUEST) packet 34 tools/firewire/nosy-dump.c static void decode_link_packet(struct link_packet *packet, size_t length, packet 139 tools/firewire/nosy-dump.c sa = malloc(sizeof *sa - sizeof sa->packet + length); packet 144 tools/firewire/nosy-dump.c memcpy(&sa->packet, data, length); packet 230 tools/firewire/nosy-dump.c decode_link_packet(&t->request->packet, t->request->length, packet 233 tools/firewire/nosy-dump.c decode_link_packet(&t->response->packet, t->request->length, packet 240 tools/firewire/nosy-dump.c print_packet((uint32_t *) &sa->packet, sa->length); packet 242 tools/firewire/nosy-dump.c print_packet((uint32_t *) &sa->packet, sa->length); packet 506 tools/firewire/nosy-dump.c if (prev->packet.common.tcode != sa->packet.common.tcode || packet 507 tools/firewire/nosy-dump.c prev->packet.common.tlabel != sa->packet.common.tlabel) { packet 572 tools/firewire/nosy-dump.c if (prev->packet.common.tcode != sa->packet.common.tcode || packet 573 tools/firewire/nosy-dump.c prev->packet.common.tlabel != sa->packet.common.tlabel) { packet 586 tools/firewire/nosy-dump.c if (packet_info[prev->packet.common.tcode].response_tcode != packet 587 tools/firewire/nosy-dump.c sa->packet.common.tcode) { packet 644 tools/firewire/nosy-dump.c get_bits(struct link_packet *packet, int offset, int width) packet 646 tools/firewire/nosy-dump.c uint32_t *data = (uint32_t *) packet; packet 684 tools/firewire/nosy-dump.c decode_link_packet(struct link_packet *packet, size_t length, packet 691 tools/firewire/nosy-dump.c pi = &packet_info[packet->common.tcode]; packet 710 tools/firewire/nosy-dump.c bits = get_bits(packet, offset, f->width); packet 714 tools/firewire/nosy-dump.c dump_data((unsigned char *) packet + (offset / 8 + 4), data_length); packet 725 tools/firewire/nosy-dump.c bits = get_bits(packet, offset, high_width); packet 727 tools/firewire/nosy-dump.c get_bits(packet, offset + high_width, low_width); packet 729 tools/firewire/nosy-dump.c bits = get_bits(packet, offset, f->width); packet 807 tools/firewire/nosy-dump.c struct link_packet *packet = (struct link_packet *) data; packet 809 tools/firewire/nosy-dump.c decode_link_packet(packet, length, 0, packet 842 tools/firewire/nosy-dump.c struct link_packet *packet = (struct link_packet *) data; packet 843 tools/firewire/nosy-dump.c tcode_count[packet->common.tcode]++; packet 162 tools/firewire/nosy-dump.h struct link_packet packet; packet 24 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c struct intel_pt_pkt packet; packet 173 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c static int dump_packet(struct intel_pt_pkt *packet, u8 *bytes, int len) packet 183 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c ret = intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); packet 197 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c dump_packet(&d->packet, d->bytes, d->len); packet 200 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c static int fail(struct test_data *d, struct intel_pt_pkt *packet, int len, packet 209 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c if (packet->type != d->packet.type) packet 211 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c d->packet.type, packet->type); packet 213 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c if (packet->count != d->packet.count) packet 215 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c d->packet.count, packet->count); packet 217 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c if (packet->payload != d->packet.payload) packet 219 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c (unsigned long long)d->packet.payload, packet 220 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c (unsigned long long)packet->payload); packet 229 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c static int test_ctx_unchanged(struct test_data *d, struct intel_pt_pkt *packet, packet 234 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c intel_pt_upd_pkt_ctx(packet, &ctx); packet 247 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c struct intel_pt_pkt packet; packet 251 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c memset(&packet, 0xff, sizeof(packet)); packet 254 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c ret = intel_pt_get_packet(d->bytes, d->len, &packet, &ctx); packet 265 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c err = test_ctx_unchanged(d, &packet, INTEL_PT_NO_CTX); packet 268 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c err = test_ctx_unchanged(d, &packet, INTEL_PT_BLK_4_CTX); packet 271 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c err = test_ctx_unchanged(d, &packet, INTEL_PT_BLK_8_CTX); packet 277 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c if (ret != d->len || packet.type != d->packet.type || packet 278 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c packet.count != d->packet.count || packet 279 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c packet.payload != d->packet.payload || ctx != d->new_ctx) packet 280 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c return fail(d, &packet, ret, ctx); packet 283 tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c ret = dump_packet(&d->packet, d->bytes, d->len); packet 86 tools/perf/util/arm-spe-pkt-decoder.c struct arm_spe_pkt *packet) packet 96 tools/perf/util/arm-spe-pkt-decoder.c case 1: packet->payload = *(uint8_t *)buf; break; packet 97 tools/perf/util/arm-spe-pkt-decoder.c case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break; packet 98 tools/perf/util/arm-spe-pkt-decoder.c case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break; packet 99 tools/perf/util/arm-spe-pkt-decoder.c case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break; packet 106 tools/perf/util/arm-spe-pkt-decoder.c static int arm_spe_get_pad(struct arm_spe_pkt *packet) packet 108 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_PAD; packet 113 tools/perf/util/arm-spe-pkt-decoder.c struct arm_spe_pkt *packet) packet 120 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_PAD; packet 124 tools/perf/util/arm-spe-pkt-decoder.c static int arm_spe_get_end(struct arm_spe_pkt *packet) packet 126 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_END; packet 131 tools/perf/util/arm-spe-pkt-decoder.c struct arm_spe_pkt *packet) packet 133 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_TIMESTAMP; packet 134 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_payload(buf, len, packet); packet 138 tools/perf/util/arm-spe-pkt-decoder.c struct arm_spe_pkt *packet) packet 140 tools/perf/util/arm-spe-pkt-decoder.c int ret = arm_spe_get_payload(buf, len, packet); packet 142 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_EVENTS; packet 149 tools/perf/util/arm-spe-pkt-decoder.c packet->index = ret - 1; packet 155 tools/perf/util/arm-spe-pkt-decoder.c struct arm_spe_pkt *packet) packet 157 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_DATA_SOURCE; packet 158 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_payload(buf, len, packet); packet 162 tools/perf/util/arm-spe-pkt-decoder.c struct arm_spe_pkt *packet) packet 164 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_CONTEXT; packet 165 tools/perf/util/arm-spe-pkt-decoder.c packet->index = buf[0] & 0x3; packet 167 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_payload(buf, len, packet); packet 171 tools/perf/util/arm-spe-pkt-decoder.c struct arm_spe_pkt *packet) packet 173 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_OP_TYPE; packet 174 tools/perf/util/arm-spe-pkt-decoder.c packet->index = buf[0] & 0x3; packet 175 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_payload(buf, len, packet); packet 179 tools/perf/util/arm-spe-pkt-decoder.c const unsigned char ext_hdr, struct arm_spe_pkt *packet) packet 184 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_COUNTER; packet 186 tools/perf/util/arm-spe-pkt-decoder.c packet->index = ((buf[0] & 0x3) << 3) | (buf[1] & 0x7); packet 188 tools/perf/util/arm-spe-pkt-decoder.c packet->index = buf[0] & 0x7; packet 190 tools/perf/util/arm-spe-pkt-decoder.c packet->payload = le16_to_cpu(*(uint16_t *)(buf + 1)); packet 196 tools/perf/util/arm-spe-pkt-decoder.c const unsigned char ext_hdr, struct arm_spe_pkt *packet) packet 201 tools/perf/util/arm-spe-pkt-decoder.c packet->type = ARM_SPE_ADDRESS; packet 203 tools/perf/util/arm-spe-pkt-decoder.c packet->index = ((buf[0] & 0x3) << 3) | (buf[1] & 0x7); packet 205 tools/perf/util/arm-spe-pkt-decoder.c packet->index = buf[0] & 0x7; packet 207 tools/perf/util/arm-spe-pkt-decoder.c memcpy_le64(&packet->payload, buf + 1, 8); packet 213 tools/perf/util/arm-spe-pkt-decoder.c struct arm_spe_pkt *packet) packet 217 tools/perf/util/arm-spe-pkt-decoder.c memset(packet, 0, sizeof(struct arm_spe_pkt)); packet 224 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_pad(packet); packet 226 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_end(packet); packet 230 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_addr(buf, len, 0, packet); packet 232 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_counter(buf, len, 0, packet); packet 235 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_timestamp(buf, len, packet); packet 237 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_events(buf, len, packet); packet 239 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_data_source(buf, len, packet); packet 241 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_context(buf, len, packet); packet 243 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_op_type(buf, len, packet); packet 248 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_alignment(buf, len, packet); packet 250 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_addr(buf, len, 1, packet); packet 252 tools/perf/util/arm-spe-pkt-decoder.c return arm_spe_get_counter(buf, len, 1, packet); packet 259 tools/perf/util/arm-spe-pkt-decoder.c struct arm_spe_pkt *packet) packet 263 tools/perf/util/arm-spe-pkt-decoder.c ret = arm_spe_do_get_packet(buf, len, packet); packet 267 tools/perf/util/arm-spe-pkt-decoder.c if (ret > 0 && packet->type == ARM_SPE_PAD) { packet 274 tools/perf/util/arm-spe-pkt-decoder.c int arm_spe_pkt_desc(const struct arm_spe_pkt *packet, char *buf, packet 277 tools/perf/util/arm-spe-pkt-decoder.c int ret, ns, el, idx = packet->index; packet 278 tools/perf/util/arm-spe-pkt-decoder.c unsigned long long payload = packet->payload; packet 279 tools/perf/util/arm-spe-pkt-decoder.c const char *name = arm_spe_pkt_name(packet->type); packet 281 tools/perf/util/arm-spe-pkt-decoder.c switch (packet->type) { packet 423 tools/perf/util/arm-spe-pkt-decoder.c case 1: ns = !!(packet->payload & NS_FLAG); packet 424 tools/perf/util/arm-spe-pkt-decoder.c el = (packet->payload & EL_FLAG) >> 61; packet 429 tools/perf/util/arm-spe-pkt-decoder.c case 3: ns = !!(packet->payload & NS_FLAG); packet 461 tools/perf/util/arm-spe-pkt-decoder.c name, payload, packet->index); packet 40 tools/perf/util/arm-spe-pkt-decoder.h struct arm_spe_pkt *packet); packet 42 tools/perf/util/arm-spe-pkt-decoder.h int arm_spe_pkt_desc(const struct arm_spe_pkt *packet, char *buf, size_t len); packet 52 tools/perf/util/arm-spe.c struct arm_spe_pkt packet; packet 63 tools/perf/util/arm-spe.c ret = arm_spe_get_packet(buf, len, &packet); packet 75 tools/perf/util/arm-spe.c ret = arm_spe_pkt_desc(&packet, desc, packet 84 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c struct cs_etm_packet *packet) packet 86 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c if (!packet_queue || !packet) packet 104 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c *packet = packet_queue->packet_buffer[packet_queue->head]; packet 388 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c struct cs_etm_packet *packet; packet 395 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet = &packet_queue->packet_buffer[packet_queue->tail]; packet 399 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->isa = CS_ETM_ISA_A64; packet 402 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->isa = CS_ETM_ISA_A32; packet 405 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->isa = CS_ETM_ISA_T32; packet 412 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->isa = CS_ETM_ISA_UNKNOWN; packet 415 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->start_addr = elem->st_addr; packet 416 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->end_addr = elem->en_addr; packet 417 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->instr_count = elem->num_instr_range; packet 418 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->last_instr_type = elem->last_i_type; packet 419 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->last_instr_subtype = elem->last_i_subtype; packet 420 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->last_instr_cond = elem->last_instr_cond; packet 425 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->last_instr_taken_branch = elem->last_instr_exec; packet 432 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->last_instr_taken_branch = false; packet 436 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->last_instr_size = elem->last_instr_sz; packet 476 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c struct cs_etm_packet *packet; packet 483 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet = &queue->packet_buffer[queue->tail]; packet 484 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c packet->exception_number = elem->exception_number; packet 92 tools/perf/util/cs-etm-decoder/cs-etm-decoder.h struct cs_etm_packet *packet); packet 79 tools/perf/util/cs-etm.c struct cs_etm_packet *packet; packet 245 tools/perf/util/cs-etm.c tidq->packet = zalloc(sizeof(struct cs_etm_packet)); packet 246 tools/perf/util/cs-etm.c if (!tidq->packet) packet 276 tools/perf/util/cs-etm.c zfree(&tidq->packet); packet 547 tools/perf/util/cs-etm.c zfree(&tidq->packet); packet 921 tools/perf/util/cs-etm.c static inline u64 cs_etm__first_executed_instr(struct cs_etm_packet *packet) packet 924 tools/perf/util/cs-etm.c if (packet->sample_type == CS_ETM_DISCONTINUITY) packet 927 tools/perf/util/cs-etm.c return packet->start_addr; packet 931 tools/perf/util/cs-etm.c u64 cs_etm__last_executed_instr(const struct cs_etm_packet *packet) packet 934 tools/perf/util/cs-etm.c if (packet->sample_type == CS_ETM_DISCONTINUITY) packet 937 tools/perf/util/cs-etm.c return packet->end_addr - packet->last_instr_size; packet 942 tools/perf/util/cs-etm.c const struct cs_etm_packet *packet, packet 945 tools/perf/util/cs-etm.c if (packet->isa == CS_ETM_ISA_T32) { packet 946 tools/perf/util/cs-etm.c u64 addr = packet->start_addr; packet 957 tools/perf/util/cs-etm.c return packet->start_addr + offset * 4; packet 979 tools/perf/util/cs-etm.c be->to = cs_etm__first_executed_instr(tidq->packet); packet 1085 tools/perf/util/cs-etm.c const struct cs_etm_packet *packet, packet 1092 tools/perf/util/cs-etm.c if (packet->sample_type == CS_ETM_DISCONTINUITY) { packet 1101 tools/perf/util/cs-etm.c if (packet->isa == CS_ETM_ISA_T32) packet 1131 tools/perf/util/cs-etm.c sample.cpu = tidq->packet->cpu; packet 1135 tools/perf/util/cs-etm.c cs_etm__copy_insn(etmq, tidq->trace_chan_id, tidq->packet, &sample); packet 1188 tools/perf/util/cs-etm.c sample.addr = cs_etm__first_executed_instr(tidq->packet); packet 1192 tools/perf/util/cs-etm.c sample.cpu = tidq->packet->cpu; packet 1346 tools/perf/util/cs-etm.c u64 instrs_executed = tidq->packet->instr_count; packet 1377 tools/perf/util/cs-etm.c tidq->packet, offset); packet 1412 tools/perf/util/cs-etm.c tmp = tidq->packet; packet 1413 tools/perf/util/cs-etm.c tidq->packet = tidq->prev_packet; packet 1484 tools/perf/util/cs-etm.c tmp = tidq->packet; packet 1485 tools/perf/util/cs-etm.c tidq->packet = tidq->prev_packet; packet 1553 tools/perf/util/cs-etm.c struct cs_etm_packet *packet, packet 1561 tools/perf/util/cs-etm.c switch (packet->isa) { packet 1627 tools/perf/util/cs-etm.c struct cs_etm_packet *packet = tidq->packet; packet 1631 tools/perf/util/cs-etm.c if (packet->exception_number == CS_ETMV3_EXC_SVC) packet 1640 tools/perf/util/cs-etm.c if (packet->exception_number == CS_ETMV4_EXC_CALL && packet 1652 tools/perf/util/cs-etm.c struct cs_etm_packet *packet = tidq->packet; packet 1655 tools/perf/util/cs-etm.c if (packet->exception_number == CS_ETMV3_EXC_DEBUG_HALT || packet 1656 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_ASYNC_DATA_ABORT || packet 1657 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_PE_RESET || packet 1658 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_IRQ || packet 1659 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_FIQ) packet 1663 tools/perf/util/cs-etm.c if (packet->exception_number == CS_ETMV4_EXC_RESET || packet 1664 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV4_EXC_DEBUG_HALT || packet 1665 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV4_EXC_SYSTEM_ERROR || packet 1666 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV4_EXC_INST_DEBUG || packet 1667 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV4_EXC_DATA_DEBUG || packet 1668 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV4_EXC_IRQ || packet 1669 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV4_EXC_FIQ) packet 1680 tools/perf/util/cs-etm.c struct cs_etm_packet *packet = tidq->packet; packet 1684 tools/perf/util/cs-etm.c if (packet->exception_number == CS_ETMV3_EXC_SMC || packet 1685 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_HYP || packet 1686 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_JAZELLE_THUMBEE || packet 1687 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_UNDEFINED_INSTR || packet 1688 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_PREFETCH_ABORT || packet 1689 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_DATA_FAULT || packet 1690 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV3_EXC_GENERIC) packet 1694 tools/perf/util/cs-etm.c if (packet->exception_number == CS_ETMV4_EXC_TRAP || packet 1695 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV4_EXC_ALIGNMENT || packet 1696 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV4_EXC_INST_FAULT || packet 1697 tools/perf/util/cs-etm.c packet->exception_number == CS_ETMV4_EXC_DATA_FAULT) packet 1704 tools/perf/util/cs-etm.c if (packet->exception_number == CS_ETMV4_EXC_CALL && packet 1716 tools/perf/util/cs-etm.c if (packet->exception_number > CS_ETMV4_EXC_FIQ && packet 1717 tools/perf/util/cs-etm.c packet->exception_number <= CS_ETMV4_EXC_END) packet 1727 tools/perf/util/cs-etm.c struct cs_etm_packet *packet = tidq->packet; packet 1733 tools/perf/util/cs-etm.c switch (packet->sample_type) { packet 1740 tools/perf/util/cs-etm.c if (packet->last_instr_type == OCSD_INSTR_BR && packet 1741 tools/perf/util/cs-etm.c packet->last_instr_subtype == OCSD_S_INSTR_NONE) { packet 1742 tools/perf/util/cs-etm.c packet->flags = PERF_IP_FLAG_BRANCH; packet 1744 tools/perf/util/cs-etm.c if (packet->last_instr_cond) packet 1745 tools/perf/util/cs-etm.c packet->flags |= PERF_IP_FLAG_CONDITIONAL; packet 1752 tools/perf/util/cs-etm.c if (packet->last_instr_type == OCSD_INSTR_BR && packet 1753 tools/perf/util/cs-etm.c packet->last_instr_subtype == OCSD_S_INSTR_BR_LINK) packet 1754 tools/perf/util/cs-etm.c packet->flags = PERF_IP_FLAG_BRANCH | packet 1761 tools/perf/util/cs-etm.c if (packet->last_instr_type == OCSD_INSTR_BR_INDIRECT && packet 1762 tools/perf/util/cs-etm.c packet->last_instr_subtype == OCSD_S_INSTR_BR_LINK) packet 1763 tools/perf/util/cs-etm.c packet->flags = PERF_IP_FLAG_BRANCH | packet 1771 tools/perf/util/cs-etm.c if (packet->last_instr_type == OCSD_INSTR_BR_INDIRECT && packet 1772 tools/perf/util/cs-etm.c packet->last_instr_subtype == OCSD_S_INSTR_V7_IMPLIED_RET) packet 1773 tools/perf/util/cs-etm.c packet->flags = PERF_IP_FLAG_BRANCH | packet 1781 tools/perf/util/cs-etm.c if (packet->last_instr_type == OCSD_INSTR_BR_INDIRECT && packet 1782 tools/perf/util/cs-etm.c packet->last_instr_subtype == OCSD_S_INSTR_NONE) packet 1783 tools/perf/util/cs-etm.c packet->flags = PERF_IP_FLAG_BRANCH | packet 1787 tools/perf/util/cs-etm.c if (packet->last_instr_type == OCSD_INSTR_BR_INDIRECT && packet 1788 tools/perf/util/cs-etm.c packet->last_instr_subtype == OCSD_S_INSTR_V8_RET) packet 1789 tools/perf/util/cs-etm.c packet->flags = PERF_IP_FLAG_BRANCH | packet 1811 tools/perf/util/cs-etm.c packet, packet->start_addr)) packet 1827 tools/perf/util/cs-etm.c ret = cs_etm__get_magic(packet->trace_chan_id, &magic); packet 1833 tools/perf/util/cs-etm.c packet->flags = PERF_IP_FLAG_BRANCH | packet 1841 tools/perf/util/cs-etm.c packet->flags = PERF_IP_FLAG_BRANCH | packet 1850 tools/perf/util/cs-etm.c packet->flags = PERF_IP_FLAG_BRANCH | packet 1862 tools/perf/util/cs-etm.c prev_packet->flags = packet->flags; packet 1942 tools/perf/util/cs-etm.c tidq->packet); packet 1961 tools/perf/util/cs-etm.c switch (tidq->packet->sample_type) { packet 140 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c struct intel_pt_pkt packet; packet 405 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c static uint64_t intel_pt_calc_ip(const struct intel_pt_pkt *packet, packet 410 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c switch (packet->count) { packet 413 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c packet->payload; packet 417 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c packet->payload; packet 420 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c ip = packet->payload; packet 427 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c packet->payload; packet 430 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c ip = packet->payload; packet 441 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->last_ip = intel_pt_calc_ip(&decoder->packet, decoder->last_ip); packet 453 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c intel_pt_log_packet(&decoder->packet, decoder->pkt_len, decoder->pos, packet 471 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->tx_flags = decoder->packet.payload & INTEL_PT_IN_TX; packet 568 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c ret = intel_pt_get_packet(buf, len, &decoder->packet, &decoder->pkt_ctx); packet 588 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c struct intel_pt_pkt packet; packet 622 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c ret = intel_pt_get_packet(buf, len, &pkt_info.packet, packet 630 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c } while (pkt_info.packet.type == INTEL_PT_PAD); packet 636 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c pkt_info.last_packet_type = pkt_info.packet.type; packet 683 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c switch (pkt_info->packet.type) { packet 708 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c mtc = pkt_info->packet.payload; packet 748 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c timestamp = pkt_info->packet.payload | packet 771 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c ctc = pkt_info->packet.payload; packet 772 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c fc = pkt_info->packet.count; packet 793 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c data->cycle_cnt += pkt_info->packet.payload; packet 797 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c cbr = pkt_info->packet.payload; packet 880 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->last_packet_type = decoder->packet.type; packet 895 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c &decoder->packet, &decoder->pkt_ctx); packet 908 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c } while (decoder->packet.type == INTEL_PT_PAD); packet 1223 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count == 0) { packet 1233 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count == 0) { packet 1317 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.type != INTEL_PT_TIP || packet 1318 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->packet.count == 0) { packet 1374 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c fup_tx_flags = decoder->packet.payload & packet 1379 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.type == INTEL_PT_FUP) { packet 1414 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c timestamp = intel_pt_8b_tsc(decoder->packet.payload, packet 1421 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c timestamp = decoder->packet.payload | packet 1497 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c uint32_t ctc = decoder->packet.payload; packet 1498 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c uint32_t fc = decoder->packet.count; packet 1533 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c mtc = decoder->packet.payload; packet 1581 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c unsigned int cbr = decoder->packet.payload & 0xff; packet 1583 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->cbr_payload = decoder->packet.payload; packet 1600 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->cycle_cnt += decoder->packet.payload; packet 1602 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->tot_cyc_cnt += decoder->packet.payload; packet 1632 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->blk_type = decoder->packet.payload; packet 1635 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->state.items.is_32_bit = decoder->packet.count; packet 1647 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c uint32_t id = decoder->packet.count; packet 1663 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->state.items.val[pos][id] = decoder->packet.payload; packet 1678 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c switch (decoder->packet.type) { packet 1723 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->exec_mode = decoder->packet.payload; packet 1727 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->cr3 = decoder->packet.payload & (BIT63 - 1); packet 1732 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count) packet 1777 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c switch (decoder->packet.type) { packet 1812 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count == 0) { packet 1828 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count == 0) { packet 1840 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count == 0) { packet 1849 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->cr3 = decoder->packet.payload & (BIT63 - 1); packet 1863 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->exec_mode = decoder->packet.payload; packet 1887 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c switch (decoder->packet.type) { packet 1889 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (!decoder->packet.count) packet 1891 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->tnt = decoder->packet; packet 1899 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count != 0) packet 1907 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count == 0) { packet 1923 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count != 0) packet 1929 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.count == 0) { packet 1988 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->cr3 = decoder->packet.payload & (BIT63 - 1); packet 2030 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->exec_mode = decoder->packet.payload; packet 2054 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->fup_ptw_payload = decoder->packet.payload; packet 2058 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.type == INTEL_PT_FUP) { packet 2071 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->state.ptw_payload = decoder->packet.payload; packet 2075 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->fup_mwait_payload = decoder->packet.payload; packet 2082 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->packet.payload; packet 2089 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->state.pwrx_payload = decoder->packet.payload; packet 2096 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.type == INTEL_PT_FUP) { packet 2115 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->state.pwrx_payload = decoder->packet.payload; packet 2136 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (decoder->packet.type == INTEL_PT_FUP) { packet 2153 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c return decoder->packet.count && packet 2154 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c (decoder->have_last_ip || decoder->packet.count == 3 || packet 2155 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->packet.count == 6); packet 2170 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c switch (decoder->packet.type) { packet 2224 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->cr3 = decoder->packet.payload & (BIT63 - 1); packet 2228 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->exec_mode = decoder->packet.payload; packet 2286 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c switch (decoder->packet.type) { packet 2343 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->cr3 = decoder->packet.payload & (BIT63 - 1); packet 2347 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->exec_mode = decoder->packet.payload; packet 2754 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c struct intel_pt_pkt packet; packet 2758 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c ret = intel_pt_get_packet(buf, len, &packet, &ctx); packet 2761 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (packet.type == INTEL_PT_TSC) { packet 2762 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c *tsc = packet.payload; packet 2766 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (packet.type == INTEL_PT_PSBEND) packet 97 tools/perf/util/intel-pt-decoder/intel-pt-log.c void __intel_pt_log_packet(const struct intel_pt_pkt *packet, int pkt_len, packet 106 tools/perf/util/intel-pt-decoder/intel-pt-log.c intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); packet 21 tools/perf/util/intel-pt-decoder/intel-pt-log.h void __intel_pt_log_packet(const struct intel_pt_pkt *packet, int pkt_len, packet 77 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 93 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_TNT; packet 94 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->count = count; packet 95 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = payload << 1; packet 100 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 107 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_PIP; packet 109 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = payload >> 1; packet 111 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload |= NR_FLAG; packet 116 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c static int intel_pt_get_tracestop(struct intel_pt_pkt *packet) packet 118 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_TRACESTOP; packet 123 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 127 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_CBR; packet 128 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = le16_to_cpu(*(uint16_t *)(buf + 2)); packet 133 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 143 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_VMCS; packet 144 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->count = count; packet 145 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c memcpy_le64(&packet->payload, buf + 2, count); packet 150 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c static int intel_pt_get_ovf(struct intel_pt_pkt *packet) packet 152 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_OVF; packet 157 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 169 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_PSB; packet 173 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c static int intel_pt_get_psbend(struct intel_pt_pkt *packet) packet 175 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_PSBEND; packet 180 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 185 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_TMA; packet 186 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = buf[2] | (buf[3] << 8); packet 187 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->count = buf[5] | ((buf[6] & BIT(0)) << 8); packet 191 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c static int intel_pt_get_pad(struct intel_pt_pkt *packet) packet 193 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_PAD; packet 198 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 202 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_MNT; packet 203 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c memcpy_le64(&packet->payload, buf + 3, 8); packet 209 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 216 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_mnt(buf, len, packet); packet 223 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 225 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->count = (buf[1] >> 5) & 0x3; packet 226 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = buf[1] & BIT(7) ? INTEL_PT_PTWRITE_IP : packet 229 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c switch (packet->count) { packet 233 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = le32_to_cpu(*(uint32_t *)(buf + 2)); packet 238 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = le64_to_cpu(*(uint64_t *)(buf + 2)); packet 245 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c static int intel_pt_get_exstop(struct intel_pt_pkt *packet) packet 247 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_EXSTOP; packet 251 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c static int intel_pt_get_exstop_ip(struct intel_pt_pkt *packet) packet 253 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_EXSTOP_IP; packet 258 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 262 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_MWAIT; packet 263 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = le64_to_cpu(*(uint64_t *)(buf + 2)); packet 268 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 272 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_PWRE; packet 273 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c memcpy_le64(&packet->payload, buf + 2, 2); packet 278 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 282 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_PWRX; packet 283 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c memcpy_le64(&packet->payload, buf + 2, 5); packet 288 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 292 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_BBP; packet 293 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->count = buf[2] >> 7; packet 294 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = buf[2] & 0x1f; packet 299 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 303 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_BIP; packet 304 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->count = buf[0] >> 3; packet 305 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c memcpy_le64(&packet->payload, buf + 1, 4); packet 310 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 314 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_BIP; packet 315 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->count = buf[0] >> 3; packet 316 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c memcpy_le64(&packet->payload, buf + 1, 8); packet 320 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c static int intel_pt_get_bep(size_t len, struct intel_pt_pkt *packet) packet 324 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_BEP; packet 328 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c static int intel_pt_get_bep_ip(size_t len, struct intel_pt_pkt *packet) packet 332 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_BEP_IP; packet 337 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 343 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_ptwrite(buf, len, packet); packet 347 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_long_tnt(buf, len, packet); packet 349 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_pip(buf, len, packet); packet 351 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_tracestop(packet); packet 353 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_cbr(buf, len, packet); packet 355 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_vmcs(buf, len, packet); packet 357 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_ovf(packet); packet 359 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_psb(buf, len, packet); packet 361 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_psbend(packet); packet 363 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_tma(buf, len, packet); packet 365 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_3byte(buf, len, packet); packet 367 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_exstop(packet); packet 369 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_exstop_ip(packet); packet 371 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_mwait(buf, len, packet); packet 373 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_pwre(buf, len, packet); packet 375 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_pwrx(buf, len, packet); packet 377 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_bbp(buf, len, packet); packet 379 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_bep(len, packet); packet 381 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_bep_ip(len, packet); packet 388 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 398 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_TNT; packet 399 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->count = count; packet 400 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = (uint64_t)byte << 57; packet 406 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c size_t len, struct intel_pt_pkt *packet) packet 422 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_CYC; packet 423 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = payload; packet 429 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 433 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->count = byte >> 5; packet 435 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c switch (packet->count) { packet 443 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = le16_to_cpu(*(uint16_t *)(buf + 1)); packet 449 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = le32_to_cpu(*(uint32_t *)(buf + 1)); packet 456 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c memcpy_le64(&packet->payload, buf + 1, 6); packet 462 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = le64_to_cpu(*(uint64_t *)(buf + 1)); packet 468 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = type; packet 474 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 481 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_MODE_EXEC; packet 484 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = 16; packet 487 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = 64; packet 490 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = 32; packet 497 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_MODE_TSX; packet 500 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = buf[1] & 3; packet 510 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 514 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_TSC; packet 515 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c memcpy_le64(&packet->payload, buf + 1, 7); packet 520 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet) packet 524 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->type = INTEL_PT_MTC; packet 525 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet->payload = buf[1]; packet 530 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet, packet 535 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c memset(packet, 0, sizeof(struct intel_pt_pkt)); packet 547 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_bip_4(buf, len, packet); packet 551 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_bip_8(buf, len, packet); packet 559 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_pad(packet); packet 561 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_ext(buf, len, packet); packet 562 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_short_tnt(byte, packet); packet 566 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_cyc(byte, buf, len, packet); packet 570 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_ip(INTEL_PT_TIP, byte, buf, len, packet); packet 573 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet); packet 576 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c packet); packet 578 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_ip(INTEL_PT_FUP, byte, buf, len, packet); packet 582 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_mode(buf, len, packet); packet 584 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_tsc(buf, len, packet); packet 586 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c return intel_pt_get_mtc(buf, len, packet); packet 595 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c void intel_pt_upd_pkt_ctx(const struct intel_pt_pkt *packet, packet 598 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c switch (packet->type) { packet 634 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c if (packet->count) packet 645 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c struct intel_pt_pkt *packet, enum intel_pt_pkt_ctx *ctx) packet 649 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c ret = intel_pt_do_get_packet(buf, len, packet, *ctx); packet 653 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c intel_pt_upd_pkt_ctx(packet, ctx); packet 658 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c int intel_pt_pkt_desc(const struct intel_pt_pkt *packet, char *buf, packet 662 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c unsigned long long payload = packet->payload; packet 663 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c const char *name = intel_pt_pkt_name(packet->type); packet 665 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c switch (packet->type) { packet 681 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c for (i = 0; i < packet->count; i++) { packet 692 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c ret = snprintf(buf, blen, " (%d)", packet->count); packet 702 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c if (!(packet->count)) packet 714 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c (unsigned)payload, packet->count); packet 722 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c nr = packet->payload & NR_FLAG ? 1 : 0; packet 754 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c name, packet->count ? "4" : "8", payload); packet 757 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c name, packet->count, payload); packet 762 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c name, payload, packet->count); packet 79 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.h struct intel_pt_pkt *packet, packet 82 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.h void intel_pt_upd_pkt_ctx(const struct intel_pt_pkt *packet, packet 85 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.h int intel_pt_pkt_desc(const struct intel_pt_pkt *packet, char *buf, size_t len); packet 182 tools/perf/util/intel-pt.c struct intel_pt_pkt packet; packet 194 tools/perf/util/intel-pt.c ret = intel_pt_get_packet(buf, len, &packet, &ctx); packet 206 tools/perf/util/intel-pt.c ret = intel_pt_pkt_desc(&packet, desc, packet 375 tools/testing/selftests/net/psock_tpacket.c char packet[1024]; packet 416 tools/testing/selftests/net/psock_tpacket.c create_payload(packet, &packet_len); packet 431 tools/testing/selftests/net/psock_tpacket.c sizeof(struct sockaddr_ll), packet, packet 441 tools/testing/selftests/net/psock_tpacket.c sizeof(struct sockaddr_ll), packet, packet 453 tools/testing/selftests/net/psock_tpacket.c sizeof(struct sockaddr_ll), packet, packet 479 tools/testing/selftests/net/psock_tpacket.c while ((ret = recvfrom(rcv_sock, packet, sizeof(packet), packet 483 tools/testing/selftests/net/psock_tpacket.c test_payload(packet, ret);