arch/alpha/kernel/err_ev7.c
237
struct ev7_pal_subpacket *packet;
arch/alpha/kernel/err_ev7.c
246
packet = (struct ev7_pal_subpacket *)header->by_type.raw.data_start;
arch/alpha/kernel/err_ev7.c
252
packet->by_type.logout.whami,
arch/alpha/kernel/err_ev7.c
253
packet->by_type.logout.rbox_whami);
arch/alpha/kernel/err_ev7.c
254
el_print_timestamp(&packet->by_type.logout.timestamp);
arch/alpha/kernel/err_ev7.c
258
packet->by_type.logout.exc_addr,
arch/alpha/kernel/err_ev7.c
259
packet->by_type.logout.halt_code);
arch/alpha/kernel/err_ev7.c
261
packet->by_type.logout.subpacket_count);
arch/mips/include/asm/octeon/cvmx-pko-defs.h
1217
uint64_t packet:6;
arch/mips/include/asm/octeon/cvmx-pko-defs.h
1223
uint64_t packet:6;
arch/mips/include/asm/octeon/cvmx-pko-defs.h
1238
uint64_t packet:6;
arch/mips/include/asm/octeon/cvmx-pko-defs.h
1244
uint64_t packet:6;
arch/mips/include/asm/octeon/cvmx-pko.h
421
union cvmx_buf_ptr packet,
arch/mips/include/asm/octeon/cvmx-pko.h
429
pko_command.u64, packet.u64);
arch/mips/include/asm/octeon/cvmx-pko.h
464
union cvmx_buf_ptr packet,
arch/mips/include/asm/octeon/cvmx-pko.h
473
pko_command.u64, packet.u64, addr);
arch/um/drivers/mconsole_user.c
184
struct mconsole_notify packet;
arch/um/drivers/mconsole_user.c
204
packet.magic = MCONSOLE_MAGIC;
arch/um/drivers/mconsole_user.c
205
packet.version = MCONSOLE_VERSION;
arch/um/drivers/mconsole_user.c
206
packet.type = type;
arch/um/drivers/mconsole_user.c
207
len = (len > sizeof(packet.data)) ? sizeof(packet.data) : len;
arch/um/drivers/mconsole_user.c
208
packet.len = len;
arch/um/drivers/mconsole_user.c
209
memcpy(packet.data, data, len);
arch/um/drivers/mconsole_user.c
212
len = sizeof(packet) + packet.len - sizeof(packet.data);
arch/um/drivers/mconsole_user.c
213
n = sendto(notify_sock, &packet, len, 0, (struct sockaddr *) &target,
drivers/firewire/core-card.c
686
static void dummy_send_request(struct fw_card *card, struct fw_packet *packet)
drivers/firewire/core-card.c
688
packet->callback(packet, card, RCODE_CANCELLED);
drivers/firewire/core-card.c
691
static void dummy_send_response(struct fw_card *card, struct fw_packet *packet)
drivers/firewire/core-card.c
693
packet->callback(packet, card, RCODE_CANCELLED);
drivers/firewire/core-card.c
696
static int dummy_cancel_packet(struct fw_card *card, struct fw_packet *packet)
drivers/firewire/core-cdev.c
1536
static void outbound_phy_packet_callback(struct fw_packet *packet,
drivers/firewire/core-cdev.c
1540
container_of(packet, struct outbound_phy_packet_event, p);
drivers/firewire/core-cdev.c
1544
trace_async_phy_outbound_complete((uintptr_t)packet, card->index, status, packet->generation,
drivers/firewire/core-cdev.c
1545
packet->timestamp);
drivers/firewire/core-cdev.c
1579
pp->data[0] = packet->timestamp;
drivers/firewire/core-cdev.c
1589
pp->tstamp = packet->timestamp;
drivers/firewire/core-iso.c
199
struct fw_iso_packet *packet,
drivers/firewire/core-iso.c
203
trace_isoc_outbound_queue(ctx, payload, packet);
drivers/firewire/core-iso.c
204
trace_isoc_inbound_single_queue(ctx, payload, packet);
drivers/firewire/core-iso.c
205
trace_isoc_inbound_multiple_queue(ctx, payload, packet);
drivers/firewire/core-iso.c
207
return ctx->card->driver->queue_iso(ctx, packet, buffer, payload);
drivers/firewire/core-transaction.c
113
t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp, NULL, 0,
drivers/firewire/core-transaction.c
1199
card->driver->cancel_packet(card, &t->packet);
drivers/firewire/core-transaction.c
1204
t->callback.with_tstamp(card, rcode, t->packet.timestamp, p->timestamp, data,
drivers/firewire/core-transaction.c
135
if (card->driver->cancel_packet(card, &transaction->packet) == 0)
drivers/firewire/core-transaction.c
143
if (transaction->packet.ack == 0) {
drivers/firewire/core-transaction.c
145
tstamp = transaction->packet.timestamp;
drivers/firewire/core-transaction.c
171
t->callback.with_tstamp(card, RCODE_CANCELLED, t->packet.timestamp,
drivers/firewire/core-transaction.c
189
static void transmit_complete_callback(struct fw_packet *packet,
drivers/firewire/core-transaction.c
193
container_of(packet, struct fw_transaction, packet);
drivers/firewire/core-transaction.c
195
trace_async_request_outbound_complete((uintptr_t)t, card->index, packet->generation,
drivers/firewire/core-transaction.c
196
packet->speed, status, packet->timestamp);
drivers/firewire/core-transaction.c
200
close_transaction(t, card, RCODE_COMPLETE, packet->timestamp);
drivers/firewire/core-transaction.c
210
compute_split_timeout_timestamp(card, packet->timestamp) & 0xffff;
drivers/firewire/core-transaction.c
223
close_transaction(t, card, RCODE_BUSY, packet->timestamp);
drivers/firewire/core-transaction.c
226
close_transaction(t, card, RCODE_DATA_ERROR, packet->timestamp);
drivers/firewire/core-transaction.c
229
close_transaction(t, card, RCODE_TYPE_ERROR, packet->timestamp);
drivers/firewire/core-transaction.c
236
close_transaction(t, card, status, packet->timestamp);
drivers/firewire/core-transaction.c
241
static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel,
drivers/firewire/core-transaction.c
250
packet->header[0] = destination_id;
drivers/firewire/core-transaction.c
251
isoc_header_set_data_length(packet->header, length);
drivers/firewire/core-transaction.c
252
isoc_header_set_tcode(packet->header, TCODE_STREAM_DATA);
drivers/firewire/core-transaction.c
253
packet->header_length = 4;
drivers/firewire/core-transaction.c
254
packet->payload = payload;
drivers/firewire/core-transaction.c
255
packet->payload_length = length;
drivers/firewire/core-transaction.c
266
async_header_set_retry(packet->header, RETRY_X);
drivers/firewire/core-transaction.c
267
async_header_set_tlabel(packet->header, tlabel);
drivers/firewire/core-transaction.c
268
async_header_set_tcode(packet->header, tcode);
drivers/firewire/core-transaction.c
269
async_header_set_destination(packet->header, destination_id);
drivers/firewire/core-transaction.c
270
async_header_set_source(packet->header, source_id);
drivers/firewire/core-transaction.c
271
async_header_set_offset(packet->header, offset);
drivers/firewire/core-transaction.c
275
async_header_set_quadlet_data(packet->header, *(u32 *)payload);
drivers/firewire/core-transaction.c
276
packet->header_length = 16;
drivers/firewire/core-transaction.c
277
packet->payload_length = 0;
drivers/firewire/core-transaction.c
282
async_header_set_data_length(packet->header, length);
drivers/firewire/core-transaction.c
283
async_header_set_extended_tcode(packet->header, ext_tcode);
drivers/firewire/core-transaction.c
284
packet->header_length = 16;
drivers/firewire/core-transaction.c
285
packet->payload = payload;
drivers/firewire/core-transaction.c
286
packet->payload_length = length;
drivers/firewire/core-transaction.c
290
packet->header_length = 12;
drivers/firewire/core-transaction.c
291
packet->payload_length = 0;
drivers/firewire/core-transaction.c
295
async_header_set_data_length(packet->header, length);
drivers/firewire/core-transaction.c
296
async_header_set_extended_tcode(packet->header, ext_tcode);
drivers/firewire/core-transaction.c
297
packet->header_length = 16;
drivers/firewire/core-transaction.c
298
packet->payload_length = 0;
drivers/firewire/core-transaction.c
305
packet->speed = speed;
drivers/firewire/core-transaction.c
306
packet->generation = generation;
drivers/firewire/core-transaction.c
307
packet->ack = 0;
drivers/firewire/core-transaction.c
308
packet->payload_mapped = false;
drivers/firewire/core-transaction.c
423
t->packet.callback = transmit_complete_callback;
drivers/firewire/core-transaction.c
429
fw_fill_request(&t->packet, tcode, t->tlabel, destination_id, card->node_id,
drivers/firewire/core-transaction.c
440
t->packet.header, payload,
drivers/firewire/core-transaction.c
443
card->driver->send_request(card, &t->packet);
drivers/firewire/core-transaction.c
502
static void transmit_phy_packet_callback(struct fw_packet *packet,
drivers/firewire/core-transaction.c
505
trace_async_phy_outbound_complete((uintptr_t)packet, card->index, packet->generation, status,
drivers/firewire/core-transaction.c
506
packet->timestamp);
drivers/firewire/core-transaction.c
735
static void free_response_callback(struct fw_packet *packet,
drivers/firewire/core-transaction.c
738
struct fw_request *request = container_of(packet, struct fw_request, response);
drivers/firewire/core-transaction.c
740
trace_async_response_outbound_complete((uintptr_t)request, card->index, packet->generation,
drivers/firewire/core-transaction.c
741
packet->speed, status, packet->timestamp);
drivers/firewire/core-transaction.c
76
t->callback.with_tstamp(card, RCODE_CANCELLED, t->packet.timestamp, 0,
drivers/firewire/core.h
113
struct fw_iso_packet *packet,
drivers/firewire/core.h
292
void fw_core_handle_response(struct fw_card *card, struct fw_packet *packet);
drivers/firewire/core.h
83
void (*send_request)(struct fw_card *card, struct fw_packet *packet);
drivers/firewire/core.h
84
void (*send_response)(struct fw_card *card, struct fw_packet *packet);
drivers/firewire/core.h
86
int (*cancel_packet)(struct fw_card *card, struct fw_packet *packet);
drivers/firewire/net.c
1109
struct fw_iso_packet packet;
drivers/firewire/net.c
1153
packet.payload_length = max_receive;
drivers/firewire/net.c
1154
packet.interrupt = 1;
drivers/firewire/net.c
1155
packet.skip = 0;
drivers/firewire/net.c
1156
packet.tag = 3;
drivers/firewire/net.c
1157
packet.sy = 0;
drivers/firewire/net.c
1158
packet.header_length = IEEE1394_GASP_HDR_SIZE;
drivers/firewire/net.c
1162
retval = fw_iso_context_queue(context, &packet,
drivers/firewire/net.c
752
struct fw_iso_packet packet;
drivers/firewire/net.c
785
packet.payload_length = dev->rcv_buffer_size;
drivers/firewire/net.c
786
packet.interrupt = 1;
drivers/firewire/net.c
787
packet.skip = 0;
drivers/firewire/net.c
788
packet.tag = 3;
drivers/firewire/net.c
789
packet.sy = 0;
drivers/firewire/net.c
790
packet.header_length = IEEE1394_GASP_HDR_SIZE;
drivers/firewire/net.c
794
retval = fw_iso_context_queue(dev->broadcast_rcv_context, &packet,
drivers/firewire/nosy.c
122
buffer->head = (struct packet *) buffer->data;
drivers/firewire/nosy.c
123
buffer->tail = (struct packet *) buffer->data;
drivers/firewire/nosy.c
163
buffer->head = (struct packet *) &buffer->head->data[length];
drivers/firewire/nosy.c
171
buffer->head = (struct packet *) &buffer->data[length - split];
drivers/firewire/nosy.c
179
atomic_sub(sizeof(struct packet) + length, &buffer->size);
drivers/firewire/nosy.c
192
atomic_read(&buffer->size) + sizeof(struct packet) + length) {
drivers/firewire/nosy.c
202
buffer->tail = (struct packet *) &buffer->tail->data[length];
drivers/firewire/nosy.c
208
buffer->tail = (struct packet *) &buffer->data[length - split];
drivers/firewire/nosy.c
213
atomic_add(sizeof(struct packet) + length, &buffer->size);
drivers/firewire/nosy.c
65
struct packet *head, *tail;
drivers/firewire/ohci.c
1184
struct fw_packet *packet;
drivers/firewire/ohci.c
1192
static int at_context_queue_packet(struct at_context *ctx, struct fw_packet *packet)
drivers/firewire/ohci.c
1204
packet->ack = RCODE_SEND_ERROR;
drivers/firewire/ohci.c
1209
d[0].res_count = cpu_to_le16(packet->timestamp);
drivers/firewire/ohci.c
1211
tcode = async_header_get_tcode(packet->header);
drivers/firewire/ohci.c
1224
ohci1394_at_data_set_speed(header, packet->speed);
drivers/firewire/ohci.c
1225
ohci1394_at_data_set_tlabel(header, async_header_get_tlabel(packet->header));
drivers/firewire/ohci.c
1226
ohci1394_at_data_set_retry(header, async_header_get_retry(packet->header));
drivers/firewire/ohci.c
1230
async_header_get_destination(packet->header));
drivers/firewire/ohci.c
1233
ohci1394_at_data_set_rcode(header, async_header_get_rcode(packet->header));
drivers/firewire/ohci.c
1236
async_header_get_offset(packet->header));
drivers/firewire/ohci.c
1240
header[3] = cpu_to_le32(packet->header[3]);
drivers/firewire/ohci.c
1242
header[3] = (__force __le32) packet->header[3];
drivers/firewire/ohci.c
1244
d[0].req_count = cpu_to_le16(packet->header_length);
drivers/firewire/ohci.c
1247
ohci1394_at_data_set_speed(header, packet->speed);
drivers/firewire/ohci.c
1250
header[1] = cpu_to_le32(packet->header[1]);
drivers/firewire/ohci.c
1251
header[2] = cpu_to_le32(packet->header[2]);
drivers/firewire/ohci.c
1254
if (is_ping_packet(&packet->header[1]))
drivers/firewire/ohci.c
1259
ohci1394_it_data_set_speed(header, packet->speed);
drivers/firewire/ohci.c
1260
ohci1394_it_data_set_tag(header, isoc_header_get_tag(packet->header[0]));
drivers/firewire/ohci.c
1261
ohci1394_it_data_set_channel(header, isoc_header_get_channel(packet->header[0]));
drivers/firewire/ohci.c
1263
ohci1394_it_data_set_sync(header, isoc_header_get_sy(packet->header[0]));
drivers/firewire/ohci.c
1265
ohci1394_it_data_set_data_length(header, isoc_header_get_data_length(packet->header[0]));
drivers/firewire/ohci.c
1272
packet->ack = RCODE_SEND_ERROR;
drivers/firewire/ohci.c
1278
driver_data->packet = packet;
drivers/firewire/ohci.c
1279
packet->driver_data = driver_data;
drivers/firewire/ohci.c
1281
if (packet->payload_length > 0) {
drivers/firewire/ohci.c
1282
if (packet->payload_length > sizeof(driver_data->inline_data)) {
drivers/firewire/ohci.c
1284
packet->payload,
drivers/firewire/ohci.c
1285
packet->payload_length,
drivers/firewire/ohci.c
1288
packet->ack = RCODE_SEND_ERROR;
drivers/firewire/ohci.c
1291
packet->payload_bus = payload_bus;
drivers/firewire/ohci.c
1292
packet->payload_mapped = true;
drivers/firewire/ohci.c
1294
memcpy(driver_data->inline_data, packet->payload,
drivers/firewire/ohci.c
1295
packet->payload_length);
drivers/firewire/ohci.c
1299
d[2].req_count = cpu_to_le16(packet->payload_length);
drivers/firewire/ohci.c
1313
if (ohci->generation != packet->generation) {
drivers/firewire/ohci.c
1314
if (packet->payload_mapped)
drivers/firewire/ohci.c
1316
packet->payload_length, DMA_TO_DEVICE);
drivers/firewire/ohci.c
1317
packet->ack = RCODE_GENERATION;
drivers/firewire/ohci.c
1361
struct fw_packet *packet;
drivers/firewire/ohci.c
1369
packet = driver_data->packet;
drivers/firewire/ohci.c
1370
if (packet == NULL)
drivers/firewire/ohci.c
1374
if (packet->payload_mapped)
drivers/firewire/ohci.c
1375
dma_unmap_single(ohci->card.device, packet->payload_bus,
drivers/firewire/ohci.c
1376
packet->payload_length, DMA_TO_DEVICE);
drivers/firewire/ohci.c
1379
packet->timestamp = le16_to_cpu(last->res_count);
drivers/firewire/ohci.c
1384
packet->ack = RCODE_CANCELLED;
drivers/firewire/ohci.c
1392
packet->ack = RCODE_GENERATION;
drivers/firewire/ohci.c
1397
packet->ack = RCODE_GENERATION;
drivers/firewire/ohci.c
1403
packet->ack = RCODE_NO_ACK;
drivers/firewire/ohci.c
1414
packet->ack = evt - 0x10;
drivers/firewire/ohci.c
1419
packet->ack = RCODE_GENERATION;
drivers/firewire/ohci.c
1427
packet->generation,
drivers/firewire/ohci.c
1428
async_header_get_destination(packet->header),
drivers/firewire/ohci.c
1441
packet->ack = ACK_PENDING;
drivers/firewire/ohci.c
1446
packet->ack = RCODE_SEND_ERROR;
drivers/firewire/ohci.c
1450
packet->callback(packet, &ohci->card, packet->ack);
drivers/firewire/ohci.c
1458
struct fw_packet *packet, u32 csr)
drivers/firewire/ohci.c
1463
tcode = async_header_get_tcode(packet->header);
drivers/firewire/ohci.c
1465
length = async_header_get_data_length(packet->header);
drivers/firewire/ohci.c
1471
fw_fill_response(&response, packet->header,
drivers/firewire/ohci.c
1474
fw_fill_response(&response, packet->header,
drivers/firewire/ohci.c
1477
fw_fill_response(&response, packet->header, RCODE_COMPLETE,
drivers/firewire/ohci.c
1487
struct fw_packet *packet, u32 csr)
drivers/firewire/ohci.c
1494
tcode = async_header_get_tcode(packet->header);
drivers/firewire/ohci.c
1495
length = async_header_get_data_length(packet->header);
drivers/firewire/ohci.c
1496
payload = packet->payload;
drivers/firewire/ohci.c
1497
ext_tcode = async_header_get_extended_tcode(packet->header);
drivers/firewire/ohci.c
1507
fw_fill_response(&response, packet->header,
drivers/firewire/ohci.c
1521
fw_fill_response(&response, packet->header,
drivers/firewire/ohci.c
1528
fw_fill_response(&response, packet->header, RCODE_BUSY, NULL, 0);
drivers/firewire/ohci.c
1536
static void handle_local_request(struct at_context *ctx, struct fw_packet *packet)
drivers/firewire/ohci.c
1542
packet->ack = ACK_PENDING;
drivers/firewire/ohci.c
1543
packet->callback(packet, &ohci->card, packet->ack);
drivers/firewire/ohci.c
1546
offset = async_header_get_offset(packet->header);
drivers/firewire/ohci.c
1551
handle_local_rom(ohci, packet, csr);
drivers/firewire/ohci.c
1557
handle_local_lock(ohci, packet, csr);
drivers/firewire/ohci.c
1561
fw_core_handle_request(&ohci->card, packet);
drivers/firewire/ohci.c
1563
fw_core_handle_response(&ohci->card, packet);
drivers/firewire/ohci.c
1568
packet->ack = ACK_COMPLETE;
drivers/firewire/ohci.c
1569
packet->callback(packet, &ohci->card, packet->ack);
drivers/firewire/ohci.c
1573
static void at_context_transmit(struct at_context *ctx, struct fw_packet *packet)
drivers/firewire/ohci.c
1581
if (async_header_get_destination(packet->header) == ohci->node_id &&
drivers/firewire/ohci.c
1582
ohci->generation == packet->generation) {
drivers/firewire/ohci.c
1586
packet->timestamp = cycle_time_to_ohci_tstamp(get_cycle_time(ohci));
drivers/firewire/ohci.c
1588
handle_local_request(ctx, packet);
drivers/firewire/ohci.c
1592
ret = at_context_queue_packet(ctx, packet);
drivers/firewire/ohci.c
1597
packet->timestamp = cycle_time_to_ohci_tstamp(get_cycle_time(ohci));
drivers/firewire/ohci.c
1599
packet->callback(packet, &ohci->card, packet->ack);
drivers/firewire/ohci.c
2551
static void ohci_send_request(struct fw_card *card, struct fw_packet *packet)
drivers/firewire/ohci.c
2555
at_context_transmit(&ohci->at_request_ctx, packet);
drivers/firewire/ohci.c
2558
static void ohci_send_response(struct fw_card *card, struct fw_packet *packet)
drivers/firewire/ohci.c
2562
at_context_transmit(&ohci->at_response_ctx, packet);
drivers/firewire/ohci.c
2565
static int ohci_cancel_packet(struct fw_card *card, struct fw_packet *packet)
drivers/firewire/ohci.c
2569
struct driver_data *driver_data = packet->driver_data;
drivers/firewire/ohci.c
2577
if (packet->ack != 0)
drivers/firewire/ohci.c
2580
if (packet->payload_mapped)
drivers/firewire/ohci.c
2581
dma_unmap_single(ohci->card.device, packet->payload_bus,
drivers/firewire/ohci.c
2582
packet->payload_length, DMA_TO_DEVICE);
drivers/firewire/ohci.c
2584
driver_data->packet = NULL;
drivers/firewire/ohci.c
2585
packet->ack = RCODE_CANCELLED;
drivers/firewire/ohci.c
2588
packet->timestamp = cycle_time_to_ohci_tstamp(get_cycle_time(ohci));
drivers/firewire/ohci.c
2590
packet->callback(packet, &ohci->card, packet->ack);
drivers/firewire/ohci.c
3210
struct fw_iso_packet *packet,
drivers/firewire/ohci.c
3222
p = packet;
drivers/firewire/ohci.c
3314
struct fw_iso_packet *packet,
drivers/firewire/ohci.c
3329
packet_count = packet->header_length / ctx->base.header_size;
drivers/firewire/ohci.c
3336
payload_per_buffer = packet->payload_length / packet_count;
drivers/firewire/ohci.c
3348
if (packet->skip && i == 0)
drivers/firewire/ohci.c
3385
if (packet->interrupt && i == packet_count - 1)
drivers/firewire/ohci.c
3395
struct fw_iso_packet *packet,
drivers/firewire/ohci.c
3405
rest = packet->payload_length;
drivers/firewire/ohci.c
3420
if (packet->skip && i == 0)
drivers/firewire/ohci.c
3422
if (packet->interrupt && i == z - 1)
drivers/firewire/ohci.c
3451
struct fw_iso_packet *packet,
drivers/firewire/ohci.c
3461
return queue_iso_transmit(ctx, packet, buffer, payload);
drivers/firewire/ohci.c
3463
return queue_iso_packet_per_buffer(ctx, packet, buffer, payload);
drivers/firewire/ohci.c
3465
return queue_iso_buffer_fill(ctx, packet, buffer, payload);
drivers/firmware/raspberrypi.c
187
u32 packet;
drivers/firmware/raspberrypi.c
190
&packet, sizeof(packet));
drivers/firmware/raspberrypi.c
196
date_and_time = packet;
drivers/firmware/raspberrypi.c
203
u32 packet;
drivers/firmware/raspberrypi.c
205
&packet, sizeof(packet));
drivers/gpio/gpio-ljca.c
100
struct ljca_gpio_packet *packet =
drivers/gpio/gpio-ljca.c
105
packet->num = 1;
drivers/gpio/gpio-ljca.c
106
packet->item[0].index = gpio_id;
drivers/gpio/gpio-ljca.c
107
ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_READ, (u8 *)packet,
drivers/gpio/gpio-ljca.c
108
struct_size(packet, item, packet->num),
drivers/gpio/gpio-ljca.c
111
if (ret <= 0 || ack_packet->num != packet->num) {
drivers/gpio/gpio-ljca.c
124
struct ljca_gpio_packet *packet =
drivers/gpio/gpio-ljca.c
129
packet->num = 1;
drivers/gpio/gpio-ljca.c
130
packet->item[0].index = gpio_id;
drivers/gpio/gpio-ljca.c
131
packet->item[0].value = value & 1;
drivers/gpio/gpio-ljca.c
133
ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_WRITE, (u8 *)packet,
drivers/gpio/gpio-ljca.c
134
struct_size(packet, item, packet->num), NULL, 0);
drivers/gpio/gpio-ljca.c
252
struct ljca_gpio_packet *packet =
drivers/gpio/gpio-ljca.c
257
packet->num = 1;
drivers/gpio/gpio-ljca.c
258
packet->item[0].index = gpio_id;
drivers/gpio/gpio-ljca.c
259
packet->item[0].value = 0;
drivers/gpio/gpio-ljca.c
263
(u8 *)packet, struct_size(packet, item, packet->num),
drivers/gpio/gpio-ljca.c
287
const struct ljca_gpio_packet *packet = evt_data;
drivers/gpio/gpio-ljca.c
294
for (i = 0; i < packet->num; i++) {
drivers/gpio/gpio-ljca.c
296
packet->item[i].index);
drivers/gpio/gpio-ljca.c
297
set_bit(packet->item[i].index, ljca_gpio->reenable_irqs);
drivers/gpio/gpio-ljca.c
80
struct ljca_gpio_packet *packet =
drivers/gpio/gpio-ljca.c
85
packet->num = 1;
drivers/gpio/gpio-ljca.c
86
packet->item[0].index = gpio_id;
drivers/gpio/gpio-ljca.c
87
packet->item[0].value = config | ljca_gpio->connect_mode[gpio_id];
drivers/gpio/gpio-ljca.c
89
ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_CONFIG, (u8 *)packet,
drivers/gpio/gpio-ljca.c
90
struct_size(packet, item, packet->num), NULL, 0);
drivers/gpu/drm/adp/adp-mipi.c
134
struct mipi_dsi_packet packet;
drivers/gpu/drm/adp/adp-mipi.c
137
ret = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/adp/adp-mipi.c
143
ret = adp_dsi_write(adp, &packet);
drivers/gpu/drm/adp/adp-mipi.c
153
nb_bytes = packet.size;
drivers/gpu/drm/adp/adp-mipi.c
61
const struct mipi_dsi_packet *packet)
drivers/gpu/drm/adp/adp-mipi.c
63
const u8 *tx_buf = packet->payload;
drivers/gpu/drm/adp/adp-mipi.c
64
int len = packet->payload_length, pld_data_bytes = sizeof(u32), ret;
drivers/gpu/drm/adp/adp-mipi.c
92
memcpy(&word, packet->header, sizeof(packet->header));
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
101
packet = (struct pm4_mes_map_process_aldebaran *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
103
packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
107
packet->bitfields2.exec_cleaner_shader = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
108
packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
109
packet->bitfields2.process_quantum = 10;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
110
packet->bitfields2.pasid = pdd->pasid;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
111
packet->bitfields14.gds_size = qpd->gds_size & 0x3F;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
112
packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
113
packet->bitfields14.num_gws = (qpd->mapped_gws_queue) ? qpd->num_gws : 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
114
packet->bitfields14.num_oac = qpd->num_oac;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
115
packet->bitfields14.sdma_enable = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
116
packet->bitfields14.num_queues = (qpd->is_debug) ? 0 : qpd->queue_count;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
117
packet->spi_gdbg_per_vmid_cntl = pdd->spi_dbg_override |
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
122
packet->tcp_watch_cntl[i] = pdd->watch_points[i];
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
124
packet->bitfields2.single_memops =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
128
packet->sh_mem_config = qpd->sh_mem_config;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
129
packet->sh_mem_bases = qpd->sh_mem_bases;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
131
packet->sq_shader_tba_lo = lower_32_bits(qpd->tba_addr >> 8);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
132
packet->sq_shader_tba_hi = upper_32_bits(qpd->tba_addr >> 8);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
133
packet->sq_shader_tma_lo = lower_32_bits(qpd->tma_addr >> 8);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
134
packet->sq_shader_tma_hi = upper_32_bits(qpd->tma_addr >> 8);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
137
packet->gds_addr_lo = lower_32_bits(qpd->gds_context_area);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
138
packet->gds_addr_hi = upper_32_bits(qpd->gds_context_area);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
140
packet->vm_context_page_table_base_addr_lo32 =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
142
packet->vm_context_page_table_base_addr_hi32 =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
151
struct pm4_mes_runlist *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
173
packet = (struct pm4_mes_runlist *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
176
packet->header.u32All = pm_build_pm4_header(IT_RUN_LIST,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
179
packet->bitfields4.ib_size = ib_size_in_dwords;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
180
packet->bitfields4.chain = chain ? 1 : 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
181
packet->bitfields4.offload_polling = 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
182
packet->bitfields4.chained_runlist_idle_disable = chain ? 1 : 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
183
packet->bitfields4.valid = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
184
packet->bitfields4.process_cnt = concurrent_proc_cnt;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
185
packet->ordinal2 = lower_32_bits(ib);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
186
packet->ib_base_hi = upper_32_bits(ib);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
194
struct pm4_mes_set_resources *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
196
packet = (struct pm4_mes_set_resources *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
199
packet->header.u32All = pm_build_pm4_header(IT_SET_RESOURCES,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
202
packet->bitfields2.queue_type =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
204
packet->bitfields2.vmid_mask = res->vmid_mask;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
205
packet->bitfields2.unmap_latency = KFD_UNMAP_LATENCY_MS / 100;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
207
packet->bitfields2.enb_xnack_retry_disable_check = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
208
packet->bitfields7.oac_mask = res->oac_mask;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
209
packet->bitfields8.gds_heap_base = res->gds_heap_base;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
210
packet->bitfields8.gds_heap_size = res->gds_heap_size;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
212
packet->gws_mask_lo = lower_32_bits(res->gws_mask);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
213
packet->gws_mask_hi = upper_32_bits(res->gws_mask);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
215
packet->queue_mask_lo = lower_32_bits(res->queue_mask);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
216
packet->queue_mask_hi = upper_32_bits(res->queue_mask);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
230
struct pm4_mes_map_queues *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
232
packet = (struct pm4_mes_map_queues *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
235
packet->header.u32All = pm_build_pm4_header(IT_MAP_QUEUES,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
237
packet->bitfields2.num_queues = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
238
packet->bitfields2.queue_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
241
packet->bitfields2.engine_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
243
packet->bitfields2.gws_control_queue = q->properties.is_gws ? 1 : 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
244
packet->bitfields2.extended_engine_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
246
packet->bitfields2.queue_type =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
252
packet->bitfields2.queue_type =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
259
packet->bitfields2.engine_sel = q->properties.sdma_engine_id +
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
268
packet->bitfields2.extended_engine_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
271
packet->bitfields2.extended_engine_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
274
packet->bitfields2.engine_sel = q->properties.sdma_engine_id % 8;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
281
packet->bitfields3.doorbell_offset =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
284
packet->mqd_addr_lo =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
287
packet->mqd_addr_hi =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
290
packet->wptr_addr_lo =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
293
packet->wptr_addr_hi =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
324
struct pm4_mec_write_data_mmio *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
35
struct pm4_mes_map_process *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
373
packet = (struct pm4_mec_write_data_mmio *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
376
packet->header.u32All = pm_build_pm4_header(IT_WRITE_DATA,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
379
packet->bitfields2.dst_sel = dst_sel___write_data__mem_mapped_register;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
380
packet->bitfields2.addr_incr =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
383
packet->bitfields3.dst_mmreg_addr = reg_offset;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
385
packet->data = reg_data;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
394
struct pm4_mes_unmap_queues *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
396
packet = (struct pm4_mes_unmap_queues *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
399
packet->header.u32All = pm_build_pm4_header(IT_UNMAP_QUEUES,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
402
packet->bitfields2.extended_engine_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
407
packet->bitfields2.engine_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
411
packet->bitfields2.action =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
414
packet->bitfields2.action =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
419
packet->bitfields2.queue_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
42
packet = (struct pm4_mes_map_process *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
421
packet->bitfields3a.pasid = filter_param;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
424
packet->bitfields2.queue_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
429
packet->bitfields2.queue_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
44
packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
444
struct pm4_mes_query_status *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
446
packet = (struct pm4_mes_query_status *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
450
packet->header.u32All = pm_build_pm4_header(IT_QUERY_STATUS,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
453
packet->bitfields2.context_id = 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
454
packet->bitfields2.interrupt_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
456
packet->bitfields2.command =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
459
packet->addr_hi = upper_32_bits((uint64_t)fence_address);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
460
packet->addr_lo = lower_32_bits((uint64_t)fence_address);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
461
packet->data_hi = upper_32_bits((uint64_t)fence_value);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
462
packet->data_lo = lower_32_bits((uint64_t)fence_value);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
47
packet->bitfields2.exec_cleaner_shader = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
48
packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
49
packet->bitfields2.process_quantum = 10;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
50
packet->bitfields2.pasid = pdd->pasid;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
51
packet->bitfields14.gds_size = qpd->gds_size & 0x3F;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
52
packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
53
packet->bitfields14.num_gws = (qpd->mapped_gws_queue) ? qpd->num_gws : 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
54
packet->bitfields14.num_oac = qpd->num_oac;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
55
packet->bitfields14.sdma_enable = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
56
packet->bitfields14.num_queues = (qpd->is_debug) ? 0 : qpd->queue_count;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
60
packet->bitfields2.debug_vmid = kfd->dqm->trap_debug_vmid;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
61
packet->bitfields2.new_debug = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
64
packet->sh_mem_config = qpd->sh_mem_config;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
65
packet->sh_mem_bases = qpd->sh_mem_bases;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
67
packet->sq_shader_tba_lo = lower_32_bits(qpd->tba_addr >> 8);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
71
packet->sq_shader_tba_hi = upper_32_bits(qpd->tba_addr >> 8)
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
74
packet->sq_shader_tma_lo = lower_32_bits(qpd->tma_addr >> 8);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
75
packet->sq_shader_tma_hi = upper_32_bits(qpd->tma_addr >> 8);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
78
packet->gds_addr_lo = lower_32_bits(qpd->gds_context_area);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
79
packet->gds_addr_hi = upper_32_bits(qpd->gds_context_area);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
81
packet->vm_context_page_table_base_addr_lo32 =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
83
packet->vm_context_page_table_base_addr_hi32 =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
92
struct pm4_mes_map_process_aldebaran *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
101
packet->header.u32All = pm_build_pm4_header(IT_RUN_LIST,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
104
packet->bitfields4.ib_size = ib_size_in_dwords;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
105
packet->bitfields4.chain = chain ? 1 : 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
106
packet->bitfields4.offload_polling = 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
107
packet->bitfields4.valid = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
108
packet->bitfields4.process_cnt = concurrent_proc_cnt;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
109
packet->ordinal2 = lower_32_bits(ib);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
110
packet->bitfields3.ib_base_hi = upper_32_bits(ib);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
118
struct pm4_mes_set_resources *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
120
packet = (struct pm4_mes_set_resources *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
123
packet->header.u32All = pm_build_pm4_header(IT_SET_RESOURCES,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
126
packet->bitfields2.queue_type =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
128
packet->bitfields2.vmid_mask = res->vmid_mask;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
129
packet->bitfields2.unmap_latency = KFD_UNMAP_LATENCY_MS / 100;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
130
packet->bitfields7.oac_mask = res->oac_mask;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
131
packet->bitfields8.gds_heap_base = res->gds_heap_base;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
132
packet->bitfields8.gds_heap_size = res->gds_heap_size;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
134
packet->gws_mask_lo = lower_32_bits(res->gws_mask);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
135
packet->gws_mask_hi = upper_32_bits(res->gws_mask);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
137
packet->queue_mask_lo = lower_32_bits(res->queue_mask);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
138
packet->queue_mask_hi = upper_32_bits(res->queue_mask);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
146
struct pm4_mes_map_queues *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
149
packet = (struct pm4_mes_map_queues *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
152
packet->header.u32All = pm_build_pm4_header(IT_MAP_QUEUES,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
154
packet->bitfields2.num_queues = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
155
packet->bitfields2.queue_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
158
packet->bitfields2.engine_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
160
packet->bitfields2.queue_type =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
166
packet->bitfields2.queue_type =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
171
packet->bitfields2.engine_sel = q->properties.sdma_engine_id +
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
178
packet->bitfields3.doorbell_offset =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
181
packet->mqd_addr_lo =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
184
packet->mqd_addr_hi =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
187
packet->wptr_addr_lo =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
190
packet->wptr_addr_hi =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
200
struct pm4_mes_unmap_queues *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
202
packet = (struct pm4_mes_unmap_queues *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
205
packet->header.u32All = pm_build_pm4_header(IT_UNMAP_QUEUES,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
208
packet->bitfields2.engine_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
212
packet->bitfields2.action =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
215
packet->bitfields2.action =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
220
packet->bitfields2.queue_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
222
packet->bitfields3a.pasid = filter_param;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
225
packet->bitfields2.queue_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
230
packet->bitfields2.queue_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
245
struct pm4_mes_query_status *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
247
packet = (struct pm4_mes_query_status *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
250
packet->header.u32All = pm_build_pm4_header(IT_QUERY_STATUS,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
253
packet->bitfields2.context_id = 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
254
packet->bitfields2.interrupt_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
256
packet->bitfields2.command =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
259
packet->addr_hi = upper_32_bits((uint64_t)fence_address);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
260
packet->addr_lo = lower_32_bits((uint64_t)fence_address);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
261
packet->data_hi = upper_32_bits((uint64_t)fence_value);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
262
packet->data_lo = lower_32_bits((uint64_t)fence_value);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
269
struct pm4_mec_release_mem *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
271
packet = (struct pm4_mec_release_mem *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
272
memset(buffer, 0, sizeof(*packet));
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
274
packet->header.u32All = pm_build_pm4_header(IT_RELEASE_MEM,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
275
sizeof(*packet));
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
277
packet->bitfields2.event_type = CACHE_FLUSH_AND_INV_TS_EVENT;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
278
packet->bitfields2.event_index = event_index___release_mem__end_of_pipe;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
279
packet->bitfields2.tcl1_action_ena = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
280
packet->bitfields2.tc_action_ena = 1;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
281
packet->bitfields2.cache_policy = cache_policy___release_mem__lru;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
282
packet->bitfields2.atc = 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
284
packet->bitfields3.data_sel = data_sel___release_mem__send_32_bit_low;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
285
packet->bitfields3.int_sel =
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
288
packet->bitfields4.address_lo_32b = (gpu_addr & 0xffffffff) >> 2;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
289
packet->address_hi = upper_32_bits(gpu_addr);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
291
packet->data_lo = 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
46
struct pm4_mes_map_process *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
48
packet = (struct pm4_mes_map_process *)buffer;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
52
packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS,
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
54
packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
55
packet->bitfields2.process_quantum = 10;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
56
packet->bitfields2.pasid = pdd->pasid;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
57
packet->bitfields3.page_table_base = qpd->page_table_base;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
58
packet->bitfields10.gds_size = qpd->gds_size;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
59
packet->bitfields10.num_gws = qpd->num_gws;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
60
packet->bitfields10.num_oac = qpd->num_oac;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
61
packet->bitfields10.num_queues = (qpd->is_debug) ? 0 : qpd->queue_count;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
63
packet->sh_mem_config = qpd->sh_mem_config;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
64
packet->sh_mem_bases = qpd->sh_mem_bases;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
65
packet->sh_mem_ape1_base = qpd->sh_mem_ape1_base;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
66
packet->sh_mem_ape1_limit = qpd->sh_mem_ape1_limit;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
68
packet->sh_hidden_private_base_vmid = qpd->sh_hidden_private_base;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
70
packet->gds_addr_lo = lower_32_bits(qpd->gds_context_area);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
71
packet->gds_addr_hi = upper_32_bits(qpd->gds_context_area);
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
79
struct pm4_mes_runlist *packet;
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c
98
packet = (struct pm4_mes_runlist *)buffer;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
2274
lsdma_data->u.pio_copy_data.packet.fields.byte_count = byte_count;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
2275
lsdma_data->u.pio_copy_data.packet.fields.overlap_disable = overlap_disable;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
2308
lsdma_data->u.pio_constfill_data.packet.fields.constant_fill = 1;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
2309
lsdma_data->u.pio_constfill_data.packet.fields.byte_count = byte_count;
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
2431
} packet;
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
2448
} packet;
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
177
static int adv7511_packet_enable(struct adv7511 *adv7511, unsigned int packet)
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
179
if (packet & 0xff)
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
181
packet, 0xff);
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
183
if (packet & 0xff00) {
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
184
packet >>= 8;
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
186
packet, 0xff);
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
192
static int adv7511_packet_disable(struct adv7511 *adv7511, unsigned int packet)
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
194
if (packet & 0xff)
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
196
packet, 0x00);
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
198
if (packet & 0xff00) {
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
199
packet >>= 8;
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
201
packet, 0x00);
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c
1116
struct mipi_dsi_packet packet;
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c
1125
ret = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/bridge/nwl-dsi.c
505
struct mipi_dsi_packet *pkt = &xfer->packet;
drivers/gpu/drm/bridge/nwl-dsi.c
54
struct mipi_dsi_packet packet;
drivers/gpu/drm/bridge/nwl-dsi.c
574
ret = mipi_dsi_create_packet(&xfer.packet, msg);
drivers/gpu/drm/bridge/samsung-dsim.c
1281
struct mipi_dsi_packet *pkt = &xfer->packet;
drivers/gpu/drm/bridge/samsung-dsim.c
1439
if (xfer->packet.payload_length &&
drivers/gpu/drm/bridge/samsung-dsim.c
1440
xfer->tx_done == xfer->packet.payload_length)
drivers/gpu/drm/bridge/samsung-dsim.c
1446
if (xfer->packet.payload_length || xfer->rx_len)
drivers/gpu/drm/bridge/samsung-dsim.c
1480
xfer, xfer->packet.payload_length, xfer->tx_done, xfer->rx_len,
drivers/gpu/drm/bridge/samsung-dsim.c
1483
if (xfer->tx_done != xfer->packet.payload_length)
drivers/gpu/drm/bridge/samsung-dsim.c
1554
struct mipi_dsi_packet *pkt = &xfer->packet;
drivers/gpu/drm/bridge/samsung-dsim.c
2034
ret = mipi_dsi_create_packet(&xfer.packet, msg);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
432
const struct mipi_dsi_packet *packet)
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
434
const u8 *tx_buf = packet->payload;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
435
int len = packet->payload_length, pld_data_bytes = sizeof(u32), ret;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
463
memcpy(&word, packet->header, sizeof(packet->header));
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
505
struct mipi_dsi_packet packet;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
508
ret = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
518
ret = dw_mipi_dsi_write(dsi, &packet);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
522
ret = dw_mipi_dsi_write(dsi->slave, &packet);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
533
nb_bytes = packet.size;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
586
const struct mipi_dsi_packet *packet, bool lpm)
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
588
const u8 *tx_buf = packet->payload;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
589
int len = packet->payload_length, pld_data_bytes = sizeof(u32);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
608
memcpy(&word, packet->header, sizeof(packet->header));
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
655
struct mipi_dsi_packet packet;
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
663
ret = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
673
ret = dw_mipi_dsi2_write(dsi2, &packet, lpm);
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c
683
nb_bytes = packet.size;
drivers/gpu/drm/bridge/tc358768.c
495
struct mipi_dsi_packet packet;
drivers/gpu/drm/bridge/tc358768.c
513
ret = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/bridge/tc358768.c
519
(0x10 << 8) | (packet.header[0] & 0x3f));
drivers/gpu/drm/bridge/tc358768.c
522
(packet.header[2] << 8) | packet.header[1]);
drivers/gpu/drm/bridge/tc358768.c
527
(0x40 << 8) | (packet.header[0] & 0x3f));
drivers/gpu/drm/bridge/tc358768.c
528
tc358768_write(priv, TC358768_DSICMD_WC, packet.payload_length);
drivers/gpu/drm/bridge/tc358768.c
529
for (i = 0; i < packet.payload_length; i += 2) {
drivers/gpu/drm/bridge/tc358768.c
530
u16 val = packet.payload[i];
drivers/gpu/drm/bridge/tc358768.c
532
if (i + 1 < packet.payload_length)
drivers/gpu/drm/bridge/tc358768.c
533
val |= packet.payload[i + 1] << 8;
drivers/gpu/drm/bridge/tc358768.c
545
ret = packet.size;
drivers/gpu/drm/drm_mipi_dsi.c
541
int mipi_dsi_create_packet(struct mipi_dsi_packet *packet,
drivers/gpu/drm/drm_mipi_dsi.c
544
if (!packet || !msg)
drivers/gpu/drm/drm_mipi_dsi.c
555
memset(packet, 0, sizeof(*packet));
drivers/gpu/drm/drm_mipi_dsi.c
556
packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f);
drivers/gpu/drm/drm_mipi_dsi.c
568
packet->header[1] = (msg->tx_len >> 0) & 0xff;
drivers/gpu/drm/drm_mipi_dsi.c
569
packet->header[2] = (msg->tx_len >> 8) & 0xff;
drivers/gpu/drm/drm_mipi_dsi.c
571
packet->payload_length = msg->tx_len;
drivers/gpu/drm/drm_mipi_dsi.c
572
packet->payload = msg->tx_buf;
drivers/gpu/drm/drm_mipi_dsi.c
576
packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0;
drivers/gpu/drm/drm_mipi_dsi.c
577
packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0;
drivers/gpu/drm/drm_mipi_dsi.c
580
packet->size = sizeof(packet->header) + packet->payload_length;
drivers/gpu/drm/i915/display/icl_dsi.c
160
const struct mipi_dsi_packet *packet)
drivers/gpu/drm/i915/display/icl_dsi.c
165
const u8 *data = packet->payload;
drivers/gpu/drm/i915/display/icl_dsi.c
166
u32 len = packet->payload_length;
drivers/gpu/drm/i915/display/icl_dsi.c
191
const struct mipi_dsi_packet *packet,
drivers/gpu/drm/i915/display/icl_dsi.c
204
if (packet->payload)
drivers/gpu/drm/i915/display/icl_dsi.c
217
tmp |= ((packet->header[0] & VC_MASK) << VC_SHIFT);
drivers/gpu/drm/i915/display/icl_dsi.c
218
tmp |= ((packet->header[0] & DT_MASK) << DT_SHIFT);
drivers/gpu/drm/i915/display/icl_dsi.c
219
tmp |= (packet->header[1] << PARAM_WC_LOWER_SHIFT);
drivers/gpu/drm/i915/display/icl_dsi.c
220
tmp |= (packet->header[2] << PARAM_WC_UPPER_SHIFT);
drivers/gpu/drm/i915/display/vlv_dsi.c
139
struct mipi_dsi_packet packet;
drivers/gpu/drm/i915/display/vlv_dsi.c
145
ret = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/i915/display/vlv_dsi.c
149
header = packet.header;
drivers/gpu/drm/i915/display/vlv_dsi.c
164
if (packet.payload_length) {
drivers/gpu/drm/i915/display/vlv_dsi.c
170
write_data(display, data_reg, packet.payload,
drivers/gpu/drm/i915/display/vlv_dsi.c
171
packet.payload_length);
drivers/gpu/drm/i915/display/vlv_dsi.c
200
return 4 + packet.payload_length;
drivers/gpu/drm/msm/dsi/dsi_host.c
1309
struct mipi_dsi_packet packet;
drivers/gpu/drm/msm/dsi/dsi_host.c
1314
ret = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/msm/dsi/dsi_host.c
1319
len = (packet.size + 3) & (~0x3);
drivers/gpu/drm/msm/dsi/dsi_host.c
1334
data[0] = packet.header[1];
drivers/gpu/drm/msm/dsi/dsi_host.c
1335
data[1] = packet.header[2];
drivers/gpu/drm/msm/dsi/dsi_host.c
1336
data[2] = packet.header[0];
drivers/gpu/drm/msm/dsi/dsi_host.c
1344
if (packet.payload && packet.payload_length)
drivers/gpu/drm/msm/dsi/dsi_host.c
1345
memcpy(data + 4, packet.payload, packet.payload_length);
drivers/gpu/drm/msm/dsi/dsi_host.c
1348
if (packet.size < len)
drivers/gpu/drm/msm/dsi/dsi_host.c
1349
memset(data + packet.size, 0xff, len - packet.size);
drivers/gpu/drm/nouveau/nvkm/subdev/fsp/gh100.c
120
gh100_fsp_send(struct nvkm_fsp *fsp, const u8 *packet, u32 packet_size)
drivers/gpu/drm/nouveau/nvkm/subdev/fsp/gh100.c
143
ret = nvkm_falcon_pio_wr(&fsp->falcon, packet, 0, 0, EMEM, 0, packet_size, 0, false);
drivers/gpu/drm/nouveau/nvkm/subdev/fsp/gh100.c
154
gh100_fsp_send_sync(struct nvkm_fsp *fsp, u8 nvdm_type, const u8 *packet, u32 packet_size)
drivers/gpu/drm/nouveau/nvkm/subdev/fsp/gh100.c
164
ret = gh100_fsp_send(fsp, packet, packet_size);
drivers/gpu/drm/nouveau/nvkm/subdev/fsp/gh100.c
84
gh100_fsp_recv(struct nvkm_fsp *fsp, u8 *packet, u32 max_packet_size)
drivers/gpu/drm/nouveau/nvkm/subdev/fsp/gh100.c
94
ret = nvkm_falcon_pio_rd(&fsp->falcon, 0, EMEM, 0, packet, 0, packet_size);
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
1038
return packet.size;
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
964
struct mipi_dsi_packet packet;
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
969
ret = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
994
TXCMPHDR_DATA1(packet.header[2]) |
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
995
TXCMPHDR_DATA0(packet.header[1]));
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
998
memcpy(payload, packet.payload,
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1258
struct mipi_dsi_packet packet;
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1263
ret = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1288
value |= FIELD_PREP(SQCH0DSC0AR_DT, packet.header[0]) |
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1289
FIELD_PREP(SQCH0DSC0AR_DATA0, packet.header[1]) |
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1290
FIELD_PREP(SQCH0DSC0AR_DATA1, packet.header[2]);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1295
if (packet.payload_length > RZG2L_DCS_BUF_SIZE) {
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1297
(unsigned int)packet.payload_length);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1302
memcpy(dsi->dcs_buf_virt, packet.payload, packet.payload_length);
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
1344
ret = packet.payload_length;
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
318
enum sun6i_dsi_inst_packet packet,
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
324
SUN6I_DSI_INST_FUNC_TRANS_PACKET(packet) |
drivers/gpu/drm/tegra/dsi.c
1329
struct mipi_dsi_packet packet;
drivers/gpu/drm/tegra/dsi.c
1335
err = mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/tegra/dsi.c
1339
header = packet.header;
drivers/gpu/drm/tegra/dsi.c
1342
if (packet.size > dsi->video_fifo_depth * 4)
drivers/gpu/drm/tegra/dsi.c
1369
if (packet.size > dsi->host_fifo_depth * 4)
drivers/gpu/drm/tegra/dsi.c
1393
if (packet.payload_length > 0)
drivers/gpu/drm/tegra/dsi.c
1394
tegra_dsi_writesl(dsi, DSI_WR_DATA, packet.payload,
drivers/gpu/drm/tegra/dsi.c
1395
packet.payload_length);
drivers/gpu/drm/tegra/dsi.c
1447
count = 4 + packet.payload_length;
drivers/gpu/drm/vc4/vc4_dsi.c
1177
struct mipi_dsi_packet packet;
drivers/gpu/drm/vc4/vc4_dsi.c
1183
mipi_dsi_create_packet(&packet, msg);
drivers/gpu/drm/vc4/vc4_dsi.c
1185
pkth |= VC4_SET_FIELD(packet.header[0], DSI_TXPKT1H_BC_DT);
drivers/gpu/drm/vc4/vc4_dsi.c
1186
pkth |= VC4_SET_FIELD(packet.header[1] |
drivers/gpu/drm/vc4/vc4_dsi.c
1187
(packet.header[2] << 8),
drivers/gpu/drm/vc4/vc4_dsi.c
1199
if (packet.payload_length <= 16) {
drivers/gpu/drm/vc4/vc4_dsi.c
1200
cmd_fifo_len = packet.payload_length;
drivers/gpu/drm/vc4/vc4_dsi.c
1203
cmd_fifo_len = (packet.payload_length %
drivers/gpu/drm/vc4/vc4_dsi.c
1205
pix_fifo_len = ((packet.payload_length - cmd_fifo_len) /
drivers/gpu/drm/vc4/vc4_dsi.c
1223
DSI_PORT_WRITE(TXPKT_CMD_FIFO, packet.payload[i]);
drivers/gpu/drm/vc4/vc4_dsi.c
1225
const u8 *pix = packet.payload + cmd_fifo_len + i * 4;
drivers/gpu/drm/vc4/vc4_validate.c
439
#define VC4_DEFINE_PACKET(packet, func) \
drivers/gpu/drm/vc4/vc4_validate.c
440
[packet] = { packet ## _SIZE, #packet, func }
drivers/hid/hid-hyperv.c
243
struct vmpacket_descriptor *packet)
drivers/hid/hid-hyperv.c
251
pipe_msg = (struct pipe_prt_msg *)((unsigned long)packet +
drivers/hid/hid-hyperv.c
252
(packet->offset8 << 3));
drivers/hwtracing/coresight/coresight-stm.c
412
unsigned int packet,
drivers/hwtracing/coresight/coresight-stm.c
440
switch (packet) {
drivers/hwtracing/coresight/coresight-stm.c
811
drvdata->stm.packet = stm_generic_packet;
drivers/hwtracing/intel_th/sth.c
219
sth->stm.packet = sth_stm_packet;
drivers/hwtracing/intel_th/sth.c
65
unsigned int packet,
drivers/hwtracing/intel_th/sth.c
83
switch (packet) {
drivers/hwtracing/stm/core.c
586
sz = data->packet(data, m, c, STP_PACKET_DATA, flags, sz,
drivers/hwtracing/stm/core.c
861
if (!stm_data->packet || !stm_data->sw_nchannels)
drivers/hwtracing/stm/dummy_stm.c
19
unsigned int channel, unsigned int packet, unsigned int flags,
drivers/hwtracing/stm/dummy_stm.c
31
packet, size, pl);
drivers/hwtracing/stm/dummy_stm.c
89
dummy_stm[i].packet = dummy_stm_packet;
drivers/hwtracing/stm/p_basic.c
23
data->packet(data, m, c, STP_PACKET_FLAG, 0, 0, &nil);
drivers/hwtracing/stm/p_sys-t.c
299
sz = data->packet(data, m, c, STP_PACKET_DATA, STP_PACKET_TIMESTAMPED,
drivers/hwtracing/stm/p_sys-t.c
310
data->packet(data, m, c, STP_PACKET_FLAG, 0, 0, &nil);
drivers/hwtracing/stm/p_sys-t.c
363
data->packet(data, master, channel, STP_PACKET_FLAG, 0, 0, &nil);
drivers/hwtracing/stm/p_sys-t.c
401
sz = data->packet(data, m, c, STP_PACKET_DATA, STP_PACKET_TIMESTAMPED,
drivers/hwtracing/stm/p_sys-t.c
416
sz = data->packet(data, m, c, STP_PACKET_DATA, 0, 2,
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
45
ssize_t inv_icm42600_fifo_decode_packet(const void *packet, const void **accel,
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
49
const struct inv_icm42600_fifo_1sensor_packet *pack1 = packet;
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
50
const struct inv_icm42600_fifo_2sensors_packet *pack2 = packet;
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
51
u8 header = *((const u8 *)packet);
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.h
77
ssize_t inv_icm42600_fifo_decode_packet(const void *packet, const void **accel,
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
47
ssize_t inv_icm45600_fifo_decode_packet(const void *packet,
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
53
const struct inv_icm45600_fifo_1sensor_packet *pack1 = packet;
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
54
const struct inv_icm45600_fifo_2sensors_packet *pack2 = packet;
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
55
u8 header = *((const u8 *)packet);
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.h
76
ssize_t inv_icm45600_fifo_decode_packet(const void *packet,
drivers/infiniband/core/user_mad.c
1047
struct ib_umad_packet *packet, *tmp;
drivers/infiniband/core/user_mad.c
1057
list_for_each_entry_safe(packet, tmp, &file->recv_list, list) {
drivers/infiniband/core/user_mad.c
1058
if (packet->recv_wc)
drivers/infiniband/core/user_mad.c
1059
ib_free_recv_mad(packet->recv_wc);
drivers/infiniband/core/user_mad.c
1060
kfree(packet);
drivers/infiniband/core/user_mad.c
187
struct ib_umad_packet *packet, bool is_recv_mad)
drivers/infiniband/core/user_mad.c
197
for (packet->mad.hdr.id = 0;
drivers/infiniband/core/user_mad.c
198
packet->mad.hdr.id < IB_UMAD_MAX_AGENTS;
drivers/infiniband/core/user_mad.c
199
packet->mad.hdr.id++)
drivers/infiniband/core/user_mad.c
200
if (agent == __get_agent(file, packet->mad.hdr.id)) {
drivers/infiniband/core/user_mad.c
201
list_add_tail(&packet->list, &file->recv_list);
drivers/infiniband/core/user_mad.c
214
struct ib_umad_packet *packet)
drivers/infiniband/core/user_mad.c
217
list_del(&packet->list);
drivers/infiniband/core/user_mad.c
225
struct ib_umad_packet *packet = send_wc->send_buf->context[0];
drivers/infiniband/core/user_mad.c
227
dequeue_send(file, packet);
drivers/infiniband/core/user_mad.c
228
rdma_destroy_ah(packet->msg->ah, RDMA_DESTROY_AH_SLEEPABLE);
drivers/infiniband/core/user_mad.c
229
ib_free_send_mad(packet->msg);
drivers/infiniband/core/user_mad.c
232
packet->length = IB_MGMT_MAD_HDR;
drivers/infiniband/core/user_mad.c
233
packet->mad.hdr.status = ETIMEDOUT;
drivers/infiniband/core/user_mad.c
234
if (!queue_packet(file, agent, packet, false))
drivers/infiniband/core/user_mad.c
237
kfree(packet);
drivers/infiniband/core/user_mad.c
245
struct ib_umad_packet *packet;
drivers/infiniband/core/user_mad.c
250
packet = kzalloc_obj(*packet);
drivers/infiniband/core/user_mad.c
251
if (!packet)
drivers/infiniband/core/user_mad.c
254
packet->length = mad_recv_wc->mad_len;
drivers/infiniband/core/user_mad.c
255
packet->recv_wc = mad_recv_wc;
drivers/infiniband/core/user_mad.c
257
packet->mad.hdr.status = 0;
drivers/infiniband/core/user_mad.c
258
packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len;
drivers/infiniband/core/user_mad.c
259
packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp);
drivers/infiniband/core/user_mad.c
265
packet->mad.hdr.lid = ib_lid_be16(0xFFFF &
drivers/infiniband/core/user_mad.c
268
packet->mad.hdr.lid = ib_lid_be16(mad_recv_wc->wc->slid);
drivers/infiniband/core/user_mad.c
269
packet->mad.hdr.sl = mad_recv_wc->wc->sl;
drivers/infiniband/core/user_mad.c
270
packet->mad.hdr.path_bits = mad_recv_wc->wc->dlid_path_bits;
drivers/infiniband/core/user_mad.c
271
packet->mad.hdr.pkey_index = mad_recv_wc->wc->pkey_index;
drivers/infiniband/core/user_mad.c
272
packet->mad.hdr.grh_present = !!(mad_recv_wc->wc->wc_flags & IB_WC_GRH);
drivers/infiniband/core/user_mad.c
273
if (packet->mad.hdr.grh_present) {
drivers/infiniband/core/user_mad.c
286
packet->mad.hdr.gid_index = grh->sgid_index;
drivers/infiniband/core/user_mad.c
287
packet->mad.hdr.hop_limit = grh->hop_limit;
drivers/infiniband/core/user_mad.c
288
packet->mad.hdr.traffic_class = grh->traffic_class;
drivers/infiniband/core/user_mad.c
289
memcpy(packet->mad.hdr.gid, &grh->dgid, 16);
drivers/infiniband/core/user_mad.c
290
packet->mad.hdr.flow_label = cpu_to_be32(grh->flow_label);
drivers/infiniband/core/user_mad.c
294
if (queue_packet(file, agent, packet, true))
drivers/infiniband/core/user_mad.c
299
kfree(packet);
drivers/infiniband/core/user_mad.c
305
struct ib_umad_packet *packet, size_t count)
drivers/infiniband/core/user_mad.c
311
recv_buf = &packet->recv_wc->recv_buf;
drivers/infiniband/core/user_mad.c
312
seg_size = packet->recv_wc->mad_seg_size;
drivers/infiniband/core/user_mad.c
315
if ((packet->length <= seg_size &&
drivers/infiniband/core/user_mad.c
316
count < hdr_size(file) + packet->length) ||
drivers/infiniband/core/user_mad.c
317
(packet->length > seg_size &&
drivers/infiniband/core/user_mad.c
321
if (copy_to_user(buf, &packet->mad, hdr_size(file)))
drivers/infiniband/core/user_mad.c
325
seg_payload = min_t(int, packet->length, seg_size);
drivers/infiniband/core/user_mad.c
329
if (seg_payload < packet->length) {
drivers/infiniband/core/user_mad.c
334
if (count < hdr_size(file) + packet->length) {
drivers/infiniband/core/user_mad.c
344
for (left = packet->length - seg_payload, buf += seg_payload;
drivers/infiniband/core/user_mad.c
355
trace_ib_umad_read_recv(file, &packet->mad.hdr, &recv_buf->mad->mad_hdr);
drivers/infiniband/core/user_mad.c
357
return hdr_size(file) + packet->length;
drivers/infiniband/core/user_mad.c
361
struct ib_umad_packet *packet, size_t count)
drivers/infiniband/core/user_mad.c
363
ssize_t size = hdr_size(file) + packet->length;
drivers/infiniband/core/user_mad.c
368
if (copy_to_user(buf, &packet->mad, hdr_size(file)))
drivers/infiniband/core/user_mad.c
373
if (copy_to_user(buf, packet->mad.data, packet->length))
drivers/infiniband/core/user_mad.c
376
trace_ib_umad_read_send(file, &packet->mad.hdr,
drivers/infiniband/core/user_mad.c
377
(struct ib_mad_hdr *)&packet->mad.data);
drivers/infiniband/core/user_mad.c
386
struct ib_umad_packet *packet;
drivers/infiniband/core/user_mad.c
417
packet = list_entry(file->recv_list.next, struct ib_umad_packet, list);
drivers/infiniband/core/user_mad.c
418
list_del(&packet->list);
drivers/infiniband/core/user_mad.c
423
if (packet->recv_wc)
drivers/infiniband/core/user_mad.c
424
ret = copy_recv_mad(file, buf, packet, count);
drivers/infiniband/core/user_mad.c
426
ret = copy_send_mad(file, buf, packet, count);
drivers/infiniband/core/user_mad.c
431
list_add(&packet->list, &file->recv_list);
drivers/infiniband/core/user_mad.c
435
if (packet->recv_wc)
drivers/infiniband/core/user_mad.c
436
ib_free_recv_mad(packet->recv_wc);
drivers/infiniband/core/user_mad.c
437
kfree(packet);
drivers/infiniband/core/user_mad.c
475
struct ib_umad_packet *packet)
drivers/infiniband/core/user_mad.c
480
hdr = (struct ib_mad_hdr *) packet->mad.data;
drivers/infiniband/core/user_mad.c
500
if (same_destination(&packet->mad.hdr, &sent_packet->mad.hdr))
drivers/infiniband/core/user_mad.c
512
struct ib_umad_packet *packet;
drivers/infiniband/core/user_mad.c
524
packet = kzalloc(sizeof(*packet) + IB_MGMT_RMPP_HDR, GFP_KERNEL);
drivers/infiniband/core/user_mad.c
525
if (!packet)
drivers/infiniband/core/user_mad.c
528
if (copy_from_user(&packet->mad, buf, hdr_size(file))) {
drivers/infiniband/core/user_mad.c
533
if (packet->mad.hdr.id >= IB_UMAD_MAX_AGENTS) {
drivers/infiniband/core/user_mad.c
540
if (copy_from_user(packet->mad.data, buf, IB_MGMT_RMPP_HDR)) {
drivers/infiniband/core/user_mad.c
547
trace_ib_umad_write(file, &packet->mad.hdr,
drivers/infiniband/core/user_mad.c
548
(struct ib_mad_hdr *)&packet->mad.data);
drivers/infiniband/core/user_mad.c
550
agent = __get_agent(file, packet->mad.hdr.id);
drivers/infiniband/core/user_mad.c
559
rdma_ah_set_dlid(&ah_attr, be16_to_cpu(packet->mad.hdr.lid));
drivers/infiniband/core/user_mad.c
560
rdma_ah_set_sl(&ah_attr, packet->mad.hdr.sl);
drivers/infiniband/core/user_mad.c
561
rdma_ah_set_path_bits(&ah_attr, packet->mad.hdr.path_bits);
drivers/infiniband/core/user_mad.c
563
if (packet->mad.hdr.grh_present) {
drivers/infiniband/core/user_mad.c
565
be32_to_cpu(packet->mad.hdr.flow_label),
drivers/infiniband/core/user_mad.c
566
packet->mad.hdr.gid_index,
drivers/infiniband/core/user_mad.c
567
packet->mad.hdr.hop_limit,
drivers/infiniband/core/user_mad.c
568
packet->mad.hdr.traffic_class);
drivers/infiniband/core/user_mad.c
569
rdma_ah_set_dgid_raw(&ah_attr, packet->mad.hdr.gid);
drivers/infiniband/core/user_mad.c
578
rmpp_mad_hdr = (struct ib_rmpp_mad_hdr *)packet->mad.data;
drivers/infiniband/core/user_mad.c
591
base_version = ((struct ib_mad_hdr *)&packet->mad.data)->base_version;
drivers/infiniband/core/user_mad.c
596
packet->msg = ib_create_send_mad(agent,
drivers/infiniband/core/user_mad.c
597
be32_to_cpu(packet->mad.hdr.qpn),
drivers/infiniband/core/user_mad.c
598
packet->mad.hdr.pkey_index, rmpp_active,
drivers/infiniband/core/user_mad.c
601
if (IS_ERR(packet->msg)) {
drivers/infiniband/core/user_mad.c
602
ret = PTR_ERR(packet->msg);
drivers/infiniband/core/user_mad.c
606
packet->msg->ah = ah;
drivers/infiniband/core/user_mad.c
607
packet->msg->timeout_ms = packet->mad.hdr.timeout_ms;
drivers/infiniband/core/user_mad.c
608
packet->msg->retries = packet->mad.hdr.retries;
drivers/infiniband/core/user_mad.c
609
packet->msg->context[0] = packet;
drivers/infiniband/core/user_mad.c
612
memcpy(packet->msg->mad, packet->mad.data, IB_MGMT_MAD_HDR);
drivers/infiniband/core/user_mad.c
615
if (copy_from_user(packet->msg->mad + copy_offset,
drivers/infiniband/core/user_mad.c
622
ret = copy_rmpp_mad(packet->msg, buf);
drivers/infiniband/core/user_mad.c
632
if (!ib_response_mad(packet->msg->mad)) {
drivers/infiniband/core/user_mad.c
633
tid = &((struct ib_mad_hdr *) packet->msg->mad)->tid;
drivers/infiniband/core/user_mad.c
643
list_add_tail(&packet->list, &file->send_list);
drivers/infiniband/core/user_mad.c
647
ret = is_duplicate(file, packet);
drivers/infiniband/core/user_mad.c
649
list_add_tail(&packet->list, &file->send_list);
drivers/infiniband/core/user_mad.c
657
ret = ib_post_send_mad(packet->msg, NULL);
drivers/infiniband/core/user_mad.c
665
dequeue_send(file, packet);
drivers/infiniband/core/user_mad.c
667
ib_free_send_mad(packet->msg);
drivers/infiniband/core/user_mad.c
673
kfree(packet);
drivers/infiniband/hw/hfi1/driver.c
1006
struct hfi1_packet packet;
drivers/infiniband/hw/hfi1/driver.c
1014
init_packet(rcd, &packet);
drivers/infiniband/hw/hfi1/driver.c
1017
if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) {
drivers/infiniband/hw/hfi1/driver.c
1024
if (packet.rhqoff == hdrqtail) {
drivers/infiniband/hw/hfi1/driver.c
1035
if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf)))
drivers/infiniband/hw/hfi1/driver.c
1039
prescan_rxq(rcd, &packet);
drivers/infiniband/hw/hfi1/driver.c
1044
packet.rhqoff += packet.rsize;
drivers/infiniband/hw/hfi1/driver.c
1045
packet.rhf_addr = (__le32 *)rcd->rcvhdrq +
drivers/infiniband/hw/hfi1/driver.c
1046
packet.rhqoff +
drivers/infiniband/hw/hfi1/driver.c
1048
packet.rhf = rhf_to_cpu(packet.rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
1051
last = skip_rcv_packet(&packet, thread);
drivers/infiniband/hw/hfi1/driver.c
1054
if (set_armed_to_active(&packet))
drivers/infiniband/hw/hfi1/driver.c
1056
last = process_rcv_packet(&packet, thread);
drivers/infiniband/hw/hfi1/driver.c
1060
if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf)))
drivers/infiniband/hw/hfi1/driver.c
1063
if (packet.rhqoff == hdrqtail)
drivers/infiniband/hw/hfi1/driver.c
1073
rhf_rcv_seq(packet.rhf));
drivers/infiniband/hw/hfi1/driver.c
1083
process_rcv_update(last, &packet);
drivers/infiniband/hw/hfi1/driver.c
1086
process_rcv_qp_work(&packet);
drivers/infiniband/hw/hfi1/driver.c
1087
hfi1_set_rcd_head(rcd, packet.rhqoff);
drivers/infiniband/hw/hfi1/driver.c
1094
finish_packet(&packet);
drivers/infiniband/hw/hfi1/driver.c
1112
struct hfi1_packet packet;
drivers/infiniband/hw/hfi1/driver.c
1114
init_packet(rcd, &packet);
drivers/infiniband/hw/hfi1/driver.c
1115
if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf)))
drivers/infiniband/hw/hfi1/driver.c
1118
while (last != RCV_PKT_DONE && packet.numpkt < budget) {
drivers/infiniband/hw/hfi1/driver.c
1121
packet.rhqoff += packet.rsize;
drivers/infiniband/hw/hfi1/driver.c
1122
packet.rhf_addr = (__le32 *)rcd->rcvhdrq +
drivers/infiniband/hw/hfi1/driver.c
1123
packet.rhqoff +
drivers/infiniband/hw/hfi1/driver.c
1125
packet.rhf = rhf_to_cpu(packet.rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
1128
if (set_armed_to_active(&packet))
drivers/infiniband/hw/hfi1/driver.c
1130
process_rcv_packet_napi(&packet);
drivers/infiniband/hw/hfi1/driver.c
1133
if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf)))
drivers/infiniband/hw/hfi1/driver.c
1141
process_rcv_update(last, &packet);
drivers/infiniband/hw/hfi1/driver.c
1144
hfi1_set_rcd_head(rcd, packet.rhqoff);
drivers/infiniband/hw/hfi1/driver.c
1151
finish_packet(&packet);
drivers/infiniband/hw/hfi1/driver.c
1152
return packet.numpkt;
drivers/infiniband/hw/hfi1/driver.c
1437
static inline void hfi1_setup_ib_header(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1439
packet->hdr = (struct hfi1_ib_message_header *)
drivers/infiniband/hw/hfi1/driver.c
1440
hfi1_get_msgheader(packet->rcd,
drivers/infiniband/hw/hfi1/driver.c
1441
packet->rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
1442
packet->hlen = (u8 *)packet->rhf_addr - (u8 *)packet->hdr;
drivers/infiniband/hw/hfi1/driver.c
1445
static int hfi1_bypass_ingress_pkt_check(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1447
struct hfi1_pportdata *ppd = packet->rcd->ppd;
drivers/infiniband/hw/hfi1/driver.c
1450
if ((!packet->slid) || (!packet->dlid))
drivers/infiniband/hw/hfi1/driver.c
1454
if ((!(hfi1_is_16B_mcast(packet->dlid))) &&
drivers/infiniband/hw/hfi1/driver.c
1455
(packet->dlid !=
drivers/infiniband/hw/hfi1/driver.c
1457
if ((packet->dlid & ~((1 << ppd->lmc) - 1)) != ppd->lid)
drivers/infiniband/hw/hfi1/driver.c
1462
if ((hfi1_is_16B_mcast(packet->dlid)) && (packet->sc == 0xF))
drivers/infiniband/hw/hfi1/driver.c
1466
if ((packet->dlid == opa_get_lid(be32_to_cpu(OPA_LID_PERMISSIVE),
drivers/infiniband/hw/hfi1/driver.c
1468
(packet->sc != 0xF))
drivers/infiniband/hw/hfi1/driver.c
1474
static int hfi1_setup_9B_packet(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1476
struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
drivers/infiniband/hw/hfi1/driver.c
1480
hfi1_setup_ib_header(packet);
drivers/infiniband/hw/hfi1/driver.c
1481
hdr = packet->hdr;
drivers/infiniband/hw/hfi1/driver.c
1485
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/driver.c
1486
packet->grh = NULL;
drivers/infiniband/hw/hfi1/driver.c
1490
packet->ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/driver.c
1491
packet->grh = &hdr->u.l.grh;
drivers/infiniband/hw/hfi1/driver.c
1492
if (packet->grh->next_hdr != IB_GRH_NEXT_HDR)
drivers/infiniband/hw/hfi1/driver.c
1494
vtf = be32_to_cpu(packet->grh->version_tclass_flow);
drivers/infiniband/hw/hfi1/driver.c
1502
packet->payload = packet->ebuf;
drivers/infiniband/hw/hfi1/driver.c
1503
packet->opcode = ib_bth_get_opcode(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1504
packet->slid = ib_get_slid(hdr);
drivers/infiniband/hw/hfi1/driver.c
1505
packet->dlid = ib_get_dlid(hdr);
drivers/infiniband/hw/hfi1/driver.c
1506
if (unlikely((packet->dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) &&
drivers/infiniband/hw/hfi1/driver.c
1507
(packet->dlid != be16_to_cpu(IB_LID_PERMISSIVE))))
drivers/infiniband/hw/hfi1/driver.c
1508
packet->dlid += opa_get_mcast_base(OPA_MCAST_NR) -
drivers/infiniband/hw/hfi1/driver.c
1510
packet->sl = ib_get_sl(hdr);
drivers/infiniband/hw/hfi1/driver.c
1511
packet->sc = hfi1_9B_get_sc5(hdr, packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
1512
packet->pad = ib_bth_get_pad(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1513
packet->extra_byte = 0;
drivers/infiniband/hw/hfi1/driver.c
1514
packet->pkey = ib_bth_get_pkey(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1515
packet->migrated = ib_bth_is_migration(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1523
static int hfi1_setup_bypass_packet(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1535
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/driver.c
1540
packet->hdr = (struct hfi1_16b_header *)
drivers/infiniband/hw/hfi1/driver.c
1541
hfi1_get_16B_header(packet->rcd,
drivers/infiniband/hw/hfi1/driver.c
1542
packet->rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
1543
l4 = hfi1_16B_get_l4(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1545
packet->ohdr = packet->ebuf;
drivers/infiniband/hw/hfi1/driver.c
1546
packet->grh = NULL;
drivers/infiniband/hw/hfi1/driver.c
1547
packet->opcode = ib_bth_get_opcode(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1548
packet->pad = hfi1_16B_bth_get_pad(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1550
packet->hlen = hdr_len_by_opcode[packet->opcode] +
drivers/infiniband/hw/hfi1/driver.c
1552
packet->migrated = opa_bth_is_migration(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1557
packet->ohdr = packet->ebuf + grh_len;
drivers/infiniband/hw/hfi1/driver.c
1558
packet->grh = packet->ebuf;
drivers/infiniband/hw/hfi1/driver.c
1559
packet->opcode = ib_bth_get_opcode(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1560
packet->pad = hfi1_16B_bth_get_pad(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1562
packet->hlen = hdr_len_by_opcode[packet->opcode] +
drivers/infiniband/hw/hfi1/driver.c
1564
packet->migrated = opa_bth_is_migration(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1566
if (packet->grh->next_hdr != IB_GRH_NEXT_HDR)
drivers/infiniband/hw/hfi1/driver.c
1568
vtf = be32_to_cpu(packet->grh->version_tclass_flow);
drivers/infiniband/hw/hfi1/driver.c
1572
packet->mgmt = packet->ebuf;
drivers/infiniband/hw/hfi1/driver.c
1573
packet->ohdr = NULL;
drivers/infiniband/hw/hfi1/driver.c
1574
packet->grh = NULL;
drivers/infiniband/hw/hfi1/driver.c
1575
packet->opcode = IB_OPCODE_UD_SEND_ONLY;
drivers/infiniband/hw/hfi1/driver.c
1576
packet->pad = OPA_16B_L4_FM_PAD;
drivers/infiniband/hw/hfi1/driver.c
1577
packet->hlen = OPA_16B_L4_FM_HLEN;
drivers/infiniband/hw/hfi1/driver.c
1578
packet->migrated = false;
drivers/infiniband/hw/hfi1/driver.c
1584
packet->payload = packet->ebuf + packet->hlen - LRH_16B_BYTES;
drivers/infiniband/hw/hfi1/driver.c
1585
packet->slid = hfi1_16B_get_slid(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1586
packet->dlid = hfi1_16B_get_dlid(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1587
if (unlikely(hfi1_is_16B_mcast(packet->dlid)))
drivers/infiniband/hw/hfi1/driver.c
1588
packet->dlid += opa_get_mcast_base(OPA_MCAST_NR) -
drivers/infiniband/hw/hfi1/driver.c
1591
packet->sc = hfi1_16B_get_sc(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1592
packet->sl = ibp->sc_to_sl[packet->sc];
drivers/infiniband/hw/hfi1/driver.c
1593
packet->extra_byte = SIZE_OF_LT;
drivers/infiniband/hw/hfi1/driver.c
1594
packet->pkey = hfi1_16B_get_pkey(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1596
if (hfi1_bypass_ingress_pkt_check(packet))
drivers/infiniband/hw/hfi1/driver.c
1606
static void show_eflags_errs(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1608
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/driver.c
1609
u32 rte = rhf_rcv_type_err(packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
1613
rcd->ctxt, packet->rhf,
drivers/infiniband/hw/hfi1/driver.c
1614
packet->rhf & RHF_K_HDR_LEN_ERR ? "k_hdr_len " : "",
drivers/infiniband/hw/hfi1/driver.c
1615
packet->rhf & RHF_DC_UNC_ERR ? "dc_unc " : "",
drivers/infiniband/hw/hfi1/driver.c
1616
packet->rhf & RHF_DC_ERR ? "dc " : "",
drivers/infiniband/hw/hfi1/driver.c
1617
packet->rhf & RHF_TID_ERR ? "tid " : "",
drivers/infiniband/hw/hfi1/driver.c
1618
packet->rhf & RHF_LEN_ERR ? "len " : "",
drivers/infiniband/hw/hfi1/driver.c
1619
packet->rhf & RHF_ECC_ERR ? "ecc " : "",
drivers/infiniband/hw/hfi1/driver.c
1620
packet->rhf & RHF_ICRC_ERR ? "icrc " : "",
drivers/infiniband/hw/hfi1/driver.c
1624
void handle_eflags(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1626
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/driver.c
1628
rcv_hdrerr(rcd, rcd->ppd, packet);
drivers/infiniband/hw/hfi1/driver.c
1629
if (rhf_err_flags(packet->rhf))
drivers/infiniband/hw/hfi1/driver.c
1630
show_eflags_errs(packet);
drivers/infiniband/hw/hfi1/driver.c
1633
static void hfi1_ipoib_ib_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1637
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/driver.c
1646
trace_hfi1_rcvhdr(packet);
drivers/infiniband/hw/hfi1/driver.c
1648
hfi1_setup_ib_header(packet);
drivers/infiniband/hw/hfi1/driver.c
1650
packet->ohdr = &((struct ib_header *)packet->hdr)->u.oth;
drivers/infiniband/hw/hfi1/driver.c
1651
packet->grh = NULL;
drivers/infiniband/hw/hfi1/driver.c
1653
if (unlikely(rhf_err_flags(packet->rhf))) {
drivers/infiniband/hw/hfi1/driver.c
1654
handle_eflags(packet);
drivers/infiniband/hw/hfi1/driver.c
1658
qpnum = ib_bth_get_qpn(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
1663
trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf)));
drivers/infiniband/hw/hfi1/driver.c
1667
do_work = hfi1_may_ecn(packet);
drivers/infiniband/hw/hfi1/driver.c
1669
do_cnp = (packet->opcode != IB_OPCODE_CNP);
drivers/infiniband/hw/hfi1/driver.c
1671
packet, do_cnp);
drivers/infiniband/hw/hfi1/driver.c
1680
tlen = packet->tlen;
drivers/infiniband/hw/hfi1/driver.c
1681
extra_bytes = ib_bth_get_pad(packet->ohdr) + (SIZE_OF_CRC << 2) +
drivers/infiniband/hw/hfi1/driver.c
1682
packet->hlen;
drivers/infiniband/hw/hfi1/driver.c
1688
skb = hfi1_ipoib_prepare_skb(rxq, tlen, packet->ebuf);
drivers/infiniband/hw/hfi1/driver.c
1703
ibp = rcd_to_iport(packet->rcd);
drivers/infiniband/hw/hfi1/driver.c
1711
static void process_receive_ib(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1713
if (hfi1_setup_9B_packet(packet))
drivers/infiniband/hw/hfi1/driver.c
1716
if (unlikely(hfi1_dbg_should_fault_rx(packet)))
drivers/infiniband/hw/hfi1/driver.c
1719
trace_hfi1_rcvhdr(packet);
drivers/infiniband/hw/hfi1/driver.c
1721
if (unlikely(rhf_err_flags(packet->rhf))) {
drivers/infiniband/hw/hfi1/driver.c
1722
handle_eflags(packet);
drivers/infiniband/hw/hfi1/driver.c
1726
hfi1_ib_rcv(packet);
drivers/infiniband/hw/hfi1/driver.c
1729
static void process_receive_bypass(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1731
struct hfi1_devdata *dd = packet->rcd->dd;
drivers/infiniband/hw/hfi1/driver.c
1733
if (hfi1_setup_bypass_packet(packet))
drivers/infiniband/hw/hfi1/driver.c
1736
trace_hfi1_rcvhdr(packet);
drivers/infiniband/hw/hfi1/driver.c
1738
if (unlikely(rhf_err_flags(packet->rhf))) {
drivers/infiniband/hw/hfi1/driver.c
1739
handle_eflags(packet);
drivers/infiniband/hw/hfi1/driver.c
1743
if (hfi1_16B_get_l2(packet->hdr) == 0x2) {
drivers/infiniband/hw/hfi1/driver.c
1744
hfi1_16B_rcv(packet);
drivers/infiniband/hw/hfi1/driver.c
1751
u64 *flits = packet->ebuf;
drivers/infiniband/hw/hfi1/driver.c
1753
if (flits && !(packet->rhf & RHF_LEN_ERR)) {
drivers/infiniband/hw/hfi1/driver.c
1756
packet->tlen > sizeof(flits[0]) ?
drivers/infiniband/hw/hfi1/driver.c
1765
static void process_receive_error(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1769
hfi1_dbg_fault_suppress_err(&packet->rcd->dd->verbs_dev) &&
drivers/infiniband/hw/hfi1/driver.c
1770
(rhf_rcv_type_err(packet->rhf) == RHF_RCV_TYPE_ERROR ||
drivers/infiniband/hw/hfi1/driver.c
1771
packet->rhf & RHF_DC_ERR)))
drivers/infiniband/hw/hfi1/driver.c
1774
hfi1_setup_ib_header(packet);
drivers/infiniband/hw/hfi1/driver.c
1775
handle_eflags(packet);
drivers/infiniband/hw/hfi1/driver.c
1777
if (unlikely(rhf_err_flags(packet->rhf)))
drivers/infiniband/hw/hfi1/driver.c
1778
dd_dev_err(packet->rcd->dd,
drivers/infiniband/hw/hfi1/driver.c
1782
static void kdeth_process_expected(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1784
hfi1_setup_9B_packet(packet);
drivers/infiniband/hw/hfi1/driver.c
1785
if (unlikely(hfi1_dbg_should_fault_rx(packet)))
drivers/infiniband/hw/hfi1/driver.c
1788
if (unlikely(rhf_err_flags(packet->rhf))) {
drivers/infiniband/hw/hfi1/driver.c
1789
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/driver.c
1791
if (hfi1_handle_kdeth_eflags(rcd, rcd->ppd, packet))
drivers/infiniband/hw/hfi1/driver.c
1795
hfi1_kdeth_expected_rcv(packet);
drivers/infiniband/hw/hfi1/driver.c
1798
static void kdeth_process_eager(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1800
hfi1_setup_9B_packet(packet);
drivers/infiniband/hw/hfi1/driver.c
1801
if (unlikely(hfi1_dbg_should_fault_rx(packet)))
drivers/infiniband/hw/hfi1/driver.c
1804
trace_hfi1_rcvhdr(packet);
drivers/infiniband/hw/hfi1/driver.c
1805
if (unlikely(rhf_err_flags(packet->rhf))) {
drivers/infiniband/hw/hfi1/driver.c
1806
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/driver.c
1808
show_eflags_errs(packet);
drivers/infiniband/hw/hfi1/driver.c
1809
if (hfi1_handle_kdeth_eflags(rcd, rcd->ppd, packet))
drivers/infiniband/hw/hfi1/driver.c
1813
hfi1_kdeth_eager_rcv(packet);
drivers/infiniband/hw/hfi1/driver.c
1816
static void process_receive_invalid(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
1818
dd_dev_err(packet->rcd->dd, "Invalid packet type %d. Dropping\n",
drivers/infiniband/hw/hfi1/driver.c
1819
rhf_rcv_type(packet->rhf));
drivers/infiniband/hw/hfi1/driver.c
1826
struct hfi1_packet packet;
drivers/infiniband/hw/hfi1/driver.c
1841
init_packet(rcd, &packet);
drivers/infiniband/hw/hfi1/driver.c
1842
init_ps_mdata(&mdata, &packet);
drivers/infiniband/hw/hfi1/driver.c
1863
packet.hdr = hfi1_get_msgheader(rcd, rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
1864
hdr = packet.hdr;
drivers/infiniband/hw/hfi1/driver.c
1869
packet.ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/driver.c
1871
packet.ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/driver.c
1875
opcode = (be32_to_cpu(packet.ohdr->bth[0]) >> 24);
drivers/infiniband/hw/hfi1/driver.c
1876
qpn = be32_to_cpu(packet.ohdr->bth[1]) & RVT_QPN_MASK;
drivers/infiniband/hw/hfi1/driver.c
1877
psn = mask_psn(be32_to_cpu(packet.ohdr->bth[2]));
drivers/infiniband/hw/hfi1/driver.c
208
struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
210
struct ib_header *rhdr = packet->hdr;
drivers/infiniband/hw/hfi1/driver.c
211
u32 rte = rhf_rcv_type_err(packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
218
if ((packet->rhf & RHF_DC_ERR) &&
drivers/infiniband/hw/hfi1/driver.c
222
if (packet->rhf & RHF_ICRC_ERR)
drivers/infiniband/hw/hfi1/driver.c
225
if (packet->etype == RHF_RCV_TYPE_BYPASS) {
drivers/infiniband/hw/hfi1/driver.c
232
packet->ohdr = &rhdr->u.oth;
drivers/infiniband/hw/hfi1/driver.c
234
packet->ohdr = &rhdr->u.l.oth;
drivers/infiniband/hw/hfi1/driver.c
235
packet->grh = &rhdr->u.l.grh;
drivers/infiniband/hw/hfi1/driver.c
241
if (packet->rhf & RHF_TID_ERR) {
drivers/infiniband/hw/hfi1/driver.c
243
u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */
drivers/infiniband/hw/hfi1/driver.c
252
if (packet->grh) {
drivers/infiniband/hw/hfi1/driver.c
254
struct ib_grh *grh = packet->grh;
drivers/infiniband/hw/hfi1/driver.c
264
qp_num = ib_bth_get_qpn(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
290
hfi1_rc_hdrerr(rcd, packet, qp);
drivers/infiniband/hw/hfi1/driver.c
309
if (rhf_use_egr_bfr(packet->rhf))
drivers/infiniband/hw/hfi1/driver.c
310
ebuf = packet->ebuf;
drivers/infiniband/hw/hfi1/driver.c
315
opcode = ib_bth_get_opcode(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
326
sc5 = hfi1_9B_get_sc5(rhdr, packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
329
lqpn = ib_bth_get_qpn(packet->ohdr);
drivers/infiniband/hw/hfi1/driver.c
357
packet->rhf &= ~RHF_RCV_TYPE_ERR_SMASK;
drivers/infiniband/hw/hfi1/driver.c
369
struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
371
packet->rsize = get_hdrqentsize(rcd); /* words */
drivers/infiniband/hw/hfi1/driver.c
372
packet->maxcnt = get_hdrq_cnt(rcd) * packet->rsize; /* words */
drivers/infiniband/hw/hfi1/driver.c
373
packet->rcd = rcd;
drivers/infiniband/hw/hfi1/driver.c
374
packet->updegr = 0;
drivers/infiniband/hw/hfi1/driver.c
375
packet->etail = -1;
drivers/infiniband/hw/hfi1/driver.c
376
packet->rhf_addr = get_rhf_addr(rcd);
drivers/infiniband/hw/hfi1/driver.c
377
packet->rhf = rhf_to_cpu(packet->rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
378
packet->rhqoff = hfi1_rcd_head(rcd);
drivers/infiniband/hw/hfi1/driver.c
379
packet->numpkt = 0;
drivers/infiniband/hw/hfi1/driver.c
502
struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
504
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/driver.c
507
mdata->rsize = packet->rsize;
drivers/infiniband/hw/hfi1/driver.c
508
mdata->maxcnt = packet->maxcnt;
drivers/infiniband/hw/hfi1/driver.c
509
mdata->ps_head = packet->rhqoff;
drivers/infiniband/hw/hfi1/driver.c
565
#define prescan_rxq(rcd, packet) \
drivers/infiniband/hw/hfi1/driver.c
568
__prescan_rxq(packet); \
drivers/infiniband/hw/hfi1/driver.c
570
static void __prescan_rxq(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
572
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/driver.c
575
init_ps_mdata(&mdata, packet);
drivers/infiniband/hw/hfi1/driver.c
580
packet->rcd->rhf_offset;
drivers/infiniband/hw/hfi1/driver.c
597
packet->hdr = hfi1_get_msgheader(packet->rcd, rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
598
hdr = packet->hdr;
drivers/infiniband/hw/hfi1/driver.c
602
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/driver.c
603
packet->grh = NULL;
drivers/infiniband/hw/hfi1/driver.c
605
packet->ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/driver.c
606
packet->grh = &hdr->u.l.grh;
drivers/infiniband/hw/hfi1/driver.c
611
if (!hfi1_may_ecn(packet))
drivers/infiniband/hw/hfi1/driver.c
614
bth1 = be32_to_cpu(packet->ohdr->bth[1]);
drivers/infiniband/hw/hfi1/driver.c
624
hfi1_process_ecn_slowpath(qp, packet, true);
drivers/infiniband/hw/hfi1/driver.c
629
packet->ohdr->bth[1] = cpu_to_be32(bth1);
drivers/infiniband/hw/hfi1/driver.c
635
static void process_rcv_qp_work(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
638
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/driver.c
648
packet->qp = qp;
drivers/infiniband/hw/hfi1/driver.c
649
hfi1_send_rc_ack(packet, 0);
drivers/infiniband/hw/hfi1/driver.c
665
static noinline int max_packet_exceeded(struct hfi1_packet *packet, int thread)
drivers/infiniband/hw/hfi1/driver.c
668
if ((packet->numpkt & (MAX_PKT_RECV_THREAD - 1)) == 0)
drivers/infiniband/hw/hfi1/driver.c
670
process_rcv_qp_work(packet);
drivers/infiniband/hw/hfi1/driver.c
674
this_cpu_inc(*packet->rcd->dd->rcv_limit);
drivers/infiniband/hw/hfi1/driver.c
679
static inline int check_max_packet(struct hfi1_packet *packet, int thread)
drivers/infiniband/hw/hfi1/driver.c
683
if (unlikely((packet->numpkt & (MAX_PKT_RECV - 1)) == 0))
drivers/infiniband/hw/hfi1/driver.c
684
ret = max_packet_exceeded(packet, thread);
drivers/infiniband/hw/hfi1/driver.c
688
static noinline int skip_rcv_packet(struct hfi1_packet *packet, int thread)
drivers/infiniband/hw/hfi1/driver.c
692
packet->rcd->dd->ctx0_seq_drop++;
drivers/infiniband/hw/hfi1/driver.c
694
packet->rhqoff += packet->rsize;
drivers/infiniband/hw/hfi1/driver.c
695
if (packet->rhqoff >= packet->maxcnt)
drivers/infiniband/hw/hfi1/driver.c
696
packet->rhqoff = 0;
drivers/infiniband/hw/hfi1/driver.c
698
packet->numpkt++;
drivers/infiniband/hw/hfi1/driver.c
699
ret = check_max_packet(packet, thread);
drivers/infiniband/hw/hfi1/driver.c
701
packet->rhf_addr = (__le32 *)packet->rcd->rcvhdrq + packet->rhqoff +
drivers/infiniband/hw/hfi1/driver.c
702
packet->rcd->rhf_offset;
drivers/infiniband/hw/hfi1/driver.c
703
packet->rhf = rhf_to_cpu(packet->rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
708
static void process_rcv_packet_napi(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
710
packet->etype = rhf_rcv_type(packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
713
packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */
drivers/infiniband/hw/hfi1/driver.c
715
packet->etail = rhf_egr_index(packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
716
packet->ebuf = get_egrbuf(packet->rcd, packet->rhf,
drivers/infiniband/hw/hfi1/driver.c
717
&packet->updegr);
drivers/infiniband/hw/hfi1/driver.c
723
prefetch_range(packet->ebuf,
drivers/infiniband/hw/hfi1/driver.c
724
packet->tlen - ((packet->rcd->rcvhdrqentsize -
drivers/infiniband/hw/hfi1/driver.c
725
(rhf_hdrq_offset(packet->rhf)
drivers/infiniband/hw/hfi1/driver.c
728
packet->rcd->rhf_rcv_function_map[packet->etype](packet);
drivers/infiniband/hw/hfi1/driver.c
729
packet->numpkt++;
drivers/infiniband/hw/hfi1/driver.c
732
packet->rhqoff += packet->rsize;
drivers/infiniband/hw/hfi1/driver.c
733
if (packet->rhqoff >= packet->maxcnt)
drivers/infiniband/hw/hfi1/driver.c
734
packet->rhqoff = 0;
drivers/infiniband/hw/hfi1/driver.c
736
packet->rhf_addr = (__le32 *)packet->rcd->rcvhdrq + packet->rhqoff +
drivers/infiniband/hw/hfi1/driver.c
737
packet->rcd->rhf_offset;
drivers/infiniband/hw/hfi1/driver.c
738
packet->rhf = rhf_to_cpu(packet->rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
741
static inline int process_rcv_packet(struct hfi1_packet *packet, int thread)
drivers/infiniband/hw/hfi1/driver.c
745
packet->etype = rhf_rcv_type(packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
748
packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */
drivers/infiniband/hw/hfi1/driver.c
750
packet->ebuf = NULL;
drivers/infiniband/hw/hfi1/driver.c
751
if (rhf_use_egr_bfr(packet->rhf)) {
drivers/infiniband/hw/hfi1/driver.c
752
packet->etail = rhf_egr_index(packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
753
packet->ebuf = get_egrbuf(packet->rcd, packet->rhf,
drivers/infiniband/hw/hfi1/driver.c
754
&packet->updegr);
drivers/infiniband/hw/hfi1/driver.c
760
prefetch_range(packet->ebuf,
drivers/infiniband/hw/hfi1/driver.c
761
packet->tlen - ((get_hdrqentsize(packet->rcd) -
drivers/infiniband/hw/hfi1/driver.c
762
(rhf_hdrq_offset(packet->rhf)
drivers/infiniband/hw/hfi1/driver.c
774
packet->rcd->rhf_rcv_function_map[packet->etype](packet);
drivers/infiniband/hw/hfi1/driver.c
775
packet->numpkt++;
drivers/infiniband/hw/hfi1/driver.c
778
packet->rhqoff += packet->rsize;
drivers/infiniband/hw/hfi1/driver.c
779
if (packet->rhqoff >= packet->maxcnt)
drivers/infiniband/hw/hfi1/driver.c
780
packet->rhqoff = 0;
drivers/infiniband/hw/hfi1/driver.c
782
ret = check_max_packet(packet, thread);
drivers/infiniband/hw/hfi1/driver.c
784
packet->rhf_addr = (__le32 *)packet->rcd->rcvhdrq + packet->rhqoff +
drivers/infiniband/hw/hfi1/driver.c
785
packet->rcd->rhf_offset;
drivers/infiniband/hw/hfi1/driver.c
786
packet->rhf = rhf_to_cpu(packet->rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
791
static inline void process_rcv_update(int last, struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
799
if (!last && !(packet->numpkt & 0xf)) {
drivers/infiniband/hw/hfi1/driver.c
800
update_usrhead(packet->rcd, packet->rhqoff, packet->updegr,
drivers/infiniband/hw/hfi1/driver.c
801
packet->etail, 0, 0);
drivers/infiniband/hw/hfi1/driver.c
802
packet->updegr = 0;
drivers/infiniband/hw/hfi1/driver.c
804
packet->grh = NULL;
drivers/infiniband/hw/hfi1/driver.c
807
static inline void finish_packet(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
815
update_usrhead(packet->rcd, hfi1_rcd_head(packet->rcd), packet->updegr,
drivers/infiniband/hw/hfi1/driver.c
816
packet->etail, rcv_intr_dynamic, packet->numpkt);
drivers/infiniband/hw/hfi1/driver.c
830
struct hfi1_packet packet;
drivers/infiniband/hw/hfi1/driver.c
832
init_packet(rcd, &packet);
drivers/infiniband/hw/hfi1/driver.c
833
if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf)))
drivers/infiniband/hw/hfi1/driver.c
836
while (packet.numpkt < budget) {
drivers/infiniband/hw/hfi1/driver.c
837
process_rcv_packet_napi(&packet);
drivers/infiniband/hw/hfi1/driver.c
838
if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf)))
drivers/infiniband/hw/hfi1/driver.c
841
process_rcv_update(0, &packet);
drivers/infiniband/hw/hfi1/driver.c
843
hfi1_set_rcd_head(rcd, packet.rhqoff);
drivers/infiniband/hw/hfi1/driver.c
845
finish_packet(&packet);
drivers/infiniband/hw/hfi1/driver.c
846
return packet.numpkt;
drivers/infiniband/hw/hfi1/driver.c
855
struct hfi1_packet packet;
drivers/infiniband/hw/hfi1/driver.c
857
init_packet(rcd, &packet);
drivers/infiniband/hw/hfi1/driver.c
858
if (last_rcv_seq(rcd, rhf_rcv_seq(packet.rhf))) {
drivers/infiniband/hw/hfi1/driver.c
863
prescan_rxq(rcd, &packet);
drivers/infiniband/hw/hfi1/driver.c
866
last = process_rcv_packet(&packet, thread);
drivers/infiniband/hw/hfi1/driver.c
867
if (hfi1_seq_incr(rcd, rhf_rcv_seq(packet.rhf)))
drivers/infiniband/hw/hfi1/driver.c
869
process_rcv_update(last, &packet);
drivers/infiniband/hw/hfi1/driver.c
871
process_rcv_qp_work(&packet);
drivers/infiniband/hw/hfi1/driver.c
872
hfi1_set_rcd_head(rcd, packet.rhqoff);
drivers/infiniband/hw/hfi1/driver.c
874
finish_packet(&packet);
drivers/infiniband/hw/hfi1/driver.c
882
struct hfi1_packet packet;
drivers/infiniband/hw/hfi1/driver.c
884
init_packet(rcd, &packet);
drivers/infiniband/hw/hfi1/driver.c
886
if (packet.rhqoff == hdrqtail) {
drivers/infiniband/hw/hfi1/driver.c
892
prescan_rxq(rcd, &packet);
drivers/infiniband/hw/hfi1/driver.c
895
last = process_rcv_packet(&packet, thread);
drivers/infiniband/hw/hfi1/driver.c
896
if (packet.rhqoff == hdrqtail)
drivers/infiniband/hw/hfi1/driver.c
898
process_rcv_update(last, &packet);
drivers/infiniband/hw/hfi1/driver.c
900
process_rcv_qp_work(&packet);
drivers/infiniband/hw/hfi1/driver.c
901
hfi1_set_rcd_head(rcd, packet.rhqoff);
drivers/infiniband/hw/hfi1/driver.c
903
finish_packet(&packet);
drivers/infiniband/hw/hfi1/driver.c
948
static bool __set_armed_to_active(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
950
u8 etype = rhf_rcv_type(packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
954
struct ib_header *hdr = hfi1_get_msgheader(packet->rcd,
drivers/infiniband/hw/hfi1/driver.c
955
packet->rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
956
sc = hfi1_9B_get_sc5(hdr, packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
959
packet->rcd,
drivers/infiniband/hw/hfi1/driver.c
960
packet->rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
964
int hwstate = driver_lstate(packet->rcd->ppd);
drivers/infiniband/hw/hfi1/driver.c
966
&packet->rcd->ppd->linkstate_active_work;
drivers/infiniband/hw/hfi1/driver.c
969
dd_dev_info(packet->rcd->dd,
drivers/infiniband/hw/hfi1/driver.c
975
queue_work(packet->rcd->ppd->link_wq, lsaw);
drivers/infiniband/hw/hfi1/driver.c
987
static bool set_armed_to_active(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/driver.c
989
if (likely(packet->rcd->ppd->host_link_state != HLS_UP_ARMED))
drivers/infiniband/hw/hfi1/driver.c
991
return __set_armed_to_active(packet);
drivers/infiniband/hw/hfi1/fault.c
309
bool hfi1_dbg_should_fault_rx(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/fault.c
311
struct hfi1_ibdev *ibd = &packet->rcd->dd->verbs_dev;
drivers/infiniband/hw/hfi1/fault.c
313
if (__hfi1_should_fault(ibd, packet->opcode, HFI1_FAULT_DIR_RX)) {
drivers/infiniband/hw/hfi1/fault.c
314
trace_hfi1_fault_packet(packet);
drivers/infiniband/hw/hfi1/fault.c
315
ibd->fault->n_rxfaults[packet->opcode]++;
drivers/infiniband/hw/hfi1/fault.h
38
bool hfi1_dbg_should_fault_rx(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/fault.h
49
static inline bool hfi1_dbg_should_fault_rx(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/hfi.h
162
typedef void (*rhf_rcv_function_ptr)(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/hfi.h
2181
void handle_eflags(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/hfi.h
2557
static inline void hfi1_make_ext_grh(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/hfi.h
2561
struct hfi1_ibport *ibp = &packet->rcd->ppd->ibport_data;
drivers/infiniband/hw/hfi1/hfi.h
935
typedef void (*opcode_handler)(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/rc.c
1196
static inline void hfi1_queue_rc_ack(struct hfi1_packet *packet, bool is_fecn)
drivers/infiniband/hw/hfi1/rc.c
1198
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/rc.c
1205
ibp = rcd_to_iport(packet->rcd);
drivers/infiniband/hw/hfi1/rc.c
1219
static inline void hfi1_make_rc_ack_9B(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/rc.c
1225
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/rc.c
1226
struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
drivers/infiniband/hw/hfi1/rc.c
1272
static inline void hfi1_make_rc_ack_16B(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/rc.c
1278
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/rc.c
1279
struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
drivers/infiniband/hw/hfi1/rc.c
1325
typedef void (*hfi1_make_rc_ack)(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/rc.c
1344
void hfi1_send_rc_ack(struct hfi1_packet *packet, bool is_fecn)
drivers/infiniband/hw/hfi1/rc.c
1346
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/rc.c
1347
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/rc.c
1364
hfi1_queue_rc_ack(packet, is_fecn);
drivers/infiniband/hw/hfi1/rc.c
1370
hfi1_queue_rc_ack(packet, is_fecn);
drivers/infiniband/hw/hfi1/rc.c
1379
hfi1_make_rc_ack_tbl[priv->hdr_type](packet, &opa_hdr, sc5, is_fecn,
drivers/infiniband/hw/hfi1/rc.c
1393
hfi1_queue_rc_ack(packet, is_fecn);
drivers/infiniband/hw/hfi1/rc.c
2302
static void rc_rcv_resp(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/rc.c
2304
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/rc.c
2305
void *data = packet->payload;
drivers/infiniband/hw/hfi1/rc.c
2306
u32 tlen = packet->tlen;
drivers/infiniband/hw/hfi1/rc.c
2307
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/rc.c
2309
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/rc.c
2316
u32 psn = ib_bth_get_psn(packet->ohdr);
drivers/infiniband/hw/hfi1/rc.c
2318
u16 hdrsize = packet->hlen;
drivers/infiniband/hw/hfi1/rc.c
2319
u8 opcode = packet->opcode;
drivers/infiniband/hw/hfi1/rc.c
2320
u8 pad = packet->pad;
drivers/infiniband/hw/hfi1/rc.c
2321
u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
drivers/infiniband/hw/hfi1/rc.c
2763
void hfi1_rc_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/rc.c
2765
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/rc.c
2766
void *data = packet->payload;
drivers/infiniband/hw/hfi1/rc.c
2767
u32 tlen = packet->tlen;
drivers/infiniband/hw/hfi1/rc.c
2768
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/rc.c
2771
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/rc.c
2772
u32 opcode = packet->opcode;
drivers/infiniband/hw/hfi1/rc.c
2773
u32 hdrsize = packet->hlen;
drivers/infiniband/hw/hfi1/rc.c
2774
u32 psn = ib_bth_get_psn(packet->ohdr);
drivers/infiniband/hw/hfi1/rc.c
2775
u32 pad = packet->pad;
drivers/infiniband/hw/hfi1/rc.c
2784
u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
drivers/infiniband/hw/hfi1/rc.c
2788
if (hfi1_ruc_check_hdr(ibp, packet))
drivers/infiniband/hw/hfi1/rc.c
2791
fecn = process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/rc.c
2802
rc_rcv_resp(packet);
drivers/infiniband/hw/hfi1/rc.c
3164
if (packet->numpkt == 0 || fecn ||
drivers/infiniband/hw/hfi1/rc.c
3206
hfi1_send_rc_ack(packet, fecn);
drivers/infiniband/hw/hfi1/rc.c
3211
struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/rc.c
3219
if (hfi1_ruc_check_hdr(ibp, packet))
drivers/infiniband/hw/hfi1/rc.c
3222
psn = ib_bth_get_psn(packet->ohdr);
drivers/infiniband/hw/hfi1/rc.c
3223
opcode = ib_bth_get_opcode(packet->ohdr);
drivers/infiniband/hw/hfi1/ruc.c
27
int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/ruc.c
31
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/ruc.c
33
u32 dlid = packet->dlid;
drivers/infiniband/hw/hfi1/ruc.c
34
u32 slid = packet->slid;
drivers/infiniband/hw/hfi1/ruc.c
35
u32 sl = packet->sl;
drivers/infiniband/hw/hfi1/ruc.c
36
bool migrated = packet->migrated;
drivers/infiniband/hw/hfi1/ruc.c
37
u16 pkey = packet->pkey;
drivers/infiniband/hw/hfi1/ruc.c
40
if (!packet->grh) {
drivers/infiniband/hw/hfi1/ruc.c
43
(packet->etype != RHF_RCV_TYPE_BYPASS))
drivers/infiniband/hw/hfi1/ruc.c
53
if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix,
drivers/infiniband/hw/hfi1/ruc.c
57
&packet->grh->sgid,
drivers/infiniband/hw/hfi1/ruc.c
77
if (!packet->grh) {
drivers/infiniband/hw/hfi1/ruc.c
80
(packet->etype != RHF_RCV_TYPE_BYPASS))
drivers/infiniband/hw/hfi1/ruc.c
90
if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix,
drivers/infiniband/hw/hfi1/ruc.c
94
&packet->grh->sgid,
drivers/infiniband/hw/hfi1/tid_rdma.c
128
static void tid_rdma_rcv_err(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/tid_rdma.c
131
static void update_r_next_psn_fecn(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/tid_rdma.c
1891
struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/tid_rdma.c
1906
pktlen = packet->tlen - (packet->hlen + 4);
drivers/infiniband/hw/hfi1/tid_rdma.c
1909
memcpy(flow->tid_entry, packet->ebuf, pktlen);
drivers/infiniband/hw/hfi1/tid_rdma.c
1985
static int tid_rdma_rcv_error(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/tid_rdma.c
2062
if (tid_rdma_rcv_read_request(qp, e, packet, ohdr, bth0, psn,
drivers/infiniband/hw/hfi1/tid_rdma.c
2215
void hfi1_rc_rcv_tid_rdma_read_req(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/tid_rdma.c
2230
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/tid_rdma.c
2231
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
2233
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
2246
if (hfi1_ruc_check_hdr(ibp, packet))
drivers/infiniband/hw/hfi1/tid_rdma.c
2249
fecn = process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/tid_rdma.c
2268
tid_rdma_rcv_err(packet, ohdr, qp, psn, diff, fecn);
drivers/infiniband/hw/hfi1/tid_rdma.c
2295
if (tid_rdma_rcv_read_request(qp, e, packet, ohdr, bth0, psn, vaddr,
drivers/infiniband/hw/hfi1/tid_rdma.c
2440
void hfi1_rc_rcv_tid_rdma_read_resp(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/tid_rdma.c
2451
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
2452
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
2454
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/tid_rdma.c
2463
fecn = process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/tid_rdma.c
2477
update_r_next_psn_fecn(packet, priv, rcd, flow, fecn);
drivers/infiniband/hw/hfi1/tid_rdma.c
2489
if (fecn && packet->etype == RHF_RCV_TYPE_EAGER) {
drivers/infiniband/hw/hfi1/tid_rdma.c
2492
u32 tlen = packet->tlen;
drivers/infiniband/hw/hfi1/tid_rdma.c
2493
u16 hdrsize = packet->hlen;
drivers/infiniband/hw/hfi1/tid_rdma.c
2494
u8 pad = packet->pad;
drivers/infiniband/hw/hfi1/tid_rdma.c
2495
u8 extra_bytes = pad + packet->extra_byte +
drivers/infiniband/hw/hfi1/tid_rdma.c
2504
rvt_copy_sge(qp, &ss, packet->payload, pmtu, false,
drivers/infiniband/hw/hfi1/tid_rdma.c
2602
static bool tid_rdma_tid_err(struct hfi1_packet *packet, u8 rcv_type)
drivers/infiniband/hw/hfi1/tid_rdma.c
2604
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
2656
struct hfi1_packet *packet, u8 rcv_type,
drivers/infiniband/hw/hfi1/tid_rdma.c
2658
__must_hold(&packet->qp->r_lock) __must_hold(RCU)
drivers/infiniband/hw/hfi1/tid_rdma.c
2667
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
2847
struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/tid_rdma.c
2852
u8 rcv_type = rhf_rcv_type(packet->rhf);
drivers/infiniband/hw/hfi1/tid_rdma.c
2853
u8 rte = rhf_rcv_type_err(packet->rhf);
drivers/infiniband/hw/hfi1/tid_rdma.c
2854
struct ib_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
2870
packet->rhf);
drivers/infiniband/hw/hfi1/tid_rdma.c
2871
if (packet->rhf & RHF_ICRC_ERR)
drivers/infiniband/hw/hfi1/tid_rdma.c
2874
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/tid_rdma.c
2875
ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
2876
trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf)));
drivers/infiniband/hw/hfi1/tid_rdma.c
2892
packet->qp = qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
2901
if (packet->rhf & RHF_TID_ERR) {
drivers/infiniband/hw/hfi1/tid_rdma.c
2903
u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */
drivers/infiniband/hw/hfi1/tid_rdma.c
2916
if (tid_rdma_tid_err(packet, rcv_type))
drivers/infiniband/hw/hfi1/tid_rdma.c
2924
ret = handle_read_kdeth_eflags(rcd, packet, rcv_type, rte, psn,
drivers/infiniband/hw/hfi1/tid_rdma.c
3644
void hfi1_rc_rcv_tid_rdma_write_req(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/tid_rdma.c
3659
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/tid_rdma.c
3660
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
3662
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
3675
if (hfi1_ruc_check_hdr(ibp, packet))
drivers/infiniband/hw/hfi1/tid_rdma.c
3678
fecn = process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/tid_rdma.c
3695
tid_rdma_rcv_err(packet, ohdr, qp, psn, diff, fecn);
drivers/infiniband/hw/hfi1/tid_rdma.c
4027
void hfi1_rc_rcv_tid_rdma_write_resp(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/tid_rdma.c
4040
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
4041
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
4043
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/tid_rdma.c
4052
fecn = process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/tid_rdma.c
4126
pktlen = packet->tlen - (packet->hlen + 4);
drivers/infiniband/hw/hfi1/tid_rdma.c
4131
memcpy(flow->tid_entry, packet->ebuf, pktlen);
drivers/infiniband/hw/hfi1/tid_rdma.c
4269
void hfi1_rc_rcv_tid_rdma_write_data(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/tid_rdma.c
4271
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
4274
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
4284
fecn = process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/tid_rdma.c
4297
update_r_next_psn_fecn(packet, priv, rcd, flow, fecn);
drivers/infiniband/hw/hfi1/tid_rdma.c
4310
if (fecn && packet->etype == RHF_RCV_TYPE_EAGER) {
drivers/infiniband/hw/hfi1/tid_rdma.c
4313
u32 tlen = packet->tlen;
drivers/infiniband/hw/hfi1/tid_rdma.c
4314
u16 hdrsize = packet->hlen;
drivers/infiniband/hw/hfi1/tid_rdma.c
4315
u8 pad = packet->pad;
drivers/infiniband/hw/hfi1/tid_rdma.c
4316
u8 extra_bytes = pad + packet->extra_byte +
drivers/infiniband/hw/hfi1/tid_rdma.c
4338
rvt_copy_sge(qp, &ss, packet->payload, pmtu, false,
drivers/infiniband/hw/hfi1/tid_rdma.c
4497
void hfi1_rc_rcv_tid_rdma_ack(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/tid_rdma.c
4499
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
4500
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
4510
process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/tid_rdma.c
4870
void hfi1_rc_rcv_tid_rdma_resync(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/tid_rdma.c
4872
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
4873
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/tid_rdma.c
4885
fecn = process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/tid_rdma.c
5503
static void tid_rdma_rcv_err(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/tid_rdma.c
5509
tid_rdma_rcv_error(packet, ohdr, qp, psn, diff);
drivers/infiniband/hw/hfi1/tid_rdma.c
5517
static void update_r_next_psn_fecn(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/tid_rdma.c
5527
if (fecn && packet->etype == RHF_RCV_TYPE_EAGER &&
drivers/infiniband/hw/hfi1/tid_rdma.h
250
void hfi1_rc_rcv_tid_rdma_read_req(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/tid_rdma.h
254
void hfi1_rc_rcv_tid_rdma_read_resp(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/tid_rdma.h
257
struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/tid_rdma.h
278
void hfi1_rc_rcv_tid_rdma_write_req(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/tid_rdma.h
287
void hfi1_rc_rcv_tid_rdma_write_resp(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/tid_rdma.h
293
void hfi1_rc_rcv_tid_rdma_write_data(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/tid_rdma.h
299
void hfi1_rc_rcv_tid_rdma_ack(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/tid_rdma.h
308
void hfi1_rc_rcv_tid_rdma_resync(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/trace.c
45
u8 hfi1_trace_packet_hdr_len(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/trace.c
47
if (packet->etype != RHF_RCV_TYPE_BYPASS)
drivers/infiniband/hw/hfi1/trace.c
48
return __get_ib_hdr_len(packet->hdr);
drivers/infiniband/hw/hfi1/trace.c
50
return __get_16b_hdr_len(packet->hdr);
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
116
struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
118
TP_ARGS(dd, packet, sc5),
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
149
hfi1_trace_packet_hdr_len(packet))
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
154
__entry->etype = packet->etype;
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
155
__entry->l2 = hfi1_16B_get_l2(packet->hdr);
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
159
hfi1_trace_parse_16b_hdr(packet->hdr,
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
174
__entry->dest_qpn = hfi1_16B_get_dest_qpn(packet->mgmt);
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
175
__entry->src_qpn = hfi1_16B_get_src_qpn(packet->mgmt);
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
177
hfi1_trace_parse_16b_bth(packet->ohdr,
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
189
hfi1_trace_parse_9b_hdr(packet->hdr, sc5,
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
198
hfi1_trace_parse_9b_bth(packet->ohdr,
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
214
&packet->ohdr->u,
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
272
struct hfi1_packet *packet, bool sc5),
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
273
TP_ARGS(dd, packet, sc5));
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
72
u8 hfi1_trace_packet_hdr_len(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/trace_misc.h
71
TP_PROTO(struct hfi1_packet *packet),
drivers/infiniband/hw/hfi1/trace_misc.h
72
TP_ARGS(packet),
drivers/infiniband/hw/hfi1/trace_misc.h
73
TP_STRUCT__entry(DD_DEV_ENTRY(packet->rcd->ppd->dd)
drivers/infiniband/hw/hfi1/trace_misc.h
81
TP_fast_assign(DD_DEV_ASSIGN(packet->rcd->ppd->dd);
drivers/infiniband/hw/hfi1/trace_misc.h
82
__entry->eflags = rhf_err_flags(packet->rhf);
drivers/infiniband/hw/hfi1/trace_misc.h
83
__entry->ctxt = packet->rcd->ctxt;
drivers/infiniband/hw/hfi1/trace_misc.h
84
__entry->hlen = packet->hlen;
drivers/infiniband/hw/hfi1/trace_misc.h
85
__entry->tlen = packet->tlen;
drivers/infiniband/hw/hfi1/trace_misc.h
86
__entry->updegr = packet->updegr;
drivers/infiniband/hw/hfi1/trace_misc.h
87
__entry->etail = rhf_egr_index(packet->rhf);
drivers/infiniband/hw/hfi1/trace_rx.h
25
TP_PROTO(struct hfi1_packet *packet),
drivers/infiniband/hw/hfi1/trace_rx.h
26
TP_ARGS(packet),
drivers/infiniband/hw/hfi1/trace_rx.h
27
TP_STRUCT__entry(DD_DEV_ENTRY(packet->rcd->dd)
drivers/infiniband/hw/hfi1/trace_rx.h
36
TP_fast_assign(DD_DEV_ASSIGN(packet->rcd->dd);
drivers/infiniband/hw/hfi1/trace_rx.h
37
__entry->eflags = rhf_err_flags(packet->rhf);
drivers/infiniband/hw/hfi1/trace_rx.h
38
__entry->ctxt = packet->rcd->ctxt;
drivers/infiniband/hw/hfi1/trace_rx.h
39
__entry->etype = packet->etype;
drivers/infiniband/hw/hfi1/trace_rx.h
40
__entry->hlen = packet->hlen;
drivers/infiniband/hw/hfi1/trace_rx.h
41
__entry->tlen = packet->tlen;
drivers/infiniband/hw/hfi1/trace_rx.h
42
__entry->updegr = packet->updegr;
drivers/infiniband/hw/hfi1/trace_rx.h
43
__entry->etail = rhf_egr_index(packet->rhf);
drivers/infiniband/hw/hfi1/uc.c
259
void hfi1_uc_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/uc.c
261
struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
drivers/infiniband/hw/hfi1/uc.c
262
void *data = packet->payload;
drivers/infiniband/hw/hfi1/uc.c
263
u32 tlen = packet->tlen;
drivers/infiniband/hw/hfi1/uc.c
264
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/uc.c
265
struct ib_other_headers *ohdr = packet->ohdr;
drivers/infiniband/hw/hfi1/uc.c
266
u32 opcode = packet->opcode;
drivers/infiniband/hw/hfi1/uc.c
267
u32 hdrsize = packet->hlen;
drivers/infiniband/hw/hfi1/uc.c
269
u32 pad = packet->pad;
drivers/infiniband/hw/hfi1/uc.c
274
u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
drivers/infiniband/hw/hfi1/uc.c
276
if (hfi1_ruc_check_hdr(ibp, packet))
drivers/infiniband/hw/hfi1/uc.c
279
process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/ud.c
808
void hfi1_ud_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/ud.c
810
u32 hdrsize = packet->hlen;
drivers/infiniband/hw/hfi1/ud.c
815
struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
drivers/infiniband/hw/hfi1/ud.c
817
void *data = packet->payload;
drivers/infiniband/hw/hfi1/ud.c
818
u32 tlen = packet->tlen;
drivers/infiniband/hw/hfi1/ud.c
819
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/ud.c
820
u8 sc5 = packet->sc;
drivers/infiniband/hw/hfi1/ud.c
822
u8 opcode = packet->opcode;
drivers/infiniband/hw/hfi1/ud.c
823
u8 sl = packet->sl;
drivers/infiniband/hw/hfi1/ud.c
824
u32 dlid = packet->dlid;
drivers/infiniband/hw/hfi1/ud.c
825
u32 slid = packet->slid;
drivers/infiniband/hw/hfi1/ud.c
832
extra_bytes = packet->pad + packet->extra_byte + (SIZE_OF_CRC << 2);
drivers/infiniband/hw/hfi1/ud.c
834
if (packet->etype == RHF_RCV_TYPE_BYPASS) {
drivers/infiniband/hw/hfi1/ud.c
838
l4 = hfi1_16B_get_l4(packet->hdr);
drivers/infiniband/hw/hfi1/ud.c
839
pkey = hfi1_16B_get_pkey(packet->hdr);
drivers/infiniband/hw/hfi1/ud.c
843
pkey = ib_bth_get_pkey(packet->ohdr);
drivers/infiniband/hw/hfi1/ud.c
850
src_qp = ib_get_sqpn(packet->ohdr);
drivers/infiniband/hw/hfi1/ud.c
851
solicited = ib_bth_is_solicited(packet->ohdr);
drivers/infiniband/hw/hfi1/ud.c
853
src_qp = hfi1_16B_get_src_qpn(packet->mgmt);
drivers/infiniband/hw/hfi1/ud.c
856
process_ecn(qp, packet);
drivers/infiniband/hw/hfi1/ud.c
894
ib_get_qkey(packet->ohdr) != qp->qkey))
drivers/infiniband/hw/hfi1/ud.c
922
wc.ex.imm_data = packet->ohdr->u.ud.imm_data;
drivers/infiniband/hw/hfi1/ud.c
961
if (packet->grh) {
drivers/infiniband/hw/hfi1/ud.c
962
rvt_copy_sge(qp, &qp->r_sge, packet->grh,
drivers/infiniband/hw/hfi1/ud.c
965
} else if (packet->etype == RHF_RCV_TYPE_BYPASS) {
drivers/infiniband/hw/hfi1/ud.c
972
hfi1_make_ext_grh(packet, &grh, slid, dlid);
drivers/infiniband/hw/hfi1/verbs.c
1912
void hfi1_cnp_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/verbs.c
1914
struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
drivers/infiniband/hw/hfi1/verbs.c
1916
struct ib_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/verbs.c
1917
struct rvt_qp *qp = packet->qp;
drivers/infiniband/hw/hfi1/verbs.c
1922
switch (packet->qp->ibqp.qp_type) {
drivers/infiniband/hw/hfi1/verbs.c
1943
sc5 = hfi1_9B_get_sc5(hdr, packet->rhf);
drivers/infiniband/hw/hfi1/verbs.c
274
static inline opcode_handler qp_ok(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/verbs.c
276
if (!(ib_rvt_state_ops[packet->qp->state] & RVT_PROCESS_RECV_OK))
drivers/infiniband/hw/hfi1/verbs.c
278
if (((packet->opcode & RVT_OPCODE_QP_MASK) ==
drivers/infiniband/hw/hfi1/verbs.c
279
packet->qp->allowed_ops) ||
drivers/infiniband/hw/hfi1/verbs.c
280
(packet->opcode == IB_OPCODE_CNP))
drivers/infiniband/hw/hfi1/verbs.c
281
return opcode_handler_tbl[packet->opcode];
drivers/infiniband/hw/hfi1/verbs.c
317
static opcode_handler tid_qp_ok(int opcode, struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/verbs.c
319
if (packet->qp->ibqp.qp_type != IB_QPT_RC ||
drivers/infiniband/hw/hfi1/verbs.c
320
!(ib_rvt_state_ops[packet->qp->state] & RVT_PROCESS_RECV_OK))
drivers/infiniband/hw/hfi1/verbs.c
327
void hfi1_kdeth_eager_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/verbs.c
329
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/verbs.c
330
struct ib_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/verbs.c
331
u32 tlen = packet->tlen;
drivers/infiniband/hw/hfi1/verbs.c
349
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/verbs.c
350
trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf)));
drivers/infiniband/hw/hfi1/verbs.c
352
opcode = (be32_to_cpu(packet->ohdr->bth[0]) >> 24);
drivers/infiniband/hw/hfi1/verbs.c
356
qp_num = be32_to_cpu(packet->ohdr->u.tid_rdma.r_req.verbs_qp) &
drivers/infiniband/hw/hfi1/verbs.c
360
packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num);
drivers/infiniband/hw/hfi1/verbs.c
361
if (!packet->qp)
drivers/infiniband/hw/hfi1/verbs.c
363
spin_lock_irqsave(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
364
opcode_handler = tid_qp_ok(opcode, packet);
drivers/infiniband/hw/hfi1/verbs.c
366
opcode_handler(packet);
drivers/infiniband/hw/hfi1/verbs.c
369
spin_unlock_irqrestore(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
374
spin_unlock_irqrestore(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
381
void hfi1_kdeth_expected_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/verbs.c
383
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/verbs.c
384
struct ib_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/verbs.c
385
u32 tlen = packet->tlen;
drivers/infiniband/hw/hfi1/verbs.c
403
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/verbs.c
404
trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf)));
drivers/infiniband/hw/hfi1/verbs.c
406
opcode = (be32_to_cpu(packet->ohdr->bth[0]) >> 24);
drivers/infiniband/hw/hfi1/verbs.c
410
qp_num = be32_to_cpu(packet->ohdr->u.tid_rdma.r_rsp.verbs_qp) &
drivers/infiniband/hw/hfi1/verbs.c
414
packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num);
drivers/infiniband/hw/hfi1/verbs.c
415
if (!packet->qp)
drivers/infiniband/hw/hfi1/verbs.c
417
spin_lock_irqsave(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
418
opcode_handler = tid_qp_ok(opcode, packet);
drivers/infiniband/hw/hfi1/verbs.c
420
opcode_handler(packet);
drivers/infiniband/hw/hfi1/verbs.c
423
spin_unlock_irqrestore(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
428
spin_unlock_irqrestore(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
435
static int hfi1_do_pkey_check(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/verbs.c
437
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/verbs.c
439
struct hfi1_16b_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/verbs.c
443
if (packet->etype != RHF_RCV_TYPE_BYPASS)
drivers/infiniband/hw/hfi1/verbs.c
448
return ingress_pkey_check(ppd, pkey, packet->sc,
drivers/infiniband/hw/hfi1/verbs.c
449
packet->qp->s_pkey_index,
drivers/infiniband/hw/hfi1/verbs.c
450
packet->slid, true);
drivers/infiniband/hw/hfi1/verbs.c
453
static inline void hfi1_handle_packet(struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/verbs.c
457
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/verbs.c
464
inc_opstats(packet->tlen, &rcd->opstats->stats[packet->opcode]);
drivers/infiniband/hw/hfi1/verbs.c
470
if (!packet->grh)
drivers/infiniband/hw/hfi1/verbs.c
473
&packet->grh->dgid,
drivers/infiniband/hw/hfi1/verbs.c
474
opa_get_lid(packet->dlid, 9B));
drivers/infiniband/hw/hfi1/verbs.c
479
packet->qp = p->qp;
drivers/infiniband/hw/hfi1/verbs.c
480
if (hfi1_do_pkey_check(packet))
drivers/infiniband/hw/hfi1/verbs.c
482
spin_lock_irqsave(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
483
packet_handler = qp_ok(packet);
drivers/infiniband/hw/hfi1/verbs.c
485
packet_handler(packet);
drivers/infiniband/hw/hfi1/verbs.c
488
spin_unlock_irqrestore(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
499
if (packet->etype == RHF_RCV_TYPE_BYPASS &&
drivers/infiniband/hw/hfi1/verbs.c
500
hfi1_16B_get_l4(packet->hdr) == OPA_16B_L4_FM)
drivers/infiniband/hw/hfi1/verbs.c
501
qp_num = hfi1_16B_get_dest_qpn(packet->mgmt);
drivers/infiniband/hw/hfi1/verbs.c
503
qp_num = ib_bth_get_qpn(packet->ohdr);
drivers/infiniband/hw/hfi1/verbs.c
506
packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num);
drivers/infiniband/hw/hfi1/verbs.c
507
if (!packet->qp)
drivers/infiniband/hw/hfi1/verbs.c
510
if (hfi1_do_pkey_check(packet))
drivers/infiniband/hw/hfi1/verbs.c
513
spin_lock_irqsave(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
514
packet_handler = qp_ok(packet);
drivers/infiniband/hw/hfi1/verbs.c
516
packet_handler(packet);
drivers/infiniband/hw/hfi1/verbs.c
519
spin_unlock_irqrestore(&packet->qp->r_lock, flags);
drivers/infiniband/hw/hfi1/verbs.c
535
void hfi1_ib_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/verbs.c
537
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/verbs.c
539
trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf)));
drivers/infiniband/hw/hfi1/verbs.c
540
hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid));
drivers/infiniband/hw/hfi1/verbs.c
543
void hfi1_16B_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/verbs.c
545
struct hfi1_ctxtdata *rcd = packet->rcd;
drivers/infiniband/hw/hfi1/verbs.c
547
trace_input_ibhdr(rcd->dd, packet, false);
drivers/infiniband/hw/hfi1/verbs.c
548
hfi1_handle_packet(packet, hfi1_check_mcast(packet->dlid));
drivers/infiniband/hw/hfi1/verbs.h
363
void hfi1_cnp_rcv(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/verbs.h
365
void hfi1_uc_rcv(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/verbs.h
367
void hfi1_rc_rcv(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/verbs.h
371
struct hfi1_packet *packet,
drivers/infiniband/hw/hfi1/verbs.h
379
void hfi1_ud_rcv(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/verbs.h
394
int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/verbs.h
412
void hfi1_send_rc_ack(struct hfi1_packet *packet, bool is_fecn);
drivers/infiniband/hw/hfi1/verbs.h
424
void hfi1_kdeth_eager_rcv(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/verbs.h
426
void hfi1_kdeth_expected_rcv(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/verbs.h
428
void hfi1_ib_rcv(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/verbs.h
430
void hfi1_16B_rcv(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/vnic.h
110
void hfi1_vnic_bypass_rcv(struct hfi1_packet *packet);
drivers/infiniband/hw/hfi1/vnic_main.c
332
void hfi1_vnic_bypass_rcv(struct hfi1_packet *packet)
drivers/infiniband/hw/hfi1/vnic_main.c
334
struct hfi1_devdata *dd = packet->rcd->dd;
drivers/infiniband/hw/hfi1/vnic_main.c
342
l4_type = hfi1_16B_get_l4(packet->ebuf);
drivers/infiniband/hw/hfi1/vnic_main.c
344
vesw_id = HFI1_VNIC_GET_VESWID(packet->ebuf);
drivers/infiniband/hw/hfi1/vnic_main.c
365
l4_type, vesw_id, packet->rcd->ctxt);
drivers/infiniband/hw/hfi1/vnic_main.c
369
q_idx = packet->rcd->vnic_q_idx;
drivers/infiniband/hw/hfi1/vnic_main.c
376
skb = netdev_alloc_skb(vinfo->netdev, packet->tlen);
drivers/infiniband/hw/hfi1/vnic_main.c
382
memcpy(skb->data, packet->ebuf, packet->tlen);
drivers/infiniband/hw/hfi1/vnic_main.c
383
skb_put(skb, packet->tlen);
drivers/infiniband/hw/qedr/qedr_roce_cm.c
494
struct qed_roce_ll2_packet *packet;
drivers/infiniband/hw/qedr/qedr_roce_cm.c
508
packet = kzalloc_obj(*packet, GFP_ATOMIC);
drivers/infiniband/hw/qedr/qedr_roce_cm.c
509
if (!packet)
drivers/infiniband/hw/qedr/qedr_roce_cm.c
512
packet->header.vaddr = dma_alloc_coherent(&pdev->dev, header_size,
drivers/infiniband/hw/qedr/qedr_roce_cm.c
513
&packet->header.baddr,
drivers/infiniband/hw/qedr/qedr_roce_cm.c
515
if (!packet->header.vaddr) {
drivers/infiniband/hw/qedr/qedr_roce_cm.c
516
kfree(packet);
drivers/infiniband/hw/qedr/qedr_roce_cm.c
521
packet->tx_dest = QED_LL2_TX_DEST_LB;
drivers/infiniband/hw/qedr/qedr_roce_cm.c
523
packet->tx_dest = QED_LL2_TX_DEST_NW;
drivers/infiniband/hw/qedr/qedr_roce_cm.c
525
packet->roce_mode = roce_mode;
drivers/infiniband/hw/qedr/qedr_roce_cm.c
526
memcpy(packet->header.vaddr, ud_header_buffer, header_size);
drivers/infiniband/hw/qedr/qedr_roce_cm.c
527
packet->header.len = header_size;
drivers/infiniband/hw/qedr/qedr_roce_cm.c
528
packet->n_seg = swr->num_sge;
drivers/infiniband/hw/qedr/qedr_roce_cm.c
529
for (i = 0; i < packet->n_seg; i++) {
drivers/infiniband/hw/qedr/qedr_roce_cm.c
530
packet->payload[i].baddr = swr->sg_list[i].addr;
drivers/infiniband/hw/qedr/qedr_roce_cm.c
531
packet->payload[i].len = swr->sg_list[i].length;
drivers/infiniband/hw/qedr/qedr_roce_cm.c
534
*p_packet = packet;
drivers/input/joystick/fsia6b.c
119
fsia6b->packet.state = COLLECT;
drivers/input/joystick/fsia6b.c
139
fsia6b->packet.ibuf = 0;
drivers/input/joystick/fsia6b.c
140
fsia6b->packet.offset = 0;
drivers/input/joystick/fsia6b.c
141
fsia6b->packet.state = SYNC;
drivers/input/joystick/fsia6b.c
57
struct ibus_packet packet;
drivers/input/joystick/fsia6b.c
70
fsia6b->packet.ibuf = (data << 8) | ((fsia6b->packet.ibuf >> 8) & 0xFF);
drivers/input/joystick/fsia6b.c
72
switch (fsia6b->packet.state) {
drivers/input/joystick/fsia6b.c
74
if (fsia6b->packet.ibuf == 0x4020)
drivers/input/joystick/fsia6b.c
75
fsia6b->packet.state = COLLECT;
drivers/input/joystick/fsia6b.c
79
fsia6b->packet.state = PROCESS;
drivers/input/joystick/fsia6b.c
83
fsia6b->packet.channel[fsia6b->packet.offset] =
drivers/input/joystick/fsia6b.c
84
fsia6b->packet.ibuf;
drivers/input/joystick/fsia6b.c
85
fsia6b->packet.offset++;
drivers/input/joystick/fsia6b.c
87
if (fsia6b->packet.offset == IBUS_SERVO_COUNT) {
drivers/input/joystick/fsia6b.c
88
fsia6b->packet.offset = 0;
drivers/input/joystick/fsia6b.c
89
fsia6b->packet.state = SYNC;
drivers/input/joystick/fsia6b.c
92
fsia6b->packet.channel[i]);
drivers/input/joystick/fsia6b.c
95
if (fsia6b->packet.channel[i] > 1900)
drivers/input/joystick/fsia6b.c
97
else if (fsia6b->packet.channel[i] < 1100)
drivers/input/joystick/grip_mp.c
164
static int mp_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet)
drivers/input/joystick/grip_mp.c
175
*packet = 0;
drivers/input/joystick/grip_mp.c
259
*packet = pkt;
drivers/input/joystick/grip_mp.c
301
static int multiport_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet)
drivers/input/joystick/grip_mp.c
307
status = mp_io(gameport, sendflags, sendcode, packet);
drivers/input/joystick/grip_mp.c
319
static int dig_mode_start(struct gameport *gameport, u32 *packet)
drivers/input/joystick/grip_mp.c
335
flags = multiport_io(gameport, IO_RESET, 0x27, packet);
drivers/input/joystick/grip_mp.c
361
u32 packet;
drivers/input/joystick/grip_mp.c
368
flags = multiport_io(grip->gameport, flags, 0, &packet);
drivers/input/joystick/grip_mp.c
371
if (packet & PACKET_MP_DONE)
drivers/input/joystick/grip_mp.c
381
slot = ((packet >> 21) & 0xf) - 1;
drivers/input/joystick/grip_mp.c
392
joytype = (packet >> 16) & 0x1f;
drivers/input/joystick/grip_mp.c
411
int dir = (packet >> 8) & 0xf; /* eight way directional value */
drivers/input/joystick/grip_mp.c
412
port->buttons = (~packet) & 0xff;
drivers/input/joystick/grip_mp.c
438
printk(KERN_INFO "Got joy type 0x%x and packet 0x%x.\n", joytype, packet);
drivers/input/joystick/grip_mp.c
480
u32 packet;
drivers/input/joystick/grip_mp.c
482
dig_mode = dig_mode_start(grip->gameport, &packet);
drivers/input/joystick/grip_mp.c
484
dig_mode = dig_mode_start(grip->gameport, &packet);
drivers/input/joystick/xpad.c
1321
struct xpad_output_packet *pkt, *packet = NULL;
drivers/input/joystick/xpad.c
1337
packet = pkt;
drivers/input/joystick/xpad.c
1342
if (packet) {
drivers/input/joystick/xpad.c
1343
memcpy(xpad->odata, packet->data, packet->len);
drivers/input/joystick/xpad.c
1344
xpad->irq_out->transfer_buffer_length = packet->len;
drivers/input/joystick/xpad.c
1345
packet->pending = false;
drivers/input/joystick/xpad.c
1478
struct xpad_output_packet *packet =
drivers/input/joystick/xpad.c
1483
packet->data[0] = 0x08;
drivers/input/joystick/xpad.c
1484
packet->data[1] = 0x00;
drivers/input/joystick/xpad.c
1485
packet->data[2] = 0x0F;
drivers/input/joystick/xpad.c
1486
packet->data[3] = 0xC0;
drivers/input/joystick/xpad.c
1487
packet->data[4] = 0x00;
drivers/input/joystick/xpad.c
1488
packet->data[5] = 0x00;
drivers/input/joystick/xpad.c
1489
packet->data[6] = 0x00;
drivers/input/joystick/xpad.c
1490
packet->data[7] = 0x00;
drivers/input/joystick/xpad.c
1491
packet->data[8] = 0x00;
drivers/input/joystick/xpad.c
1492
packet->data[9] = 0x00;
drivers/input/joystick/xpad.c
1493
packet->data[10] = 0x00;
drivers/input/joystick/xpad.c
1494
packet->data[11] = 0x00;
drivers/input/joystick/xpad.c
1495
packet->len = 12;
drivers/input/joystick/xpad.c
1496
packet->pending = true;
drivers/input/joystick/xpad.c
1535
struct xpad_output_packet *packet =
drivers/input/joystick/xpad.c
1544
packet->len = sizeof(mode_report_ack);
drivers/input/joystick/xpad.c
1545
memcpy(packet->data, mode_report_ack, packet->len);
drivers/input/joystick/xpad.c
1546
packet->data[2] = seq_num;
drivers/input/joystick/xpad.c
1547
packet->pending = true;
drivers/input/joystick/xpad.c
1558
struct xpad_output_packet *packet = &xpad->out_packets[XPAD_OUT_FF_IDX];
drivers/input/joystick/xpad.c
1572
packet->data[0] = 0x00;
drivers/input/joystick/xpad.c
1573
packet->data[1] = 0x06;
drivers/input/joystick/xpad.c
1574
packet->data[2] = 0x00;
drivers/input/joystick/xpad.c
1575
packet->data[3] = strong / 256; /* left actuator */
drivers/input/joystick/xpad.c
1576
packet->data[4] = 0x00;
drivers/input/joystick/xpad.c
1577
packet->data[5] = weak / 256; /* right actuator */
drivers/input/joystick/xpad.c
1578
packet->len = 6;
drivers/input/joystick/xpad.c
1579
packet->pending = true;
drivers/input/joystick/xpad.c
1583
packet->data[0] = 0x00;
drivers/input/joystick/xpad.c
1584
packet->data[1] = 0x08;
drivers/input/joystick/xpad.c
1585
packet->data[2] = 0x00;
drivers/input/joystick/xpad.c
1586
packet->data[3] = strong / 256; /* left actuator? */
drivers/input/joystick/xpad.c
1587
packet->data[4] = weak / 256; /* right actuator? */
drivers/input/joystick/xpad.c
1588
packet->data[5] = 0x00;
drivers/input/joystick/xpad.c
1589
packet->data[6] = 0x00;
drivers/input/joystick/xpad.c
1590
packet->data[7] = 0x00;
drivers/input/joystick/xpad.c
1591
packet->len = 8;
drivers/input/joystick/xpad.c
1592
packet->pending = true;
drivers/input/joystick/xpad.c
1596
packet->data[0] = 0x00;
drivers/input/joystick/xpad.c
1597
packet->data[1] = 0x01;
drivers/input/joystick/xpad.c
1598
packet->data[2] = 0x0F;
drivers/input/joystick/xpad.c
1599
packet->data[3] = 0xC0;
drivers/input/joystick/xpad.c
1600
packet->data[4] = 0x00;
drivers/input/joystick/xpad.c
1601
packet->data[5] = strong / 256;
drivers/input/joystick/xpad.c
1602
packet->data[6] = weak / 256;
drivers/input/joystick/xpad.c
1603
packet->data[7] = 0x00;
drivers/input/joystick/xpad.c
1604
packet->data[8] = 0x00;
drivers/input/joystick/xpad.c
1605
packet->data[9] = 0x00;
drivers/input/joystick/xpad.c
1606
packet->data[10] = 0x00;
drivers/input/joystick/xpad.c
1607
packet->data[11] = 0x00;
drivers/input/joystick/xpad.c
1608
packet->len = 12;
drivers/input/joystick/xpad.c
1609
packet->pending = true;
drivers/input/joystick/xpad.c
1613
packet->data[0] = GIP_CMD_RUMBLE; /* activate rumble */
drivers/input/joystick/xpad.c
1614
packet->data[1] = 0x00;
drivers/input/joystick/xpad.c
1615
packet->data[2] = xpad->odata_serial++;
drivers/input/joystick/xpad.c
1616
packet->data[3] = GIP_PL_LEN(9);
drivers/input/joystick/xpad.c
1617
packet->data[4] = 0x00;
drivers/input/joystick/xpad.c
1618
packet->data[5] = GIP_MOTOR_ALL;
drivers/input/joystick/xpad.c
1619
packet->data[6] = 0x00; /* left trigger */
drivers/input/joystick/xpad.c
1620
packet->data[7] = 0x00; /* right trigger */
drivers/input/joystick/xpad.c
1621
packet->data[8] = strong / 512; /* left actuator */
drivers/input/joystick/xpad.c
1622
packet->data[9] = weak / 512; /* right actuator */
drivers/input/joystick/xpad.c
1623
packet->data[10] = 0xFF; /* on period */
drivers/input/joystick/xpad.c
1624
packet->data[11] = 0x00; /* off period */
drivers/input/joystick/xpad.c
1625
packet->data[12] = 0xFF; /* repeat count */
drivers/input/joystick/xpad.c
1626
packet->len = 13;
drivers/input/joystick/xpad.c
1627
packet->pending = true;
drivers/input/joystick/xpad.c
1688
struct xpad_output_packet *packet =
drivers/input/joystick/xpad.c
1697
packet->data[0] = 0x01;
drivers/input/joystick/xpad.c
1698
packet->data[1] = 0x03;
drivers/input/joystick/xpad.c
1699
packet->data[2] = command;
drivers/input/joystick/xpad.c
1700
packet->len = 3;
drivers/input/joystick/xpad.c
1701
packet->pending = true;
drivers/input/joystick/xpad.c
1705
packet->data[0] = 0x00;
drivers/input/joystick/xpad.c
1706
packet->data[1] = 0x00;
drivers/input/joystick/xpad.c
1707
packet->data[2] = 0x08;
drivers/input/joystick/xpad.c
1708
packet->data[3] = 0x40 + command;
drivers/input/joystick/xpad.c
1709
packet->data[4] = 0x00;
drivers/input/joystick/xpad.c
1710
packet->data[5] = 0x00;
drivers/input/joystick/xpad.c
1711
packet->data[6] = 0x00;
drivers/input/joystick/xpad.c
1712
packet->data[7] = 0x00;
drivers/input/joystick/xpad.c
1713
packet->data[8] = 0x00;
drivers/input/joystick/xpad.c
1714
packet->data[9] = 0x00;
drivers/input/joystick/xpad.c
1715
packet->data[10] = 0x00;
drivers/input/joystick/xpad.c
1716
packet->data[11] = 0x00;
drivers/input/joystick/xpad.c
1717
packet->len = 12;
drivers/input/joystick/xpad.c
1718
packet->pending = true;
drivers/input/joystick/xpad.c
1847
struct xpad_output_packet *packet =
drivers/input/joystick/xpad.c
1852
packet->data[0] = 0x00;
drivers/input/joystick/xpad.c
1853
packet->data[1] = 0x00;
drivers/input/joystick/xpad.c
1854
packet->data[2] = 0x08;
drivers/input/joystick/xpad.c
1855
packet->data[3] = 0xC0;
drivers/input/joystick/xpad.c
1856
packet->data[4] = 0x00;
drivers/input/joystick/xpad.c
1857
packet->data[5] = 0x00;
drivers/input/joystick/xpad.c
1858
packet->data[6] = 0x00;
drivers/input/joystick/xpad.c
1859
packet->data[7] = 0x00;
drivers/input/joystick/xpad.c
1860
packet->data[8] = 0x00;
drivers/input/joystick/xpad.c
1861
packet->data[9] = 0x00;
drivers/input/joystick/xpad.c
1862
packet->data[10] = 0x00;
drivers/input/joystick/xpad.c
1863
packet->data[11] = 0x00;
drivers/input/joystick/xpad.c
1864
packet->len = 12;
drivers/input/joystick/xpad.c
1865
packet->pending = true;
drivers/input/keyboard/applespi.c
1336
struct spi_packet *packet,
drivers/input/keyboard/applespi.c
1339
if (packet->device == PACKET_DEV_INFO &&
drivers/input/keyboard/applespi.c
1357
if (packet->device == PACKET_DEV_TPAD &&
drivers/input/keyboard/applespi.c
1381
struct spi_packet *packet)
drivers/input/keyboard/applespi.c
1385
if (packet->flags == PACKET_TYPE_READ &&
drivers/input/keyboard/applespi.c
1386
packet->device == PACKET_DEV_KEYB)
drivers/input/keyboard/applespi.c
1388
else if (packet->flags == PACKET_TYPE_READ &&
drivers/input/keyboard/applespi.c
1389
packet->device == PACKET_DEV_TPAD)
drivers/input/keyboard/applespi.c
1391
else if (packet->flags == PACKET_TYPE_WRITE)
drivers/input/keyboard/applespi.c
1402
struct spi_packet *packet;
drivers/input/keyboard/applespi.c
1424
packet = (struct spi_packet *)applespi->rx_buffer;
drivers/input/keyboard/applespi.c
1426
applespi_debug_print_read_packet(applespi, packet);
drivers/input/keyboard/applespi.c
1428
off = le16_to_cpu(packet->offset);
drivers/input/keyboard/applespi.c
1429
rem = le16_to_cpu(packet->remaining);
drivers/input/keyboard/applespi.c
1430
len = le16_to_cpu(packet->length);
drivers/input/keyboard/applespi.c
1432
if (len > sizeof(packet->data)) {
drivers/input/keyboard/applespi.c
1462
memcpy(applespi->msg_buf + off, &packet->data, len);
drivers/input/keyboard/applespi.c
1471
message = (struct message *)&packet->data;
drivers/input/keyboard/applespi.c
1488
if (packet->flags == PACKET_TYPE_READ &&
drivers/input/keyboard/applespi.c
1489
packet->device == PACKET_DEV_KEYB) {
drivers/input/keyboard/applespi.c
1492
} else if (packet->flags == PACKET_TYPE_READ &&
drivers/input/keyboard/applespi.c
1493
packet->device == PACKET_DEV_TPAD) {
drivers/input/keyboard/applespi.c
1518
} else if (packet->flags == PACKET_TYPE_WRITE) {
drivers/input/keyboard/applespi.c
1519
applespi_handle_cmd_response(applespi, packet, message);
drivers/input/keyboard/applespi.c
1525
applespi_msg_complete(applespi, packet->flags == PACKET_TYPE_WRITE,
drivers/input/keyboard/applespi.c
763
struct spi_packet *packet = (struct spi_packet *)applespi->tx_buffer;
drivers/input/keyboard/applespi.c
764
struct message *message = (struct message *)packet->data;
drivers/input/keyboard/applespi.c
785
memset(packet, 0, APPLESPI_PACKET_SIZE);
drivers/input/keyboard/applespi.c
854
packet->flags = PACKET_TYPE_WRITE;
drivers/input/keyboard/applespi.c
855
packet->device = device;
drivers/input/keyboard/applespi.c
856
packet->length = cpu_to_le16(MSG_HEADER_SIZE + msg_len);
drivers/input/keyboard/applespi.c
864
crc = crc16(0, (u8 *)message, le16_to_cpu(packet->length) - 2);
drivers/input/keyboard/applespi.c
867
crc = crc16(0, (u8 *)packet, sizeof(*packet) - 2);
drivers/input/keyboard/applespi.c
868
packet->crc16 = cpu_to_le16(crc);
drivers/input/keyboard/hil_kbd.c
278
hil_packet packet;
drivers/input/keyboard/hil_kbd.c
292
packet = dev->data[idx];
drivers/input/keyboard/hil_kbd.c
293
packet |= ((hil_packet)data) << ((3 - (dev->idx4 % 4)) * 8);
drivers/input/keyboard/hil_kbd.c
294
dev->data[idx] = packet;
drivers/input/keyboard/hil_kbd.c
298
if ((packet & 0xffff0000) != HIL_ERR_INT) {
drivers/input/keyboard/hil_kbd.c
300
} else if (packet & HIL_PKT_CMD) {
drivers/input/keyboard/hil_kbd.c
301
if (hil_dev_is_command_response(packet))
drivers/input/mouse/alps.c
1091
unsigned char *packet = psmouse->packet;
drivers/input/mouse/alps.c
1102
x = ((packet[2] & 0xbf)) | ((packet[3] & 0x10) << 2);
drivers/input/mouse/alps.c
1103
y = (packet[3] & 0x07) | (packet[4] & 0xb8) |
drivers/input/mouse/alps.c
1104
((packet[3] & 0x20) << 1);
drivers/input/mouse/alps.c
1105
z = (packet[5] & 0x3f) | ((packet[3] & 0x80) >> 1);
drivers/input/mouse/alps.c
1111
psmouse_report_standard_buttons(dev2, packet[1]);
drivers/input/mouse/alps.c
1124
if (priv->decode_fields(f, psmouse->packet, psmouse))
drivers/input/mouse/alps.c
1140
unsigned char *packet = psmouse->packet;
drivers/input/mouse/alps.c
1142
if (packet[0] == 0x48 && (packet[4] & 0x47) == 0x06)
drivers/input/mouse/alps.c
1317
unsigned char *packet = psmouse->packet;
drivers/input/mouse/alps.c
1323
priv->decode_fields(f, packet, psmouse);
drivers/input/mouse/alps.c
1349
memcpy(priv->multi_data, packet, sizeof(priv->multi_data));
drivers/input/mouse/alps.c
1356
if (alps_get_pkt_id_ss4_v2(packet) == SS4_PACKET_ID_STICK) {
drivers/input/mouse/alps.c
1363
input_report_rel(dev2, REL_X, SS4_TS_X_V2(packet));
drivers/input/mouse/alps.c
1364
input_report_rel(dev2, REL_Y, SS4_TS_Y_V2(packet));
drivers/input/mouse/alps.c
1365
input_report_abs(dev2, ABS_PRESSURE, SS4_TS_Z_V2(packet));
drivers/input/mouse/alps.c
1390
if (psmouse->pktcnt == 4 && ((psmouse->packet[3] & 0x08) != 0x08))
drivers/input/mouse/alps.c
1392
if (psmouse->pktcnt == 6 && ((psmouse->packet[5] & 0x10) != 0x0))
drivers/input/mouse/alps.c
1473
unsigned char packet[],
drivers/input/mouse/alps.c
1497
packet[0] & 1, packet[0] & 2, packet[0] & 4);
drivers/input/mouse/alps.c
1499
psmouse_report_standard_motion(dev, packet);
drivers/input/mouse/alps.c
1524
if (psmouse->packet[6] & 0x80) {
drivers/input/mouse/alps.c
1532
if (((psmouse->packet[3] |
drivers/input/mouse/alps.c
1533
psmouse->packet[4] |
drivers/input/mouse/alps.c
1534
psmouse->packet[5]) & 0x80) ||
drivers/input/mouse/alps.c
1535
(!alps_is_valid_first_byte(priv, psmouse->packet[6]))) {
drivers/input/mouse/alps.c
1538
psmouse->packet + 3);
drivers/input/mouse/alps.c
1545
psmouse->packet[0] = psmouse->packet[6];
drivers/input/mouse/alps.c
1566
alps_report_bare_ps2_packet(psmouse, &psmouse->packet[3],
drivers/input/mouse/alps.c
1576
psmouse->packet[3] = psmouse->packet[6] & 0xf7;
drivers/input/mouse/alps.c
1597
if ((psmouse->packet[3] |
drivers/input/mouse/alps.c
1598
psmouse->packet[4] |
drivers/input/mouse/alps.c
1599
psmouse->packet[5]) & 0x80) {
drivers/input/mouse/alps.c
1602
psmouse->packet + 3);
drivers/input/mouse/alps.c
1623
(psmouse->packet[0] & 0xc8) == 0x08) {
drivers/input/mouse/alps.c
1626
alps_report_bare_ps2_packet(psmouse, psmouse->packet,
drivers/input/mouse/alps.c
1636
psmouse->pktcnt >= 4 && (psmouse->packet[3] & 0x0f) == 0x0f) {
drivers/input/mouse/alps.c
1640
if (!alps_is_valid_first_byte(priv, psmouse->packet[0])) {
drivers/input/mouse/alps.c
1643
psmouse->packet[0], priv->mask0, priv->byte0);
drivers/input/mouse/alps.c
1650
(psmouse->packet[psmouse->pktcnt - 1] & 0x80)) {
drivers/input/mouse/alps.c
1653
psmouse->packet[psmouse->pktcnt - 1]);
drivers/input/mouse/alps.c
1678
psmouse->packet[psmouse->pktcnt - 1]);
drivers/input/mouse/alps.c
1994
unsigned char buf[sizeof(psmouse->packet)];
drivers/input/mouse/alps.c
2017
memcpy(psmouse->packet, buf, sizeof(buf));
drivers/input/mouse/alps.c
251
unsigned char *packet = psmouse->packet;
drivers/input/mouse/alps.c
258
left = packet[2] & 0x10;
drivers/input/mouse/alps.c
259
right = packet[2] & 0x08;
drivers/input/mouse/alps.c
261
x = packet[1] | ((packet[0] & 0x07) << 7);
drivers/input/mouse/alps.c
262
y = packet[4] | ((packet[3] & 0x07) << 7);
drivers/input/mouse/alps.c
263
z = packet[5];
drivers/input/mouse/alps.c
265
left = packet[3] & 1;
drivers/input/mouse/alps.c
266
right = packet[3] & 2;
drivers/input/mouse/alps.c
267
middle = packet[3] & 4;
drivers/input/mouse/alps.c
268
x = packet[1] | ((packet[2] & 0x78) << (7 - 3));
drivers/input/mouse/alps.c
269
y = packet[4] | ((packet[3] & 0x70) << (7 - 4));
drivers/input/mouse/alps.c
270
z = packet[5];
drivers/input/mouse/alps.c
274
back = packet[0] & 0x10;
drivers/input/mouse/alps.c
275
forward = packet[2] & 4;
drivers/input/mouse/alps.c
279
back = packet[3] & 4;
drivers/input/mouse/alps.c
280
forward = packet[2] & 4;
drivers/input/mouse/alps.c
285
ges = packet[2] & 1;
drivers/input/mouse/alps.c
286
fin = packet[2] & 2;
drivers/input/mouse/alps.c
300
left |= packet[0] & 1;
drivers/input/mouse/alps.c
301
right |= packet[0] & 2;
drivers/input/mouse/alps.c
302
middle |= packet[0] & 4;
drivers/input/mouse/alps.c
339
input_report_rel(dev, REL_WHEEL, ((packet[2] << 1) & 0x08) - ((packet[0] >> 4) & 0x07));
drivers/input/mouse/alps.c
347
input_report_key(dev, BTN_0, packet[2] & 4);
drivers/input/mouse/alps.c
348
input_report_key(dev, BTN_1, packet[0] & 0x10);
drivers/input/mouse/alps.c
349
input_report_key(dev, BTN_2, packet[3] & 4);
drivers/input/mouse/alps.c
350
input_report_key(dev, BTN_3, packet[0] & 0x20);
drivers/input/mouse/alps.c
558
unsigned char *packet = psmouse->packet;
drivers/input/mouse/alps.c
570
if (!(packet[0] & 0x40)) {
drivers/input/mouse/alps.c
579
if (packet[1] == 0x7f && packet[2] == 0x7f && packet[4] == 0x7f)
drivers/input/mouse/alps.c
582
x = (s8)(((packet[0] & 0x20) << 2) | (packet[1] & 0x7f));
drivers/input/mouse/alps.c
583
y = (s8)(((packet[0] & 0x10) << 3) | (packet[2] & 0x7f));
drivers/input/mouse/alps.c
584
z = packet[4] & 0x7f;
drivers/input/mouse/alps.c
605
left = packet[3] & 0x01;
drivers/input/mouse/alps.c
606
right = packet[3] & 0x02;
drivers/input/mouse/alps.c
607
middle = packet[3] & 0x04;
drivers/input/mouse/alps.c
728
unsigned char *packet = psmouse->packet;
drivers/input/mouse/alps.c
735
priv->decode_fields(f, packet, psmouse);
drivers/input/mouse/alps.c
777
memcpy(priv->multi_data, packet, sizeof(priv->multi_data));
drivers/input/mouse/alps.c
805
unsigned char *packet = psmouse->packet;
drivers/input/mouse/alps.c
815
if (packet[5] == 0x3f) {
drivers/input/mouse/alps.c
826
unsigned char *packet = psmouse->packet;
drivers/input/mouse/alps.c
837
if (packet[5] == 0x7F) {
drivers/input/mouse/alps.c
846
x = packet[1] | ((packet[3] & 0x20) << 2);
drivers/input/mouse/alps.c
847
y = packet[2] | ((packet[3] & 0x40) << 1);
drivers/input/mouse/alps.c
848
z = packet[4];
drivers/input/mouse/alps.c
858
psmouse_report_standard_buttons(dev2, packet[3]);
drivers/input/mouse/alps.c
865
x = packet[1] | ((packet[3] & 0x78) << 4);
drivers/input/mouse/alps.c
866
y = packet[2] | ((packet[4] & 0x78) << 4);
drivers/input/mouse/alps.c
867
z = packet[5];
drivers/input/mouse/alps.c
883
packet[3] &= ~BIT(2);
drivers/input/mouse/alps.c
884
psmouse_report_standard_buttons(dev2, packet[3]);
drivers/input/mouse/alps.c
892
unsigned char *packet = psmouse->packet;
drivers/input/mouse/alps.c
901
if (packet[6] & 0x40) {
drivers/input/mouse/alps.c
910
priv->multi_data[offset] = packet[6];
drivers/input/mouse/alps.c
911
priv->multi_data[offset + 1] = packet[7];
drivers/input/mouse/alps.c
913
f->left = !!(packet[4] & 0x01);
drivers/input/mouse/alps.c
914
f->right = !!(packet[4] & 0x02);
drivers/input/mouse/alps.c
916
f->st.x = ((packet[1] & 0x7f) << 4) | ((packet[3] & 0x30) >> 2) |
drivers/input/mouse/alps.c
917
((packet[0] & 0x30) >> 4);
drivers/input/mouse/alps.c
918
f->st.y = ((packet[2] & 0x7f) << 4) | (packet[3] & 0x0f);
drivers/input/mouse/alps.c
919
f->pressure = packet[5] & 0x7f;
drivers/input/mouse/alps.c
942
return (psmouse->packet[2] & 0x40) == 0x40;
drivers/input/mouse/alps.c
944
return (psmouse->packet[3] & 0x48) == 0x48;
drivers/input/mouse/alps.c
946
return (psmouse->packet[5] & 0x40) == 0x00;
drivers/input/mouse/byd.c
275
u8 *pkt = psmouse->packet;
drivers/input/mouse/byd.c
318
4, psmouse->packet);
drivers/input/mouse/cypress_ps2.c
408
u8 *packet = psmouse->packet;
drivers/input/mouse/cypress_ps2.c
409
u8 header_byte = packet[0];
drivers/input/mouse/cypress_ps2.c
418
((packet[1] & 0x70) << 4) | packet[2];
drivers/input/mouse/cypress_ps2.c
420
((packet[1] & 0x07) << 8) | packet[3];
drivers/input/mouse/cypress_ps2.c
422
report_data->contacts[0].z = packet[4];
drivers/input/mouse/cypress_ps2.c
426
((packet[1] & 0x70) << 4) | packet[2];
drivers/input/mouse/cypress_ps2.c
428
((packet[1] & 0x07) << 8) | packet[3];
drivers/input/mouse/cypress_ps2.c
430
report_data->contacts[0].z = packet[4];
drivers/input/mouse/cypress_ps2.c
433
((packet[5] & 0xf0) << 4) | packet[6];
drivers/input/mouse/cypress_ps2.c
435
((packet[5] & 0x0f) << 8) | packet[7];
drivers/input/mouse/cypress_ps2.c
524
u8 *packet = psmouse->packet;
drivers/input/mouse/cypress_ps2.c
530
if (index == 0 && (packet[0] & 0xfc) == 0) {
drivers/input/mouse/cypress_ps2.c
550
if ((packet[0] & 0x08) == 0x08)
drivers/input/mouse/cypress_ps2.c
553
contact_cnt = cypress_get_finger_count(packet[0]);
drivers/input/mouse/elan_i2c_core.c
1010
u8 *packet = &report[ETP_REPORT_ID_OFFSET + 1];
drivers/input/mouse/elan_i2c_core.c
1021
input_report_key(input, BTN_LEFT, packet[0] & 0x01);
drivers/input/mouse/elan_i2c_core.c
1022
input_report_key(input, BTN_RIGHT, packet[0] & 0x02);
drivers/input/mouse/elan_i2c_core.c
1023
input_report_key(input, BTN_MIDDLE, packet[0] & 0x04);
drivers/input/mouse/elan_i2c_core.c
1025
if ((packet[3] & 0x0F) == 0x06) {
drivers/input/mouse/elan_i2c_core.c
1026
x = packet[4] - (int)((packet[1] ^ 0x80) << 1);
drivers/input/mouse/elan_i2c_core.c
1027
y = (int)((packet[2] ^ 0x80) << 1) - packet[5];
drivers/input/mouse/elan_i2c_core.c
915
u8 *packet, u8 *finger_data)
drivers/input/mouse/elan_i2c_core.c
952
packet[ETP_MK_DATA_OFFSET + contact_num] :
drivers/input/mouse/elan_i2c_core.c
977
static void elan_report_absolute(struct elan_tp_data *data, u8 *packet,
drivers/input/mouse/elan_i2c_core.c
981
u8 *finger_data = &packet[ETP_FINGER_DATA_OFFSET];
drivers/input/mouse/elan_i2c_core.c
983
u8 tp_info = packet[ETP_TOUCH_INFO_OFFSET];
drivers/input/mouse/elan_i2c_core.c
984
u8 hover_info = packet[ETP_HOVER_INFO_OFFSET];
drivers/input/mouse/elan_i2c_core.c
994
packet, finger_data);
drivers/input/mouse/elantech.c
267
psmouse->pktsize, psmouse->packet);
drivers/input/mouse/elantech.c
324
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
332
fingers = ((packet[1] & 0x80) >> 7) +
drivers/input/mouse/elantech.c
333
((packet[1] & 0x30) >> 4);
drivers/input/mouse/elantech.c
339
fingers = (packet[0] & 0xc0) >> 6;
drivers/input/mouse/elantech.c
361
((packet[1] & 0x0c) << 6) | packet[2]);
drivers/input/mouse/elantech.c
363
etd->y_max - (((packet[1] & 0x03) << 8) | packet[3]));
drivers/input/mouse/elantech.c
370
psmouse_report_standard_buttons(dev, packet[0]);
drivers/input/mouse/elantech.c
375
input_report_key(dev, BTN_FORWARD, packet[0] & 0x40);
drivers/input/mouse/elantech.c
377
input_report_key(dev, BTN_BACK, packet[0] & 0x80);
drivers/input/mouse/elantech.c
412
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
417
fingers = (packet[0] & 0xc0) >> 6;
drivers/input/mouse/elantech.c
425
if (packet[3] & 0x80)
drivers/input/mouse/elantech.c
433
x1 = ((packet[1] & 0x0f) << 8) | packet[2];
drivers/input/mouse/elantech.c
438
y1 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]);
drivers/input/mouse/elantech.c
440
pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4);
drivers/input/mouse/elantech.c
441
width = ((packet[0] & 0x30) >> 2) | ((packet[3] & 0x30) >> 4);
drivers/input/mouse/elantech.c
451
x1 = (((packet[0] & 0x10) << 4) | packet[1]) << 2;
drivers/input/mouse/elantech.c
454
((((packet[0] & 0x20) << 3) | packet[2]) << 2);
drivers/input/mouse/elantech.c
459
x2 = (((packet[3] & 0x10) << 4) | packet[4]) << 2;
drivers/input/mouse/elantech.c
462
((((packet[3] & 0x20) << 3) | packet[5]) << 2);
drivers/input/mouse/elantech.c
480
psmouse_report_standard_buttons(dev, packet[0]);
drivers/input/mouse/elantech.c
509
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
513
t = get_unaligned_le32(&packet[0]);
drivers/input/mouse/elantech.c
526
if (packet[4] == 0x80 || packet[5] == 0x80 ||
drivers/input/mouse/elantech.c
527
packet[1] >> 7 == packet[4] >> 7 ||
drivers/input/mouse/elantech.c
528
packet[2] >> 7 == packet[5] >> 7) {
drivers/input/mouse/elantech.c
529
elantech_debug("discarding packet [%6ph]\n", packet);
drivers/input/mouse/elantech.c
533
x = packet[4] - (int)((packet[1]^0x80) << 1);
drivers/input/mouse/elantech.c
534
y = (int)((packet[2]^0x80) << 1) - packet[5];
drivers/input/mouse/elantech.c
536
psmouse_report_standard_buttons(tp_dev, packet[0]);
drivers/input/mouse/elantech.c
563
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
568
fingers = (packet[0] & 0xc0) >> 6;
drivers/input/mouse/elantech.c
577
x1 = ((packet[1] & 0x0f) << 8) | packet[2];
drivers/input/mouse/elantech.c
582
y1 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]);
drivers/input/mouse/elantech.c
591
etd->mt[0].x = ((packet[1] & 0x0f) << 8) | packet[2];
drivers/input/mouse/elantech.c
597
(((packet[4] & 0x0f) << 8) | packet[5]);
drivers/input/mouse/elantech.c
607
x2 = ((packet[1] & 0x0f) << 8) | packet[2];
drivers/input/mouse/elantech.c
608
y2 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]);
drivers/input/mouse/elantech.c
612
pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4);
drivers/input/mouse/elantech.c
613
width = ((packet[0] & 0x30) >> 2) | ((packet[3] & 0x30) >> 4);
drivers/input/mouse/elantech.c
627
input_report_key(dev, BTN_LEFT, packet[0] & 0x03);
drivers/input/mouse/elantech.c
629
psmouse_report_standard_buttons(dev, packet[0]);
drivers/input/mouse/elantech.c
641
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
645
input_report_key(dev, BTN_LEFT, packet[0] & 0x03);
drivers/input/mouse/elantech.c
647
psmouse_report_standard_buttons(dev, packet[0]);
drivers/input/mouse/elantech.c
656
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
661
fingers = packet[1] & 0x1f;
drivers/input/mouse/elantech.c
676
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
680
id = ((packet[3] & 0xe0) >> 5) - 1;
drivers/input/mouse/elantech.c
684
etd->mt[id].x = ((packet[1] & 0x0f) << 8) | packet[2];
drivers/input/mouse/elantech.c
685
etd->mt[id].y = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]);
drivers/input/mouse/elantech.c
686
pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4);
drivers/input/mouse/elantech.c
687
traces = (packet[0] & 0xf0) >> 4;
drivers/input/mouse/elantech.c
706
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
710
id = ((packet[0] & 0xe0) >> 5) - 1;
drivers/input/mouse/elantech.c
714
sid = ((packet[3] & 0xe0) >> 5) - 1;
drivers/input/mouse/elantech.c
715
weight = (packet[0] & 0x10) ? ETP_WEIGHT_VALUE : 1;
drivers/input/mouse/elantech.c
721
delta_x1 = (signed char)packet[1];
drivers/input/mouse/elantech.c
722
delta_y1 = (signed char)packet[2];
drivers/input/mouse/elantech.c
723
delta_x2 = (signed char)packet[4];
drivers/input/mouse/elantech.c
724
delta_y2 = (signed char)packet[5];
drivers/input/mouse/elantech.c
769
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
775
p1 = (packet[0] & 0x20) >> 5;
drivers/input/mouse/elantech.c
776
p2 = (packet[0] & 0x10) >> 4;
drivers/input/mouse/elantech.c
779
p1 = (packet[0] & 0x10) >> 4;
drivers/input/mouse/elantech.c
780
p2 = (packet[0] & 0x20) >> 5;
drivers/input/mouse/elantech.c
783
p3 = (packet[0] & 0x04) >> 2;
drivers/input/mouse/elantech.c
785
return etd->parity[packet[1]] == p1 &&
drivers/input/mouse/elantech.c
786
etd->parity[packet[2]] == p2 &&
drivers/input/mouse/elantech.c
787
etd->parity[packet[3]] == p3;
drivers/input/mouse/elantech.c
799
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
801
return !memcmp(packet, debounce_packet, sizeof(debounce_packet));
drivers/input/mouse/elantech.c
807
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
819
return (packet[0] & 0x0c) == 0x04 &&
drivers/input/mouse/elantech.c
820
(packet[3] & 0x0f) == 0x02;
drivers/input/mouse/elantech.c
822
if ((packet[0] & 0xc0) == 0x80)
drivers/input/mouse/elantech.c
823
return (packet[0] & 0x0c) == 0x0c &&
drivers/input/mouse/elantech.c
824
(packet[3] & 0x0e) == 0x08;
drivers/input/mouse/elantech.c
826
return (packet[0] & 0x3c) == 0x3c &&
drivers/input/mouse/elantech.c
827
(packet[1] & 0xf0) == 0x00 &&
drivers/input/mouse/elantech.c
828
(packet[3] & 0x3e) == 0x38 &&
drivers/input/mouse/elantech.c
829
(packet[4] & 0xf0) == 0x00;
drivers/input/mouse/elantech.c
842
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
848
if (!memcmp(packet, debounce_packet, sizeof(debounce_packet)))
drivers/input/mouse/elantech.c
856
if ((packet[3] & 0x09) == 0x08)
drivers/input/mouse/elantech.c
859
if ((packet[3] & 0x09) == 0x09)
drivers/input/mouse/elantech.c
862
if ((packet[0] & 0x0c) == 0x04 && (packet[3] & 0xcf) == 0x02)
drivers/input/mouse/elantech.c
865
if ((packet[0] & 0x0c) == 0x0c && (packet[3] & 0xce) == 0x0c)
drivers/input/mouse/elantech.c
867
if ((packet[3] & 0x0f) == 0x06)
drivers/input/mouse/elantech.c
877
unsigned char *packet = psmouse->packet;
drivers/input/mouse/elantech.c
878
unsigned char packet_type = packet[3] & 0x03;
drivers/input/mouse/elantech.c
882
if (etd->tp_dev && (packet[3] & 0x0f) == 0x06)
drivers/input/mouse/elantech.c
896
sanity_check = ((packet[3] & 0x08) == 0x00);
drivers/input/mouse/elantech.c
898
sanity_check = ((packet[3] & 0x1c) == 0x10);
drivers/input/mouse/elantech.c
900
sanity_check = ((packet[0] & 0x08) == 0x00 &&
drivers/input/mouse/elantech.c
901
(packet[3] & 0x1c) == 0x10);
drivers/input/mouse/focaltech.c
150
unsigned char *packet)
drivers/input/mouse/focaltech.c
154
unsigned char fingers = packet[1];
drivers/input/mouse/focaltech.c
157
state->pressed = (packet[0] >> 4) & 1;
drivers/input/mouse/focaltech.c
174
unsigned char *packet)
drivers/input/mouse/focaltech.c
180
finger = (packet[1] >> 4) - 1;
drivers/input/mouse/focaltech.c
187
state->pressed = (packet[0] >> 4) & 1;
drivers/input/mouse/focaltech.c
189
state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2];
drivers/input/mouse/focaltech.c
190
state->fingers[finger].y = (packet[3] << 8) | packet[4];
drivers/input/mouse/focaltech.c
191
state->width = packet[5] >> 4;
drivers/input/mouse/focaltech.c
196
unsigned char *packet)
drivers/input/mouse/focaltech.c
202
state->pressed = packet[0] >> 7;
drivers/input/mouse/focaltech.c
203
finger1 = ((packet[0] >> 4) & 0x7) - 1;
drivers/input/mouse/focaltech.c
205
state->fingers[finger1].x += (s8)packet[1];
drivers/input/mouse/focaltech.c
206
state->fingers[finger1].y += (s8)packet[2];
drivers/input/mouse/focaltech.c
219
finger2 = ((packet[3] >> 4) & 0x7) - 1;
drivers/input/mouse/focaltech.c
221
state->fingers[finger2].x += (s8)packet[4];
drivers/input/mouse/focaltech.c
222
state->fingers[finger2].y += (s8)packet[5];
drivers/input/mouse/focaltech.c
228
unsigned char *packet = psmouse->packet;
drivers/input/mouse/focaltech.c
230
switch (packet[0] & 0xf) {
drivers/input/mouse/focaltech.c
232
focaltech_process_touch_packet(psmouse, packet);
drivers/input/mouse/focaltech.c
236
focaltech_process_abs_packet(psmouse, packet);
drivers/input/mouse/focaltech.c
240
focaltech_process_rel_packet(psmouse, packet);
drivers/input/mouse/focaltech.c
244
psmouse_err(psmouse, "Unknown packet type: %02x\n", packet[0]);
drivers/input/mouse/hgpk.c
306
static bool hgpk_is_byte_valid(struct psmouse *psmouse, unsigned char *packet)
drivers/input/mouse/hgpk.c
314
valid = (packet[0] & 0x0C) == 0x08;
drivers/input/mouse/hgpk.c
319
packet[0] == HGPK_GS : !(packet[pktcnt - 1] & 0x80);
drivers/input/mouse/hgpk.c
324
packet[0] == HGPK_PT : !(packet[pktcnt - 1] & 0x80);
drivers/input/mouse/hgpk.c
335
priv->mode, pktcnt, 6, psmouse->packet);
drivers/input/mouse/hgpk.c
344
unsigned char *packet = psmouse->packet;
drivers/input/mouse/hgpk.c
345
int down = !!(packet[2] & 2);
drivers/input/mouse/hgpk.c
346
int left = !!(packet[3] & 1);
drivers/input/mouse/hgpk.c
347
int right = !!(packet[3] & 2);
drivers/input/mouse/hgpk.c
348
int x = packet[1] | ((packet[2] & 0x78) << 4);
drivers/input/mouse/hgpk.c
349
int y = packet[4] | ((packet[3] & 0x70) << 3);
drivers/input/mouse/hgpk.c
352
int pt_down = !!(packet[2] & 1);
drivers/input/mouse/hgpk.c
353
int finger_down = !!(packet[2] & 2);
drivers/input/mouse/hgpk.c
354
int z = packet[5];
drivers/input/mouse/hgpk.c
428
unsigned char *packet = psmouse->packet;
drivers/input/mouse/hgpk.c
429
int left = packet[0] & 1;
drivers/input/mouse/hgpk.c
430
int right = (packet[0] >> 1) & 1;
drivers/input/mouse/hgpk.c
431
int x = packet[1] - ((packet[0] << 4) & 0x100);
drivers/input/mouse/hgpk.c
432
int y = ((packet[0] << 3) & 0x100) - packet[2];
drivers/input/mouse/hgpk.c
434
if (packet[0] & 0xc0)
drivers/input/mouse/hgpk.c
437
packet[0], packet[1], packet[2]);
drivers/input/mouse/hgpk.c
464
if (!hgpk_is_byte_valid(psmouse, psmouse->packet))
drivers/input/mouse/lifebook.c
137
u8 *packet = psmouse->packet;
drivers/input/mouse/lifebook.c
138
bool relative_packet = packet[0] & 0x08;
drivers/input/mouse/lifebook.c
146
return (packet[0] & 0xf8) == 0x00 ?
drivers/input/mouse/lifebook.c
151
return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ?
drivers/input/mouse/lifebook.c
154
return (packet[3] & 0xf8) == 0xc0 ?
drivers/input/mouse/lifebook.c
157
return (packet[4] & 0xc0) == (packet[2] & 0xc0) ?
drivers/input/mouse/lifebook.c
160
if (((packet[5] & 0x30) << 2) != (packet[5] & 0xc0))
drivers/input/mouse/lifebook.c
162
if ((packet[5] & 0xc0) != (packet[1] & 0xc0))
drivers/input/mouse/lifebook.c
175
((packet[1] & 0x3f) << 6) | (packet[2] & 0x3f));
drivers/input/mouse/lifebook.c
177
4096 - (((packet[4] & 0x3f) << 6) | (packet[5] & 0x3f)));
drivers/input/mouse/lifebook.c
180
(packet[1] | ((packet[0] & 0x30) << 4)));
drivers/input/mouse/lifebook.c
182
1024 - (packet[2] | ((packet[0] & 0xC0) << 2)));
drivers/input/mouse/lifebook.c
184
input_report_key(dev1, BTN_TOUCH, packet[0] & 0x04);
drivers/input/mouse/lifebook.c
190
psmouse_report_standard_motion(dev2, packet);
drivers/input/mouse/lifebook.c
192
psmouse_report_standard_buttons(dev2, packet[0]);
drivers/input/mouse/logips2pp.c
44
u8 *packet = psmouse->packet;
drivers/input/mouse/logips2pp.c
53
if ((packet[0] & 0x48) == 0x48 && (packet[1] & 0x02) == 0x02) {
drivers/input/mouse/logips2pp.c
56
switch ((packet[1] >> 4) | (packet[0] & 0x30)) {
drivers/input/mouse/logips2pp.c
61
packet[2] & 0x80 ? REL_HWHEEL : REL_WHEEL,
drivers/input/mouse/logips2pp.c
62
-sign_extend32(packet[2], 3));
drivers/input/mouse/logips2pp.c
63
input_report_key(dev, BTN_SIDE, packet[2] & BIT(4));
drivers/input/mouse/logips2pp.c
64
input_report_key(dev, BTN_EXTRA, packet[2] & BIT(5));
drivers/input/mouse/logips2pp.c
70
input_report_key(dev, BTN_SIDE, packet[2] & BIT(0));
drivers/input/mouse/logips2pp.c
71
input_report_key(dev, BTN_EXTRA, packet[2] & BIT(1));
drivers/input/mouse/logips2pp.c
72
input_report_key(dev, BTN_TASK, packet[2] & BIT(2));
drivers/input/mouse/logips2pp.c
73
input_report_key(dev, BTN_BACK, packet[2] & BIT(3));
drivers/input/mouse/logips2pp.c
74
input_report_key(dev, BTN_FORWARD, packet[2] & BIT(4));
drivers/input/mouse/logips2pp.c
81
packet[2] & 0x08 ? REL_HWHEEL : REL_WHEEL,
drivers/input/mouse/logips2pp.c
82
-sign_extend32(packet[2] >> 4, 3));
drivers/input/mouse/logips2pp.c
83
packet[0] = packet[2] | BIT(3);
drivers/input/mouse/logips2pp.c
89
(packet[1] >> 4) | (packet[0] & 0x30));
drivers/input/mouse/logips2pp.c
93
psmouse_report_standard_buttons(dev, packet[0]);
drivers/input/mouse/logips2pp.c
97
psmouse_report_standard_packet(dev, packet);
drivers/input/mouse/psmouse-base.c
133
void psmouse_report_standard_motion(struct input_dev *dev, u8 *packet)
drivers/input/mouse/psmouse-base.c
137
x = packet[1] ? packet[1] - ((packet[0] << 4) & 0x100) : 0;
drivers/input/mouse/psmouse-base.c
138
y = packet[2] ? packet[2] - ((packet[0] << 3) & 0x100) : 0;
drivers/input/mouse/psmouse-base.c
144
void psmouse_report_standard_packet(struct input_dev *dev, u8 *packet)
drivers/input/mouse/psmouse-base.c
146
psmouse_report_standard_buttons(dev, packet[0]);
drivers/input/mouse/psmouse-base.c
147
psmouse_report_standard_motion(dev, packet);
drivers/input/mouse/psmouse-base.c
157
u8 *packet = psmouse->packet;
drivers/input/mouse/psmouse-base.c
168
input_report_rel(dev, REL_WHEEL, -(s8) packet[3]);
drivers/input/mouse/psmouse-base.c
173
switch (packet[3] & 0xC0) {
drivers/input/mouse/psmouse-base.c
176
-sign_extend32(packet[3], 5));
drivers/input/mouse/psmouse-base.c
180
-sign_extend32(packet[3], 5));
drivers/input/mouse/psmouse-base.c
184
wheel = sign_extend32(packet[3], 3);
drivers/input/mouse/psmouse-base.c
196
input_report_key(dev, BTN_SIDE, packet[3] & BIT(4));
drivers/input/mouse/psmouse-base.c
197
input_report_key(dev, BTN_EXTRA, packet[3] & BIT(5));
drivers/input/mouse/psmouse-base.c
204
input_report_rel(dev, REL_WHEEL, -(s8) packet[3]);
drivers/input/mouse/psmouse-base.c
207
input_report_key(dev, BTN_SIDE, packet[0] & BIT(6));
drivers/input/mouse/psmouse-base.c
208
input_report_key(dev, BTN_EXTRA, packet[0] & BIT(7));
drivers/input/mouse/psmouse-base.c
213
input_report_key(dev, BTN_EXTRA, packet[0] & BIT(3));
drivers/input/mouse/psmouse-base.c
219
packet[1] |= (packet[0] & 0x40) << 1;
drivers/input/mouse/psmouse-base.c
227
input_report_key(dev, BTN_SIDE, packet[0] & BIT(3));
drivers/input/mouse/psmouse-base.c
228
packet[0] |= BIT(3);
drivers/input/mouse/psmouse-base.c
236
packet[0] |= psmouse->extra_buttons;
drivers/input/mouse/psmouse-base.c
237
psmouse_report_standard_packet(dev, packet);
drivers/input/mouse/psmouse-base.c
381
psmouse->badbyte = psmouse->packet[0];
drivers/input/mouse/psmouse-base.c
387
psmouse->packet[psmouse->pktcnt++] = data;
drivers/input/mouse/psmouse-base.c
390
if (unlikely(psmouse->packet[0] == PSMOUSE_RET_BAT && psmouse->pktcnt <= 2)) {
drivers/input/mouse/psmouse-base.c
396
if (psmouse->packet[1] == PSMOUSE_RET_ID ||
drivers/input/mouse/psmouse-base.c
398
psmouse->packet[1] == PSMOUSE_RET_BAT)) {
drivers/input/mouse/psmouse-base.c
409
psmouse->packet[psmouse->pktcnt++] = data;
drivers/input/mouse/psmouse-base.c
419
psmouse->badbyte = psmouse->packet[0];
drivers/input/mouse/psmouse-base.c
494
return ps2_command(&psmouse->ps2dev, psmouse->packet,
drivers/input/mouse/psmouse.h
146
void psmouse_report_standard_motion(struct input_dev *, u8 *packet);
drivers/input/mouse/psmouse.h
147
void psmouse_report_standard_packet(struct input_dev *, u8 *packet);
drivers/input/mouse/psmouse.h
97
unsigned char packet[8];
drivers/input/mouse/sentelic.c
27
#define GET_ABS_X(packet) ((packet[1] << 2) | ((packet[3] >> 2) & 0x03))
drivers/input/mouse/sentelic.c
28
#define GET_ABS_Y(packet) ((packet[2] << 2) | (packet[3] & 0x03))
drivers/input/mouse/sentelic.c
636
static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[])
drivers/input/mouse/sentelic.c
645
switch (packet[0] >> FSP_PKT_TYPE_SHIFT) {
drivers/input/mouse/sentelic.c
648
abs_x = GET_ABS_X(packet);
drivers/input/mouse/sentelic.c
649
abs_y = GET_ABS_Y(packet);
drivers/input/mouse/sentelic.c
668
packet[0], packet[1], packet[2], packet[3], abs_x, abs_y);
drivers/input/mouse/sentelic.c
677
static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[])
drivers/input/mouse/sentelic.c
697
unsigned char *packet = psmouse->packet;
drivers/input/mouse/sentelic.c
708
fsp_packet_debug(psmouse, packet);
drivers/input/mouse/sentelic.c
710
switch (psmouse->packet[0] >> FSP_PKT_TYPE_SHIFT) {
drivers/input/mouse/sentelic.c
713
if ((packet[0] == 0x48 || packet[0] == 0x49) &&
drivers/input/mouse/sentelic.c
714
packet[1] == 0 && packet[2] == 0) {
drivers/input/mouse/sentelic.c
720
packet[3] &= 0xf0;
drivers/input/mouse/sentelic.c
723
abs_x = GET_ABS_X(packet);
drivers/input/mouse/sentelic.c
724
abs_y = GET_ABS_Y(packet);
drivers/input/mouse/sentelic.c
726
if (packet[0] & FSP_PB0_MFMC) {
drivers/input/mouse/sentelic.c
734
if (packet[0] & FSP_PB0_MFMC_FGR2) {
drivers/input/mouse/sentelic.c
764
if ((packet[0] & (FSP_PB0_LBTN|FSP_PB0_PHY_BTN)) ==
drivers/input/mouse/sentelic.c
770
packet[0] &= ~FSP_PB0_LBTN;
drivers/input/mouse/sentelic.c
782
if (fgrs == 1 || (fgrs == 2 && !(packet[0] & FSP_PB0_MFMC_FGR2))) {
drivers/input/mouse/sentelic.c
786
input_report_key(dev, BTN_LEFT, packet[0] & 0x01);
drivers/input/mouse/sentelic.c
787
input_report_key(dev, BTN_RIGHT, packet[0] & 0x02);
drivers/input/mouse/sentelic.c
796
packet[0] &= ~FSP_PB0_LBTN;
drivers/input/mouse/sentelic.c
802
if (packet[3] != 0) {
drivers/input/mouse/sentelic.c
803
if (packet[3] & BIT(0))
drivers/input/mouse/sentelic.c
805
if (packet[3] & BIT(1))
drivers/input/mouse/sentelic.c
807
if (packet[3] & BIT(2))
drivers/input/mouse/sentelic.c
809
if (packet[3] & BIT(3))
drivers/input/mouse/sentelic.c
813
packet[3] = button_status;
drivers/input/mouse/sentelic.c
814
rscroll = (packet[3] >> 4) & 1;
drivers/input/mouse/sentelic.c
815
lscroll = (packet[3] >> 5) & 1;
drivers/input/mouse/sentelic.c
821
(int)(packet[3] & 8) - (int)(packet[3] & 7));
drivers/input/mouse/sentelic.c
829
psmouse_report_standard_packet(dev, packet);
drivers/input/mouse/synaptics.c
1108
if (synaptics_parse_hw_state(psmouse->packet, priv, &hw))
drivers/input/mouse/synaptics.c
1207
const u8 *packet = psmouse->packet;
drivers/input/mouse/synaptics.c
1216
return (packet[idx] & newabs_rel_mask[idx]) == newabs_rslt[idx];
drivers/input/mouse/synaptics.c
1219
return (packet[idx] & newabs_mask[idx]) == newabs_rslt[idx];
drivers/input/mouse/synaptics.c
1222
return (packet[idx] & oldabs_mask[idx]) == oldabs_rslt[idx];
drivers/input/mouse/synaptics.c
1254
synaptics_is_pt_packet(psmouse->packet)) {
drivers/input/mouse/synaptics.c
1255
synaptics_pass_pt_packet(priv, psmouse->packet);
drivers/input/mouse/synaptics.c
700
static void synaptics_pass_pt_packet(struct synaptics_data *priv, u8 *packet)
drivers/input/mouse/synaptics.c
708
serio_interrupt(ptport, packet[1], 0);
drivers/input/mouse/synaptics.c
714
serio_interrupt(ptport, packet[4], 0);
drivers/input/mouse/synaptics.c
715
serio_interrupt(ptport, packet[5], 0);
drivers/input/mouse/synaptics.c
717
serio_interrupt(ptport, packet[2], 0);
drivers/input/mouse/synaptics.c
971
!((psmouse->packet[0] ^ psmouse->packet[3]) & 0x02))
drivers/input/mouse/touchkit_ps2.c
36
#define TOUCHKIT_GET_TOUCHED(packet) (((packet)[0]) & 0x01)
drivers/input/mouse/touchkit_ps2.c
37
#define TOUCHKIT_GET_X(packet) (((packet)[1] << 7) | (packet)[2])
drivers/input/mouse/touchkit_ps2.c
38
#define TOUCHKIT_GET_Y(packet) (((packet)[3] << 7) | (packet)[4])
drivers/input/mouse/touchkit_ps2.c
42
unsigned char *packet = psmouse->packet;
drivers/input/mouse/touchkit_ps2.c
48
input_report_abs(dev, ABS_X, TOUCHKIT_GET_X(packet));
drivers/input/mouse/touchkit_ps2.c
49
input_report_abs(dev, ABS_Y, TOUCHKIT_GET_Y(packet));
drivers/input/mouse/touchkit_ps2.c
50
input_report_key(dev, BTN_TOUCH, TOUCHKIT_GET_TOUCHED(packet));
drivers/input/mouse/vmmouse.c
199
unsigned char *packet = psmouse->packet;
drivers/input/mouse/vmmouse.c
203
return (packet[0] & 0x8) == 0x8 ?
drivers/input/mousedev.c
142
mousedev->packet.dx = tmp / FRACTION_DENOM;
drivers/input/mousedev.c
144
tmp - mousedev->packet.dx * FRACTION_DENOM;
drivers/input/mousedev.c
159
mousedev->packet.dy = tmp / FRACTION_DENOM;
drivers/input/mousedev.c
161
mousedev->packet.dy * FRACTION_DENOM;
drivers/input/mousedev.c
184
mousedev->packet.x = ((value - min) * xres) / size;
drivers/input/mousedev.c
185
mousedev->packet.abs_event = 1;
drivers/input/mousedev.c
198
mousedev->packet.y = yres - ((value - min) * yres) / size;
drivers/input/mousedev.c
199
mousedev->packet.abs_event = 1;
drivers/input/mousedev.c
209
mousedev->packet.dx += value;
drivers/input/mousedev.c
213
mousedev->packet.dy -= value;
drivers/input/mousedev.c
217
mousedev->packet.dz -= value;
drivers/input/mousedev.c
253
set_bit(index, &mousedev->packet.buttons);
drivers/input/mousedev.c
254
set_bit(index, &mousedev_mix->packet.buttons);
drivers/input/mousedev.c
256
clear_bit(index, &mousedev->packet.buttons);
drivers/input/mousedev.c
257
clear_bit(index, &mousedev_mix->packet.buttons);
drivers/input/mousedev.c
262
struct mousedev_hw_data *packet)
drivers/input/mousedev.c
276
if (client->ready && p->buttons != mousedev->packet.buttons) {
drivers/input/mousedev.c
284
if (packet->abs_event) {
drivers/input/mousedev.c
285
p->dx += packet->x - client->pos_x;
drivers/input/mousedev.c
286
p->dy += packet->y - client->pos_y;
drivers/input/mousedev.c
287
client->pos_x = packet->x;
drivers/input/mousedev.c
288
client->pos_y = packet->y;
drivers/input/mousedev.c
291
client->pos_x += packet->dx;
drivers/input/mousedev.c
294
client->pos_y += packet->dy;
drivers/input/mousedev.c
297
p->dx += packet->dx;
drivers/input/mousedev.c
298
p->dy += packet->dy;
drivers/input/mousedev.c
299
p->dz += packet->dz;
drivers/input/mousedev.c
300
p->buttons = mousedev->packet.buttons;
drivers/input/mousedev.c
330
set_bit(0, &mousedev->packet.buttons);
drivers/input/mousedev.c
331
set_bit(0, &mousedev_mix->packet.buttons);
drivers/input/mousedev.c
332
mousedev_notify_readers(mousedev, &mousedev_mix->packet);
drivers/input/mousedev.c
334
&mousedev_mix->packet);
drivers/input/mousedev.c
335
clear_bit(0, &mousedev->packet.buttons);
drivers/input/mousedev.c
336
clear_bit(0, &mousedev_mix->packet.buttons);
drivers/input/mousedev.c
393
mousedev_notify_readers(mousedev, &mousedev->packet);
drivers/input/mousedev.c
394
mousedev_notify_readers(mousedev_mix, &mousedev->packet);
drivers/input/mousedev.c
396
mousedev->packet.dx = mousedev->packet.dy =
drivers/input/mousedev.c
397
mousedev->packet.dz = 0;
drivers/input/mousedev.c
398
mousedev->packet.abs_event = 0;
drivers/input/mousedev.c
72
struct mousedev_hw_data packet;
drivers/input/serio/hil_mlc.c
446
{ HILSE_OUT, { .packet = pack }, 0, HILSEN_NEXT, HILSEN_DOZE, 0 },
drivers/input/serio/hil_mlc.c
448
{ HILSE_CTS, { .packet = 0 }, 0, HILSEN_NEXT | HILSEN_SCHED | HILSEN_BREAK, HILSEN_DOZE, 0 },
drivers/input/serio/hil_mlc.c
450
{ HILSE_EXPECT, { .packet = comp }, to, got, got_wrong, timed_out },
drivers/input/serio/hil_mlc.c
452
{ HILSE_EXPECT_LAST, { .packet = comp }, to, got, got_wrong, timed_out },
drivers/input/serio/hil_mlc.c
454
{ HILSE_EXPECT_DISC, { .packet = comp }, to, got, got_wrong, timed_out },
drivers/input/serio/hil_mlc.c
456
{ HILSE_IN, { .packet = 0 }, to, got, got_error, timed_out },
drivers/input/serio/hil_mlc.c
458
{ HILSE_OUT_DISC, { .packet = pack }, 0, 0, 0, 0 },
drivers/input/serio/hil_mlc.c
460
{ HILSE_OUT_LAST, { .packet = pack }, 0, 0, 0, 0 },
drivers/input/serio/hil_mlc.c
589
mlc->imatch = node->object.packet;
drivers/input/serio/hil_mlc.c
593
mlc->imatch = node->object.packet;
drivers/input/serio/hil_mlc.c
597
mlc->imatch = node->object.packet;
drivers/input/serio/hil_mlc.c
674
pack = node->object.packet;
drivers/input/serio/hil_mlc.c
680
pack = node->object.packet;
drivers/input/serio/hil_mlc.c
686
pack = node->object.packet;
drivers/input/touchscreen/ads7846.c
1046
struct ads7846_packet *packet = ts->packet;
drivers/input/touchscreen/ads7846.c
1057
packet->count_skip = DIV_ROUND_UP(count, 24);
drivers/input/touchscreen/ads7846.c
1062
packet->count = ts->debounce_rep + 2;
drivers/input/touchscreen/ads7846.c
1064
packet->count = 1;
drivers/input/touchscreen/ads7846.c
1067
packet->cmds = 5; /* x, y, z1, z2, pwdown */
drivers/input/touchscreen/ads7846.c
1069
packet->cmds = 3; /* x, y, pwdown */
drivers/input/touchscreen/ads7846.c
1071
for (cmd_idx = 0; cmd_idx < packet->cmds; cmd_idx++) {
drivers/input/touchscreen/ads7846.c
1072
struct ads7846_buf_layout *l = &packet->l[cmd_idx];
drivers/input/touchscreen/ads7846.c
1075
if (cmd_idx == packet->cmds - 1)
drivers/input/touchscreen/ads7846.c
1079
max_count = packet->count + packet->count_skip;
drivers/input/touchscreen/ads7846.c
1081
max_count = packet->count;
drivers/input/touchscreen/ads7846.c
1086
l->skip = packet->count_skip;
drivers/input/touchscreen/ads7846.c
1087
size += sizeof(*packet->tx) * max_count;
drivers/input/touchscreen/ads7846.c
1090
packet->tx = devm_kzalloc(&ts->spi->dev, size, GFP_KERNEL);
drivers/input/touchscreen/ads7846.c
1091
if (!packet->tx)
drivers/input/touchscreen/ads7846.c
1094
packet->rx = devm_kzalloc(&ts->spi->dev, size, GFP_KERNEL);
drivers/input/touchscreen/ads7846.c
1095
if (!packet->rx)
drivers/input/touchscreen/ads7846.c
111
struct ads7846_packet *packet;
drivers/input/touchscreen/ads7846.c
1112
for (cmd_idx = 0; cmd_idx < packet->cmds; cmd_idx++) {
drivers/input/touchscreen/ads7846.c
1113
struct ads7846_buf_layout *l = &packet->l[cmd_idx];
drivers/input/touchscreen/ads7846.c
1116
if (cmd_idx == packet->cmds - 1)
drivers/input/touchscreen/ads7846.c
1122
packet->tx[l->offset + b].cmd = cmd;
drivers/input/touchscreen/ads7846.c
1125
x->tx_buf = packet->tx;
drivers/input/touchscreen/ads7846.c
1126
x->rx_buf = packet->rx;
drivers/input/touchscreen/ads7846.c
1218
struct ads7846_packet *packet;
drivers/input/touchscreen/ads7846.c
1251
packet = devm_kzalloc(dev, sizeof(struct ads7846_packet), GFP_KERNEL);
drivers/input/touchscreen/ads7846.c
1252
if (!packet)
drivers/input/touchscreen/ads7846.c
1261
ts->packet = packet;
drivers/input/touchscreen/ads7846.c
708
struct ads7846_packet *packet = ts->packet;
drivers/input/touchscreen/ads7846.c
712
packet->y = val;
drivers/input/touchscreen/ads7846.c
715
packet->x = val;
drivers/input/touchscreen/ads7846.c
718
packet->z1 = val;
drivers/input/touchscreen/ads7846.c
721
packet->z2 = val;
drivers/input/touchscreen/ads7846.c
769
struct ads7846_packet *packet = ts->packet;
drivers/input/touchscreen/ads7846.c
774
packet->ignore = false;
drivers/input/touchscreen/ads7846.c
775
for (cmd_idx = packet->last_cmd_idx; cmd_idx < packet->cmds - 1; cmd_idx++) {
drivers/input/touchscreen/ads7846.c
776
struct ads7846_buf_layout *l = &packet->l[cmd_idx];
drivers/input/touchscreen/ads7846.c
778
packet->last_cmd_idx = cmd_idx;
drivers/input/touchscreen/ads7846.c
781
val = ads7846_get_value(&packet->rx[l->offset + b]);
drivers/input/touchscreen/ads7846.c
791
packet->ignore = true;
drivers/input/touchscreen/ads7846.c
824
struct ads7846_packet *packet = ts->packet;
drivers/input/touchscreen/ads7846.c
829
packet->last_cmd_idx = 0;
drivers/input/touchscreen/ads7846.c
838
packet->ignore = true;
drivers/input/touchscreen/ads7846.c
852
struct ads7846_packet *packet = ts->packet;
drivers/input/touchscreen/ads7846.c
856
x = packet->x;
drivers/input/touchscreen/ads7846.c
857
y = packet->y;
drivers/input/touchscreen/ads7846.c
862
z1 = packet->z1;
drivers/input/touchscreen/ads7846.c
863
z2 = packet->z2;
drivers/input/touchscreen/ads7846.c
890
if (packet->ignore || Rt > ts->pressure_max) {
drivers/input/touchscreen/ads7846.c
892
packet->ignore, Rt);
drivers/input/touchscreen/elo.c
220
static int elo_command_10(struct elo *elo, unsigned char *packet)
drivers/input/touchscreen/elo.c
229
elo->expected_packet = toupper(packet[0]);
drivers/input/touchscreen/elo.c
237
csum += packet[i];
drivers/input/touchscreen/elo.c
238
if (serio_write(elo->serio, packet[i]))
drivers/input/touchscreen/elo.c
249
memcpy(packet, elo->response, ELO10_PACKET_LEN);
drivers/input/touchscreen/elo.c
262
unsigned char packet[ELO10_PACKET_LEN] = { ELO10_ID_CMD };
drivers/input/touchscreen/elo.c
264
if (elo_command_10(elo, packet))
drivers/input/touchscreen/elo.c
267
dev->id.version = (packet[5] << 8) | packet[4];
drivers/input/touchscreen/elo.c
271
if (packet[3] & ELO10_PRESSURE)
drivers/input/touchscreen/elo.c
276
elo_types[(packet[1] -'0') & 0x03],
drivers/input/touchscreen/elo.c
277
packet[5], packet[4], packet[3], packet[7]);
drivers/input/touchscreen/hideep.c
182
struct pgm_packet *packet = (void *)ts->xfer_buf;
drivers/input/touchscreen/hideep.c
186
.len = len + sizeof(packet->header.len) +
drivers/input/touchscreen/hideep.c
187
sizeof(packet->header.addr),
drivers/input/touchscreen/hideep.c
188
.buf = &packet->header.len,
drivers/input/touchscreen/hideep.c
195
packet->header.len = 0x80 | (count - 1);
drivers/input/touchscreen/hideep.c
196
packet->header.addr = cpu_to_be32(addr);
drivers/input/touchscreen/hideep.c
197
memcpy(packet->payload, data, len);
drivers/input/touchscreen/hideep.c
209
struct pgm_packet *packet = (void *)ts->xfer_buf;
drivers/input/touchscreen/hideep.c
214
.len = sizeof(packet->header.len) +
drivers/input/touchscreen/hideep.c
215
sizeof(packet->header.addr),
drivers/input/touchscreen/hideep.c
216
.buf = &packet->header.len,
drivers/input/touchscreen/hideep.c
230
packet->header.len = count - 1;
drivers/input/touchscreen/hideep.c
231
packet->header.addr = cpu_to_be32(addr);
drivers/input/touchscreen/melfas_mip4.c
430
static void mip4_report_keys(struct mip4_ts *ts, u8 *packet)
drivers/input/touchscreen/melfas_mip4.c
438
key = packet[0] & 0x0F;
drivers/input/touchscreen/melfas_mip4.c
439
down = packet[0] & 0x80;
drivers/input/touchscreen/melfas_mip4.c
444
key = packet[0] & 0x0F;
drivers/input/touchscreen/melfas_mip4.c
445
down = packet[1] & 0x01;
drivers/input/touchscreen/melfas_mip4.c
465
static void mip4_report_touch(struct mip4_ts *ts, u8 *packet)
drivers/input/touchscreen/melfas_mip4.c
482
state = packet[0] & BIT(7);
drivers/input/touchscreen/melfas_mip4.c
483
hover = packet[0] & BIT(5);
drivers/input/touchscreen/melfas_mip4.c
484
palm = packet[0] & BIT(4);
drivers/input/touchscreen/melfas_mip4.c
485
id = (packet[0] & 0x0F) - 1;
drivers/input/touchscreen/melfas_mip4.c
486
x = ((packet[1] & 0x0F) << 8) | packet[2];
drivers/input/touchscreen/melfas_mip4.c
487
y = (((packet[1] >> 4) & 0x0F) << 8) |
drivers/input/touchscreen/melfas_mip4.c
488
packet[3];
drivers/input/touchscreen/melfas_mip4.c
489
pressure = packet[4];
drivers/input/touchscreen/melfas_mip4.c
490
size = packet[5];
drivers/input/touchscreen/melfas_mip4.c
492
touch_major = packet[5];
drivers/input/touchscreen/melfas_mip4.c
493
touch_minor = packet[5];
drivers/input/touchscreen/melfas_mip4.c
495
touch_major = packet[6];
drivers/input/touchscreen/melfas_mip4.c
496
touch_minor = packet[7];
drivers/input/touchscreen/melfas_mip4.c
503
id = (packet[0] & 0x0F) - 1;
drivers/input/touchscreen/melfas_mip4.c
504
hover = packet[1] & BIT(2);
drivers/input/touchscreen/melfas_mip4.c
505
palm = packet[1] & BIT(1);
drivers/input/touchscreen/melfas_mip4.c
506
state = packet[1] & BIT(0);
drivers/input/touchscreen/melfas_mip4.c
507
x = ((packet[2] & 0x0F) << 8) | packet[3];
drivers/input/touchscreen/melfas_mip4.c
508
y = (((packet[2] >> 4) & 0x0F) << 8) |
drivers/input/touchscreen/melfas_mip4.c
509
packet[4];
drivers/input/touchscreen/melfas_mip4.c
510
size = packet[6];
drivers/input/touchscreen/melfas_mip4.c
511
pressure_stage = (packet[7] & 0xF0) >> 4;
drivers/input/touchscreen/melfas_mip4.c
512
pressure = ((packet[7] & 0x0F) << 8) |
drivers/input/touchscreen/melfas_mip4.c
513
packet[8];
drivers/input/touchscreen/melfas_mip4.c
514
touch_major = packet[9];
drivers/input/touchscreen/melfas_mip4.c
515
touch_minor = packet[10];
drivers/input/touchscreen/melfas_mip4.c
543
static int mip4_handle_packet(struct mip4_ts *ts, u8 *packet)
drivers/input/touchscreen/melfas_mip4.c
550
type = (packet[0] & 0x40) >> 6;
drivers/input/touchscreen/melfas_mip4.c
554
type = (packet[0] & 0xF0) >> 4;
drivers/input/touchscreen/melfas_mip4.c
567
mip4_report_keys(ts, packet);
drivers/input/touchscreen/melfas_mip4.c
571
mip4_report_touch(ts, packet);
drivers/input/touchscreen/penmount.c
88
static bool pm_checkpacket(unsigned char *packet)
drivers/input/touchscreen/penmount.c
94
total += packet[i];
drivers/input/touchscreen/penmount.c
96
return packet[5] == (unsigned char)~(total & 0xff);
drivers/input/touchscreen/sis_i2c.c
101
u8 packet[SIS_MAX_PACKET_SIZE];
drivers/input/touchscreen/sis_i2c.c
234
error = sis_read_packet(ts->client, ts->packet,
drivers/input/touchscreen/sis_i2c.c
248
report_id = ts->packet[SIS_PKT_REPORT_OFFSET];
drivers/input/touchscreen/sis_i2c.c
249
contact = &ts->packet[SIS_PKT_CONTACT_OFFSET];
drivers/input/touchscreen/usbtouchscreen.c
1057
struct nexio_touch_packet *packet = (void *) pkt;
drivers/input/touchscreen/usbtouchscreen.c
1059
unsigned int data_len = be16_to_cpu(packet->data_len);
drivers/input/touchscreen/usbtouchscreen.c
1060
unsigned int x_len = be16_to_cpu(packet->x_len);
drivers/input/touchscreen/usbtouchscreen.c
1061
unsigned int y_len = be16_to_cpu(packet->y_len);
drivers/input/touchscreen/usbtouchscreen.c
1093
if (begin_x == -1 && packet->data[x] > NEXIO_THRESHOLD) {
drivers/input/touchscreen/usbtouchscreen.c
1097
if (end_x == -1 && begin_x != -1 && packet->data[x] < NEXIO_THRESHOLD) {
drivers/input/touchscreen/usbtouchscreen.c
1100
if (begin_y == -1 && packet->data[y] > NEXIO_THRESHOLD) {
drivers/input/touchscreen/usbtouchscreen.c
1105
begin_y != -1 && packet->data[y] < NEXIO_THRESHOLD) {
drivers/input/touchscreen/usbtouchscreen.c
1126
usbtouch->touch = packet->flags & 0x01;
drivers/input/touchscreen/zinitix.c
190
__le16 packet[2] = {cpu_to_le16(reg), cpu_to_le16(value)};
drivers/input/touchscreen/zinitix.c
193
ret = i2c_master_send(client, (u8 *)packet, sizeof(packet));
drivers/input/touchscreen/zinitix.c
194
if (ret != sizeof(packet))
drivers/media/pci/bt8xx/dst.c
1287
u8 packet[8] = { 0x00, 0x09, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00 };
drivers/media/pci/bt8xx/dst.c
1291
packet[4] = state->tx_tuna[4];
drivers/media/pci/bt8xx/dst.c
1292
packet[2] = state->tx_tuna[2];
drivers/media/pci/bt8xx/dst.c
1293
packet[3] = state->tx_tuna[3];
drivers/media/pci/bt8xx/dst.c
1294
packet[7] = dst_check_sum (packet, 7);
drivers/media/pci/bt8xx/dst.c
1295
return dst_command(state, packet, 8);
drivers/media/pci/bt8xx/dst.c
1421
u8 packet[8] = { 0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xf0, 0xec };
drivers/media/pci/bt8xx/dst.c
1426
memcpy(&packet[3], cmd->msg, cmd->msg_len);
drivers/media/pci/bt8xx/dst.c
1428
memcpy(&packet[2], cmd->msg, cmd->msg_len);
drivers/media/pci/bt8xx/dst.c
1431
packet[7] = dst_check_sum(&packet[0], 7);
drivers/media/pci/bt8xx/dst.c
1432
return dst_command(state, packet, 8);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
113
packet.shdr.hdr.size = sizeof(struct hfi_session_open_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
114
packet.shdr.hdr.pkt_type = HFI_CMD_SYS_SESSION_INIT;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
115
packet.shdr.session_id = inst->session_id;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
118
packet.session_domain = HFI_SESSION_TYPE_DEC;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
120
packet.session_domain = HFI_SESSION_TYPE_ENC;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
122
packet.session_codec = codec;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
126
ret = iris_hfi_queue_cmd_write(inst->core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
134
struct hfi_session_pkt *packet,
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
137
packet->shdr.hdr.size = sizeof(*packet);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
138
packet->shdr.hdr.pkt_type = ptype;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
139
packet->shdr.session_id = inst->session_id;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
144
struct hfi_session_pkt packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
146
iris_hfi_gen1_packet_session_cmd(inst, &packet, HFI_CMD_SYS_SESSION_END);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
148
return iris_hfi_queue_cmd_write(inst->core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
154
struct hfi_session_pkt packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
164
iris_hfi_gen1_packet_session_cmd(inst, &packet, HFI_CMD_SESSION_LOAD_RESOURCES);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
166
ret = iris_hfi_queue_cmd_write(core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
175
iris_hfi_gen1_packet_session_cmd(inst, &packet, HFI_CMD_SESSION_START);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
177
ret = iris_hfi_queue_cmd_write(core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
267
struct hfi_session_pkt packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
269
iris_hfi_gen1_packet_session_cmd(inst, &packet, HFI_CMD_SESSION_CONTINUE);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
271
return iris_hfi_queue_cmd_write(inst->core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
46
struct hfi_sys_get_property_pkt packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
48
packet.hdr.size = sizeof(packet);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
483
iris_hfi_gen1_packet_session_set_property(struct hfi_session_set_property_pkt *packet,
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
486
void *prop_data = &packet->data[1];
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
488
packet->shdr.hdr.size = sizeof(*packet);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
489
packet->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
49
packet.hdr.pkt_type = HFI_CMD_SYS_GET_PROPERTY;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
490
packet->shdr.session_id = inst->session_id;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
491
packet->num_properties = 1;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
492
packet->data[0] = ptype;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
50
packet.num_properties = 1;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
501
packet->shdr.hdr.size += sizeof(u32) + sizeof(*fsize);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
508
packet->shdr.hdr.size += sizeof(u32) + sizeof(*cu);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
51
packet.data = HFI_PROPERTY_SYS_IMAGE_VERSION;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
517
packet->shdr.hdr.size += sizeof(u32) + sizeof(*hfi);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
53
return iris_hfi_queue_cmd_write_locked(core, &packet, packet.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
536
packet->shdr.hdr.size += sizeof(u32) + sizeof(*info);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
546
packet->shdr.hdr.size += sizeof(u32) + sizeof(*count);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
555
packet->shdr.hdr.size += sizeof(u32) + sizeof(*multi);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
563
packet->shdr.hdr.size += sizeof(u32) + sizeof(*sz);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
571
packet->shdr.hdr.size += sizeof(u32) + sizeof(*wr);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
579
packet->shdr.hdr.size += sizeof(u32) + sizeof(*wm);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
595
packet->shdr.hdr.size += sizeof(u32) + sizeof(*pl);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
603
packet->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
612
packet->shdr.hdr.size += sizeof(u32) + sizeof(*brate);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
630
packet->data[1] = *in;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
631
packet->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
641
packet->shdr.hdr.size += sizeof(u32) + sizeof(*entropy);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
666
packet->shdr.hdr.size += sizeof(u32) + sizeof(*range);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
675
packet->shdr.hdr.size += sizeof(u32) + sizeof(*frate);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
687
packet->shdr.hdr.size += sizeof(u32) + sizeof(*plane_actual_info);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
94
struct hfi_session_open_pkt packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
218
iris_hfi_gen1_sys_event_notify(struct iris_core *core, void *packet)
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
220
struct hfi_msg_event_notify_pkt *pkt = packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
266
static void iris_hfi_gen1_session_event_notify(struct iris_inst *inst, void *packet)
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
268
struct hfi_msg_event_notify_pkt *pkt = packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
282
static void iris_hfi_gen1_sys_init_done(struct iris_core *core, void *packet)
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
284
struct hfi_msg_sys_init_done_pkt *pkt = packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
324
static void iris_hfi_gen1_sys_property_info(struct iris_core *core, void *packet)
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
326
struct hfi_msg_sys_property_info_pkt *pkt = packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
343
static void iris_hfi_gen1_session_etb_done(struct iris_inst *inst, void *packet)
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
345
struct hfi_msg_session_empty_buffer_done_pkt *pkt = packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
388
static void iris_hfi_gen1_session_ftb_done(struct iris_inst *inst, void *packet)
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
390
struct hfi_msg_session_fbd_uncompressed_plane0_pkt *uncom_pkt = packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
391
struct hfi_msg_session_fbd_compressed_pkt *com_pkt = packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
675
static void iris_hfi_gen1_flush_debug_queue(struct iris_core *core, u8 *packet)
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
679
while (!iris_hfi_queue_dbg_read(core, packet)) {
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
680
pkt = (struct hfi_msg_sys_coverage_pkt *)packet;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
684
(struct hfi_msg_sys_debug_pkt *)packet;
drivers/media/platform/qcom/iris/iris_hfi_gen2.h
29
struct iris_hfi_header *packet;
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1060
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1061
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1069
if (!inst_hfi_gen2->packet)
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1085
ret = iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1086
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1107
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1108
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1126
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1127
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1145
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1146
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1167
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1168
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1275
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1276
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1299
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
1300
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
167
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
168
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
711
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
712
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
728
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
729
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
743
inst_hfi_gen2->packet = kzalloc(4096, GFP_KERNEL);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
744
if (!inst_hfi_gen2->packet)
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
757
ret = iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
758
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
775
kfree(inst_hfi_gen2->packet);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
776
inst_hfi_gen2->packet = NULL;
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
786
if (!inst_hfi_gen2->packet)
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
800
ret = iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
801
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
803
kfree(inst_hfi_gen2->packet);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
804
inst_hfi_gen2->packet = NULL;
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
825
return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
826
inst_hfi_gen2->packet->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
233
iris_hfi_gen2_create_header(inst_hfi_gen2->packet, session_id, core->header_id++);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
235
iris_hfi_gen2_create_packet(inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
252
iris_hfi_gen2_create_header(inst_hfi_gen2->packet, inst->session_id, core->header_id++);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
254
iris_hfi_gen2_create_packet(inst_hfi_gen2->packet,
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
174
struct iris_hfi_packet *packet;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
179
if (hdr->size < sizeof(*hdr) + sizeof(*packet))
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
185
packet = (struct iris_hfi_packet *)pkt;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
190
pkt += packet->size;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
782
struct iris_hfi_packet *packet;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
795
packet = (struct iris_hfi_packet *)pkt;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
796
if (packet->flags & HFI_FW_FLAGS_SYSTEM_ERROR) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
797
ret = iris_hfi_gen2_handle_system_error(core, packet);
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
801
if (packet->type > range[i].begin && packet->type < range[i].end) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
802
ret = range[i].handle(core, packet);
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
806
if (packet->type > HFI_SYSTEM_ERROR_BEGIN &&
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
807
packet->type < HFI_SYSTEM_ERROR_END)
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
810
pkt += packet->size;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
884
struct iris_hfi_packet *packet;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
909
packet = (struct iris_hfi_packet *)pkt;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
910
if (packet->type == HFI_CMD_SETTINGS_CHANGE) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
911
if (packet->port == HFI_PORT_BITSTREAM) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
916
pkt += packet->size;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
923
packet = (struct iris_hfi_packet *)pkt;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
924
if (packet->flags & HFI_FW_FLAGS_SESSION_ERROR)
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
925
iris_hfi_gen2_handle_session_error(inst, packet);
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
927
if (packet->type > range[i].begin && packet->type < range[i].end) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
928
dequeue |= (packet->type == HFI_CMD_BUFFER);
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
929
ret = range[i].handle(inst, packet);
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
933
pkt += packet->size;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
960
static void iris_hfi_gen2_flush_debug_queue(struct iris_core *core, u8 *packet)
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
965
while (!iris_hfi_queue_dbg_read(core, packet)) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
966
pkt = (struct hfi_debug_header *)packet;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
974
packet[pkt->size] = '\0';
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
975
log = (u8 *)packet + sizeof(*pkt) + 1;
drivers/media/platform/qcom/iris/iris_hfi_queue.c
12
static int iris_hfi_queue_write(struct iris_iface_q_info *qinfo, void *packet, u32 packet_size)
drivers/media/platform/qcom/iris/iris_hfi_queue.c
38
memcpy(write_ptr, packet, packet_size);
drivers/media/platform/qcom/iris/iris_hfi_queue.c
41
memcpy(write_ptr, packet, (packet_size - residue));
drivers/media/platform/qcom/iris/iris_hfi_queue.c
43
packet + (packet_size - residue), residue);
drivers/media/platform/qcom/iris/iris_hfi_queue.c
57
static int iris_hfi_queue_read(struct iris_iface_q_info *qinfo, void *packet)
drivers/media/platform/qcom/iris/iris_hfi_queue.c
90
memcpy(packet, read_ptr, packet_size);
drivers/media/platform/qcom/iris/iris_hfi_queue.c
93
memcpy(packet, read_ptr, (packet_size - residue));
drivers/media/platform/qcom/iris/iris_hfi_queue.c
94
memcpy((packet + (packet_size - residue)),
drivers/media/platform/qcom/venus/hfi_msgs.c
226
void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
228
struct hfi_msg_event_notify_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
230
if (!packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
254
void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
256
struct hfi_msg_sys_init_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
343
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
345
struct hfi_msg_sys_property_info_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
365
void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
367
struct hfi_msg_sys_release_resource_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
374
void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
376
struct hfi_msg_sys_ping_ack_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
387
void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
393
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
395
struct hfi_msg_sys_pc_prep_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
454
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
456
struct hfi_msg_session_property_info_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
490
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
492
struct hfi_msg_session_init_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
516
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
518
struct hfi_msg_session_load_resources_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
525
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
527
struct hfi_msg_session_flush_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
536
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
538
struct hfi_msg_session_empty_buffer_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
546
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
556
struct hfi_msg_session_fbd_compressed_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
570
packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
627
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
629
struct hfi_msg_session_start_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
636
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
638
struct hfi_msg_session_stop_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
645
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
647
struct hfi_msg_session_release_resources_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
654
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
656
struct hfi_msg_session_release_buffers_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
663
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
665
struct hfi_msg_session_end_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
672
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
674
struct hfi_msg_sys_session_abort_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_msgs.c
681
struct venus_inst *inst, void *packet)
drivers/media/platform/qcom/venus/hfi_msgs.c
683
struct hfi_msg_session_get_sequence_hdr_done_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_venus.c
1078
void *packet)
drivers/media/platform/qcom/venus/hfi_venus.c
1080
struct hfi_msg_event_notify_pkt *event_pkt = packet;
drivers/media/platform/qcom/venus/hfi_venus.c
1348
u8 packet[IFACEQ_VAR_LARGE_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
1354
pkt = (struct hfi_session_set_buffers_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
1368
u8 packet[IFACEQ_VAR_LARGE_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
1374
pkt = (struct hfi_session_release_buffer_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
1398
u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
1401
pkt = (struct hfi_session_parse_sequence_header_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
1419
u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
1422
pkt = (struct hfi_session_get_sequence_header_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
1436
u8 packet[IFACEQ_VAR_LARGE_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
1439
pkt = (struct hfi_session_set_property_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
151
static void venus_dump_packet(struct venus_hfi_device *hdev, const void *packet)
drivers/media/platform/qcom/venus/hfi_venus.c
153
size_t pkt_size = *(u32 *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
158
print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 1, packet,
drivers/media/platform/qcom/venus/hfi_venus.c
164
void *packet, u32 *rx_req)
drivers/media/platform/qcom/venus/hfi_venus.c
178
venus_dump_packet(hdev, packet);
drivers/media/platform/qcom/venus/hfi_venus.c
180
dwords = (*(u32 *)packet) >> 2;
drivers/media/platform/qcom/venus/hfi_venus.c
217
memcpy(wr_ptr, packet, dwords << 2);
drivers/media/platform/qcom/venus/hfi_venus.c
223
memcpy(wr_ptr, packet, len);
drivers/media/platform/qcom/venus/hfi_venus.c
224
memcpy(queue->qmem.kva, packet + len, new_wr_idx << 2);
drivers/media/platform/qcom/venus/hfi_venus.c
447
u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
453
pkt = (struct hfi_sys_set_resource_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
863
u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
865
pkt = (struct hfi_sys_set_property_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
875
u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
877
pkt = (struct hfi_sys_set_property_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
888
u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
893
pkt = (struct hfi_sys_set_property_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
904
u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
906
pkt = (struct hfi_sys_set_property_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
916
u8 packet[IFACEQ_VAR_SMALL_PKT_SIZE];
drivers/media/platform/qcom/venus/hfi_venus.c
920
pkt = (struct hfi_sys_set_property_pkt *)packet;
drivers/media/platform/qcom/venus/hfi_venus.c
991
void *packet = hdev->dbg_buf;
drivers/media/platform/qcom/venus/hfi_venus.c
993
while (!venus_iface_dbgq_read(hdev, packet)) {
drivers/media/platform/qcom/venus/hfi_venus.c
994
struct hfi_msg_sys_coverage_pkt *pkt = packet;
drivers/media/platform/qcom/venus/hfi_venus.c
997
struct hfi_msg_sys_debug_pkt *pkt = packet;
drivers/media/rc/iguanair.c
182
if (urb->status == 0 && ir->packet->header.cmd == CMD_NOP)
drivers/media/rc/iguanair.c
214
ir->packet->header.start = 0;
drivers/media/rc/iguanair.c
215
ir->packet->header.direction = DIR_OUT;
drivers/media/rc/iguanair.c
216
ir->packet->header.cmd = CMD_NOP;
drivers/media/rc/iguanair.c
217
iguanair_send(ir, sizeof(ir->packet->header));
drivers/media/rc/iguanair.c
219
ir->packet->header.cmd = CMD_GET_VERSION;
drivers/media/rc/iguanair.c
220
rc = iguanair_send(ir, sizeof(ir->packet->header));
drivers/media/rc/iguanair.c
235
ir->packet->header.cmd = CMD_GET_BUFSIZE;
drivers/media/rc/iguanair.c
237
rc = iguanair_send(ir, sizeof(ir->packet->header));
drivers/media/rc/iguanair.c
249
ir->packet->header.cmd = CMD_GET_FEATURES;
drivers/media/rc/iguanair.c
251
rc = iguanair_send(ir, sizeof(ir->packet->header));
drivers/media/rc/iguanair.c
260
ir->packet->header.start = 0;
drivers/media/rc/iguanair.c
261
ir->packet->header.direction = DIR_OUT;
drivers/media/rc/iguanair.c
262
ir->packet->header.cmd = enable ? CMD_RECEIVER_ON : CMD_RECEIVER_OFF;
drivers/media/rc/iguanair.c
264
return iguanair_send(ir, sizeof(ir->packet->header));
drivers/media/rc/iguanair.c
304
ir->packet->busy7 = (4 - sevens) * 2;
drivers/media/rc/iguanair.c
305
ir->packet->busy4 = 110 - fours;
drivers/media/rc/iguanair.c
318
ir->packet->channels = mask << 4;
drivers/media/rc/iguanair.c
338
ir->packet->payload[size++] = p | ((i & 1) ? 0x80 : 0);
drivers/media/rc/iguanair.c
343
ir->packet->header.start = 0;
drivers/media/rc/iguanair.c
344
ir->packet->header.direction = DIR_OUT;
drivers/media/rc/iguanair.c
345
ir->packet->header.cmd = CMD_SEND;
drivers/media/rc/iguanair.c
346
ir->packet->length = size;
drivers/media/rc/iguanair.c
350
rc = iguanair_send(ir, sizeof(*ir->packet) + size);
drivers/media/rc/iguanair.c
39
struct send_packet *packet;
drivers/media/rc/iguanair.c
404
ir->packet = usb_alloc_coherent(udev, MAX_OUT_PACKET, GFP_KERNEL,
drivers/media/rc/iguanair.c
409
if (!ir->buf_in || !ir->packet || !ir->urb_in || !ir->urb_out ||
drivers/media/rc/iguanair.c
423
usb_fill_int_urb(ir->urb_out, udev, pipeout, ir->packet, MAX_OUT_PACKET,
drivers/media/rc/iguanair.c
487
usb_free_coherent(udev, MAX_OUT_PACKET, ir->packet,
drivers/media/rc/iguanair.c
506
usb_free_coherent(ir->udev, MAX_OUT_PACKET, ir->packet, ir->dma_out);
drivers/media/rc/iguanair.c
71
struct packet header;
drivers/media/rc/imon.c
691
const unsigned char packet[8] = { 0x01, 0x00, 0x00, 0x00,
drivers/media/rc/imon.c
704
memcpy(ictx->usb_tx_buf, packet, sizeof(packet));
drivers/media/test-drivers/vivid/vivid-vbi-cap.h
11
void vivid_fill_time_of_day_packet(u8 *packet);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
172
static void vivid_vbi_gen_set_time_of_day(u8 *packet)
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
178
packet[0] = calc_parity(0x07);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
179
packet[1] = calc_parity(0x01);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
180
packet[2] = calc_parity(0x40 | tm.tm_min);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
181
packet[3] = calc_parity(0x40 | tm.tm_hour);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
182
packet[4] = calc_parity(0x40 | tm.tm_mday);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
185
packet[4] = calc_parity(0x60 | tm.tm_mday);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
186
packet[5] = calc_parity(0x40 | (1 + tm.tm_mon));
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
187
packet[6] = calc_parity(0x40 | (1 + tm.tm_wday));
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
188
packet[7] = calc_parity(0x40 | ((tm.tm_year - 90) & 0x3f));
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
189
packet[8] = calc_parity(0x0f);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
191
checksum += packet[i] & 0x7f;
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
192
packet[9] = calc_parity(0x100 - checksum);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
193
packet[10] = calc_parity(0x07);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
194
packet[11] = calc_parity(0x04);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
196
packet[12] = calc_parity(0x40 | ((sys_tz.tz_minuteswest / 60) & 0x1f));
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
198
packet[12] = calc_parity(0x40 | ((24 + sys_tz.tz_minuteswest / 60) & 0x1f));
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
199
packet[13] = calc_parity(0);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
200
packet[14] = calc_parity(0x0f);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
202
checksum += packet[i] & 0x7f;
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
203
packet[15] = calc_parity(0x100 - checksum);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
211
static void vivid_vbi_gen_teletext(u8 *packet, unsigned line, unsigned frame)
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
216
packet[0] = hamming[1 + ((line & 1) << 3)];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
217
packet[1] = hamming[line >> 1];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
218
memset(packet + 2, 0x20, 40);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
221
packet[2] = hamming[frame % 10];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
222
packet[3] = hamming[frame / 10];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
223
packet[4] = hamming[0];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
224
packet[5] = hamming[0];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
225
packet[6] = hamming[0];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
226
packet[7] = hamming[0];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
227
packet[8] = hamming[0];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
228
packet[9] = hamming[1];
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
231
packet += offset;
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
232
memcpy(packet, "Page: 100 Row: 10", 17);
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
233
packet[7] = '0' + frame / 10;
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
234
packet[8] = '0' + frame % 10;
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
235
packet[15] = '0' + line / 10;
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
236
packet[16] = '0' + line % 10;
drivers/media/test-drivers/vivid/vivid-vbi-gen.c
238
packet[i] = calc_parity(packet[i]);
drivers/media/usb/au0828/au0828-video.c
55
int packet, int status)
drivers/media/usb/au0828/au0828-video.c
85
if (packet < 0) {
drivers/media/usb/au0828/au0828-video.c
89
packet, status, errmsg);
drivers/media/usb/cx231xx/cx231xx-dvb.c
167
static inline void print_err_status(struct cx231xx *dev, int packet, int status)
drivers/media/usb/cx231xx/cx231xx-dvb.c
197
if (packet < 0) {
drivers/media/usb/cx231xx/cx231xx-dvb.c
203
packet, status, errmsg);
drivers/media/usb/cx231xx/cx231xx-vbi.c
28
static inline void print_err_status(struct cx231xx *dev, int packet, int status)
drivers/media/usb/cx231xx/cx231xx-vbi.c
58
if (packet < 0) {
drivers/media/usb/cx231xx/cx231xx-vbi.c
64
packet, status, errmsg);
drivers/media/usb/cx231xx/cx231xx-video.c
184
static inline void print_err_status(struct cx231xx *dev, int packet, int status)
drivers/media/usb/cx231xx/cx231xx-video.c
214
if (packet < 0) {
drivers/media/usb/cx231xx/cx231xx-video.c
218
packet, status, errmsg);
drivers/media/usb/em28xx/em28xx-dvb.c
106
int packet, int status)
drivers/media/usb/em28xx/em28xx-dvb.c
136
if (packet < 0) {
drivers/media/usb/em28xx/em28xx-dvb.c
140
packet, status, errmsg);
drivers/media/usb/em28xx/em28xx-video.c
546
int packet, int status)
drivers/media/usb/em28xx/em28xx-video.c
576
if (packet < 0) {
drivers/media/usb/em28xx/em28xx-video.c
580
packet, status, errmsg);
drivers/media/usb/gspca/se401.c
493
memcpy(&sd->packet[sd->packet_read], &data[i], count);
drivers/media/usb/gspca/se401.c
499
bits = sd->packet[3] + (sd->packet[2] << 8);
drivers/media/usb/gspca/se401.c
500
pixels = sd->packet[1] + ((sd->packet[0] & 0x3f) << 8);
drivers/media/usb/gspca/se401.c
501
info = (sd->packet[0] & 0xc0) >> 6;
drivers/media/usb/gspca/se401.c
518
memcpy(&sd->packet[sd->packet_read], &data[i], count);
drivers/media/usb/gspca/se401.c
52
u8 packet[PACKET_SIZE];
drivers/media/usb/gspca/se401.c
529
gspca_frame_add(gspca_dev, INTER_PACKET, sd->packet,
drivers/media/usb/gspca/se401.c
538
sd_complete_frame(gspca_dev, sd->packet, plen);
drivers/media/usb/gspca/se401.c
541
gspca_frame_add(gspca_dev, FIRST_PACKET, sd->packet,
drivers/media/usb/gspca/tv8532.c
19
__u8 packet;
drivers/media/usb/gspca/tv8532.c
237
sd->packet = 0; /* ignore the first packets */
drivers/media/usb/gspca/tv8532.c
257
sd->packet = gspca_dev->pixfmt.height / 2;
drivers/media/usb/gspca/tv8532.c
259
} else if (sd->packet == 0)
drivers/media/usb/gspca/tv8532.c
261
sd->packet--;
drivers/media/usb/gspca/tv8532.c
262
if (sd->packet == 0)
drivers/media/usb/stk1160/stk1160-video.c
25
int packet, int status)
drivers/media/usb/stk1160/stk1160-video.c
56
if (packet < 0)
drivers/media/usb/stk1160/stk1160-video.c
61
packet, status, errmsg);
drivers/media/usb/ttusb-dec/ttusb_dec.c
125
u8 packet[MAX_PVA_LENGTH + 4];
drivers/media/usb/ttusb-dec/ttusb_dec.c
558
static void ttusb_dec_process_filter(struct ttusb_dec *dec, u8 *packet,
drivers/media/usb/ttusb-dec/ttusb_dec.c
567
sid = packet[1];
drivers/media/usb/ttusb-dec/ttusb_dec.c
580
filter->feed->cb.sec(&packet[2], length - 2, NULL, 0,
drivers/media/usb/ttusb-dec/ttusb_dec.c
596
csum ^= ((dec->packet[i] << 8) + dec->packet[i + 1]);
drivers/media/usb/ttusb-dec/ttusb_dec.c
603
packet_id = dec->packet[dec->packet_length - 4] << 8;
drivers/media/usb/ttusb-dec/ttusb_dec.c
604
packet_id += dec->packet[dec->packet_length - 3];
drivers/media/usb/ttusb-dec/ttusb_dec.c
619
ttusb_dec_process_pva(dec, dec->packet,
drivers/media/usb/ttusb-dec/ttusb_dec.c
625
ttusb_dec_process_filter(dec, dec->packet,
drivers/media/usb/ttusb-dec/ttusb_dec.c
673
dec->packet[dec->packet_length++] = *b++;
drivers/media/usb/ttusb-dec/ttusb_dec.c
676
if (dec->packet[0] == 'A' &&
drivers/media/usb/ttusb-dec/ttusb_dec.c
677
dec->packet[1] == 'V') {
drivers/media/usb/ttusb-dec/ttusb_dec.c
681
} else if (dec->packet[0] == 'S') {
drivers/media/usb/ttusb-dec/ttusb_dec.c
685
} else if (dec->packet[0] == 0x00) {
drivers/media/usb/ttusb-dec/ttusb_dec.c
693
dec->packet[0], dec->packet[1]);
drivers/media/usb/ttusb-dec/ttusb_dec.c
702
dec->packet[dec->packet_length++] = *b++;
drivers/media/usb/ttusb-dec/ttusb_dec.c
708
(dec->packet[6] << 8) +
drivers/media/usb/ttusb-dec/ttusb_dec.c
709
dec->packet[7];
drivers/media/usb/ttusb-dec/ttusb_dec.c
715
((dec->packet[3] & 0x0f) << 8) +
drivers/media/usb/ttusb-dec/ttusb_dec.c
716
dec->packet[4];
drivers/media/usb/ttusb-dec/ttusb_dec.c
727
memcpy(dec->packet + dec->packet_length,
drivers/media/usb/ttusb-dec/ttusb_dec.c
734
memcpy(&dec->packet[dec->packet_length],
drivers/media/usb/ttusb-dec/ttusb_dec.c
746
dec->packet[dec->packet_length++] = *b++;
drivers/media/usb/uvc/uvc_video.c
1260
const u8 *packet = data + header_len;
drivers/media/usb/uvc/uvc_video.c
1263
packet[0] == 0xff && packet[1] == JPEG_MARKER_SOI &&
drivers/net/caif/caif_serial.c
92
ser->tty->ctrl.packet << 2;
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
1556
struct kvaser_pciefd_rx_packet packet;
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
1557
struct kvaser_pciefd_rx_packet *p = &packet;
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
766
struct kvaser_pciefd_tx_packet packet;
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
776
nr_words = kvaser_pciefd_prepare_tx_packet(&packet, &can->can, seq, skb);
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
786
iowrite32(packet.header[0],
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
788
iowrite32(packet.header[1],
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
792
u32 data_last = ((u32 *)packet.data)[nr_words - 1];
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
796
KVASER_PCIEFD_KCAN_FIFO_REG, packet.data,
drivers/net/ethernet/8390/axnet_cs.c
1036
memset(packet, 0, ETH_ZLEN);
drivers/net/ethernet/8390/axnet_cs.c
1037
skb_copy_from_linear_data(skb, packet, skb->len);
drivers/net/ethernet/8390/axnet_cs.c
1038
ei_block_output(dev, length, packet, output_page);
drivers/net/ethernet/8390/axnet_cs.c
961
u8 packet[ETH_ZLEN];
drivers/net/ethernet/amd/pcnet32.c
1018
packet = skb->data;
drivers/net/ethernet/amd/pcnet32.c
1026
*packet++ = dev->dev_addr[i];
drivers/net/ethernet/amd/pcnet32.c
1028
*packet++ = dev->dev_addr[i];
drivers/net/ethernet/amd/pcnet32.c
1030
*packet++ = 0x08;
drivers/net/ethernet/amd/pcnet32.c
1031
*packet++ = 0x06;
drivers/net/ethernet/amd/pcnet32.c
1033
*packet++ = x;
drivers/net/ethernet/amd/pcnet32.c
1036
*packet++ = i;
drivers/net/ethernet/amd/pcnet32.c
1097
packet = lp->tx_skbuff[x]->data;
drivers/net/ethernet/amd/pcnet32.c
1099
if (*(skb->data + i) != packet[i]) {
drivers/net/ethernet/amd/pcnet32.c
1102
i, *(skb->data + i), packet[i]);
drivers/net/ethernet/amd/pcnet32.c
980
unsigned char *packet; /* source packet data */
drivers/net/ethernet/amd/sunlance.c
882
u16 __iomem *packet = (u16 __iomem *) &(ib->tx_buf[entry][0]);
drivers/net/ethernet/amd/sunlance.c
883
struct ethhdr __iomem *eth = (struct ethhdr __iomem *) packet;
drivers/net/ethernet/amd/sunlance.c
885
sbus_writew(0, &packet[i]);
drivers/net/ethernet/amd/sunlance.c
895
u16 *packet = (u16 *) &(ib->tx_buf[entry][0]);
drivers/net/ethernet/amd/sunlance.c
896
struct ethhdr *eth = (struct ethhdr *) packet;
drivers/net/ethernet/amd/sunlance.c
897
memset(packet, 0, ETH_ZLEN);
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
424
struct xgbe_packet_data *packet;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
437
packet = &ring->packet_data;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
438
packet->rdesc_count = 0;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
439
packet->length = 0;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
441
tso = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
443
vlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
447
if ((tso && (packet->mss != ring->tx.cur_mss)) ||
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
448
(vlan && (packet->vlan_ctag != ring->tx.cur_vlan_ctag)))
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
455
packet->header_len, DMA_TO_DEVICE);
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
461
rdata->skb_dma_len = packet->header_len;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
464
cur_index, &skb_dma, packet->header_len);
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
466
offset = packet->header_len;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
468
packet->length += packet->header_len;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
493
packet->length += len;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
527
packet->length += len;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
542
packet->rdesc_count = cur_index - start_index;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
544
DBGPR("<--xgbe_map_tx_skb: count=%u\n", packet->rdesc_count);
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
546
return packet->rdesc_count;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1594
struct xgbe_packet_data *packet = &ring->packet_data;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1605
tx_packets = packet->tx_packets;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1606
tx_bytes = packet->tx_bytes;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1608
csum = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1610
tso = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1612
vlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1614
vxlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1617
if (tso && (packet->mss != ring->tx.cur_mss))
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1622
if (vlan && (packet->vlan_ctag != ring->tx.cur_vlan_ctag))
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1655
packet->mss);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1659
MSS, packet->mss);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1669
ring->tx.cur_mss = packet->mss;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1675
packet->vlan_ctag);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1683
VT, packet->vlan_ctag);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1689
ring->tx.cur_vlan_ctag = packet->vlan_ctag;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1711
if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP))
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1728
packet->tcp_payload_len);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1730
packet->tcp_header_len / 4);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1744
packet->length);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1751
pdata->ext_stats.tx_vxlan_packets += packet->tx_packets;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1754
for (i = cur_index - start_index + 1; i < packet->rdesc_count; i++) {
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1806
packet->rdesc_count, 1);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1832
struct xgbe_packet_data *packet = &ring->packet_data;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1853
xgbe_get_rx_tstamp(packet, rdesc);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1855
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1857
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1863
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, CONTEXT, 0);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1867
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1872
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1879
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1885
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1888
packet->rss_hash = le32_to_cpu(rdesc->desc1);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1896
packet->rss_hash_type = PKT_HASH_TYPE_L4;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1899
packet->rss_hash_type = PKT_HASH_TYPE_L3;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1908
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1916
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1918
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1924
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1932
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1947
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1949
packet->vlan_ctag = XGMAC_GET_BITS_LE(rdesc->desc0,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1953
packet->vlan_ctag);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1956
unsigned int tnp = XGMAC_GET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1960
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1962
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1966
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1968
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1972
XGMAC_SET_BITS(packet->errors, RX_PACKET_ERRORS,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1419
static void xgbe_prep_vlan(struct sk_buff *skb, struct xgbe_packet_data *packet)
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1422
packet->vlan_ctag = skb_vlan_tag_get(skb);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1425
static int xgbe_prep_tso(struct sk_buff *skb, struct xgbe_packet_data *packet)
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1429
if (!XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1437
if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, VXLAN)) {
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1438
packet->header_len = skb_inner_tcp_all_headers(skb);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1439
packet->tcp_header_len = inner_tcp_hdrlen(skb);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1441
packet->header_len = skb_tcp_all_headers(skb);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1442
packet->tcp_header_len = tcp_hdrlen(skb);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1444
packet->tcp_payload_len = skb->len - packet->header_len;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1445
packet->mss = skb_shinfo(skb)->gso_size;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1447
DBGPR(" packet->header_len=%u\n", packet->header_len);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1449
packet->tcp_header_len, packet->tcp_payload_len);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1450
DBGPR(" packet->mss=%u\n", packet->mss);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1455
packet->tx_packets = skb_shinfo(skb)->gso_segs;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1456
packet->tx_bytes += (packet->tx_packets - 1) * packet->header_len;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1508
struct xgbe_packet_data *packet)
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1515
packet->skb = skb;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1518
packet->rdesc_count = 0;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1520
packet->tx_packets = 1;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1521
packet->tx_bytes = skb->len;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1527
packet->rdesc_count++;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1531
packet->rdesc_count++;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1533
XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1535
XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1538
XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1542
XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1551
packet->rdesc_count++;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1554
XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1560
XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1564
packet->rdesc_count++;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1571
packet->rdesc_count++;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1688
struct xgbe_packet_data *packet;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1697
packet = &ring->packet_data;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1709
memset(packet, 0, sizeof(*packet));
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1710
xgbe_packet_info(pdata, ring, skb, packet);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1713
ret = xgbe_maybe_stop_tx_queue(channel, ring, packet->rdesc_count);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1717
ret = xgbe_prep_tso(skb, packet);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1724
xgbe_prep_vlan(skb, packet);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1731
xgbe_prep_tx_tstamp(pdata, skb, packet);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1734
netdev_tx_sent_queue(txq, packet->tx_bytes);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2088
u8 *packet;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2101
packet = page_address(rdata->rx.hdr.pa.pages) +
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2103
skb_copy_to_linear_data(skb, packet, len);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2110
struct xgbe_packet_data *packet)
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2113
if (!XGMAC_GET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, FIRST))
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2123
if (!XGMAC_GET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, LAST))
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2133
struct xgbe_packet_data *packet,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2137
if (!XGMAC_GET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES, LAST))
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2223
struct xgbe_packet_data *packet;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2245
packet = &ring->packet_data;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2255
memset(packet, 0, sizeof(*packet));
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2273
last = XGMAC_GET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2275
context_next = XGMAC_GET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2278
context = XGMAC_GET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2286
if (error || packet->errors) {
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2293
buf1_len = xgbe_rx_buf1_len(rdata, packet);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2295
buf2_len = xgbe_rx_buf2_len(rdata, packet, len);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2357
if (XGMAC_GET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2361
if (XGMAC_GET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2365
if (XGMAC_GET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2370
if (XGMAC_GET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2373
packet->vlan_ctag);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2375
if (XGMAC_GET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2378
hwtstamps->hwtstamp = ns_to_ktime(packet->rx_tstamp);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2381
if (XGMAC_GET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2383
skb_set_hash(skb, packet->rss_hash,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2384
packet->rss_hash_type);
drivers/net/ethernet/amd/xgbe/xgbe-hwtstamp.c
107
void xgbe_get_rx_tstamp(struct xgbe_packet_data *packet,
drivers/net/ethernet/amd/xgbe/xgbe-hwtstamp.c
118
packet->rx_tstamp = nsec;
drivers/net/ethernet/amd/xgbe/xgbe-hwtstamp.c
119
XGMAC_SET_BITS(packet->attributes, RX_PACKET_ATTRIBUTES,
drivers/net/ethernet/amd/xgbe/xgbe-hwtstamp.c
298
struct xgbe_packet_data *packet)
drivers/net/ethernet/amd/xgbe/xgbe-hwtstamp.c
302
if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) {
drivers/net/ethernet/amd/xgbe/xgbe-hwtstamp.c
306
XGMAC_SET_BITS(packet->attributes,
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
126
tdata->packet = attr;
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
38
const unsigned char *dst = tdata->packet->dst;
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
39
const unsigned char *src = tdata->packet->src;
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
76
if (tdata->packet->tcp) {
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
81
if (th->dest != htons(tdata->packet->dport))
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
90
if (uh->dest != htons(tdata->packet->dport))
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
98
if (tdata->packet->id != hdr->id)
drivers/net/ethernet/amd/xgbe/xgbe.h
1304
void xgbe_get_rx_tstamp(struct xgbe_packet_data *packet,
drivers/net/ethernet/amd/xgbe/xgbe.h
1306
void xgbe_get_rx_tstamp(struct xgbe_packet_data *packet,
drivers/net/ethernet/amd/xgbe/xgbe.h
1320
struct xgbe_packet_data *packet);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1359
u8 *packet = (u8 *)(prrs + 1);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1373
iph = (struct iphdr *) (packet + head_len);
drivers/net/ethernet/atheros/atlx/atl2.c
426
memcpy(skb->data, rxd->packet, rx_size);
drivers/net/ethernet/atheros/atlx/atl2.h
341
unsigned char packet[1536-sizeof(struct rx_pkt_status)];
drivers/net/ethernet/broadcom/bnx2.c
5791
unsigned char *packet;
drivers/net/ethernet/broadcom/bnx2.c
5824
packet = skb_put(skb, pkt_size);
drivers/net/ethernet/broadcom/bnx2.c
5825
memcpy(packet, bp->dev->dev_addr, ETH_ALEN);
drivers/net/ethernet/broadcom/bnx2.c
5826
memset(packet + ETH_ALEN, 0x0, 8);
drivers/net/ethernet/broadcom/bnx2.c
5828
packet[i] = (unsigned char) (i & 0xff);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
2496
unsigned char *packet;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
2559
packet = skb_put(skb, pkt_size);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
2560
memcpy(packet, bp->dev->dev_addr, ETH_ALEN);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
2561
eth_zero_addr(packet + ETH_ALEN);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
2562
memset(packet + 2*ETH_ALEN, 0x77, (ETH_HLEN - 2*ETH_ALEN));
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
2564
packet[i] = (unsigned char) (i & 0xff);
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
158
unsigned char *packet;
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
164
packet = skb_put(skb, HNS3_NIC_LB_TEST_PACKET_SIZE);
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
182
packet[i] = (unsigned char)(i & 0xff);
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
189
unsigned char *packet = skb->data;
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
196
if (packet[i] != (unsigned char)(i & 0xff))
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1740
struct flow_msg packet;
drivers/net/ethernet/marvell/octeontx2/af/npc.h
626
struct flow_msg packet;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3322
seq_printf(s, "%pM ", rule->packet.dmac);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3326
seq_printf(s, "%pM ", rule->packet.smac);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3330
seq_printf(s, "0x%x ", ntohs(rule->packet.etype));
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3334
seq_printf(s, "0x%x ", ntohs(rule->packet.vlan_tci));
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3339
seq_printf(s, "0x%x ", ntohs(rule->packet.vlan_itci));
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3344
seq_printf(s, "%d ", rule->packet.tos);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3348
seq_printf(s, "%pI4 ", &rule->packet.ip4src);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3352
seq_printf(s, "%pI4 ", &rule->packet.ip4dst);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3356
seq_printf(s, "%pI6 ", rule->packet.ip6src);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3360
seq_printf(s, "%pI6 ", rule->packet.ip6dst);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3364
seq_printf(s, "0x%x ", rule->packet.next_header);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3368
seq_printf(s, "0x%x ", rule->packet.ip_flag);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3374
seq_printf(s, "%d ", ntohs(rule->packet.sport));
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3380
seq_printf(s, "%d ", ntohs(rule->packet.dport));
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3384
seq_printf(s, "%d ", rule->packet.tcp_flags);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3388
seq_printf(s, "0x%x ", ntohl(rule->packet.spi));
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3392
RVU_DBG_PRINT_MPLS_LBTCBOS(rule->packet.mpls_lse[0],
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3396
RVU_DBG_PRINT_MPLS_TTL(rule->packet.mpls_lse[0],
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3400
RVU_DBG_PRINT_MPLS_LBTCBOS(rule->packet.mpls_lse[1],
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3404
RVU_DBG_PRINT_MPLS_TTL(rule->packet.mpls_lse[1],
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3408
RVU_DBG_PRINT_MPLS_LBTCBOS(rule->packet.mpls_lse[2],
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3412
RVU_DBG_PRINT_MPLS_TTL(rule->packet.mpls_lse[2],
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3416
RVU_DBG_PRINT_MPLS_LBTCBOS(rule->packet.mpls_lse[3],
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3420
RVU_DBG_PRINT_MPLS_TTL(rule->packet.mpls_lse[3],
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3424
seq_printf(s, "%d ", rule->packet.icmp_type);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3428
seq_printf(s, "%d ", rule->packet.icmp_code);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
641
ether_addr_copy(req.packet.dmac, mac_addr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
812
eth_broadcast_addr((u8 *)&req.packet.dmac);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
886
ether_addr_copy(req.packet.dmac, mac_addr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1261
npc_update_flow(rvu, entry, features, &req->packet, &req->mask, &dummy,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1290
&def_ucast_rule->packet,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1335
memcpy(&rule->packet, &dummy.packet, sizeof(rule->packet));
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1375
ether_addr_copy(pfvf->default_mac, req->packet.dmac);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1376
ether_addr_copy(pfvf->mac_addr, req->packet.dmac);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1427
if (is_unicast_ether_addr(req->packet.dmac)) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1489
is_zero_ether_addr(req->packet.dmac)) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1490
ether_addr_copy(req->packet.dmac, pfvf->mac_addr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1517
ether_addr_copy(pfvf->default_mac, req->packet.dmac);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1518
ether_addr_copy(pfvf->mac_addr, req->packet.dmac);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1611
ether_addr_copy(rule->packet.dmac, pfvf->mac_addr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
841
struct flow_msg *opkt = &output->packet;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
913
struct flow_msg *opkt = &output->packet;
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
263
req.packet.vlan_etype = cpu_to_be16(ETH_P_8021Q);
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
265
req.packet.vlan_tci = cpu_to_be16(vlan_tci);
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
300
req.packet.sq_id = vlan_tci;
drivers/net/ethernet/marvell/octeontx2/af/rvu_switch.c
37
ether_addr_copy(req.packet.dmac, pfvf->mac_addr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_switch.c
69
ether_addr_copy(req.packet.dmac, pfvf->mac_addr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
1026
vlan_prio = ntohs(req->packet.vlan_tci) &
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
1425
ether_addr_copy(req->packet.dmac, pfvf->netdev->dev_addr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
388
ether_addr_copy(req->packet.dmac, mac);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
547
struct flow_msg *pkt = &req->packet;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
706
struct flow_msg *pkt = &req->packet;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
827
struct flow_msg *pkt = &req->packet;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
2533
ether_addr_copy(req->packet.dmac, mac);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
2648
req->packet.vlan_tci = htons(vlan);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
634
struct flow_msg *flow_spec = &req->packet;
drivers/net/ethernet/mellanox/mlx4/en_selftest.c
53
unsigned char *packet;
drivers/net/ethernet/mellanox/mlx4/en_selftest.c
67
packet = skb_put(skb, packet_size);
drivers/net/ethernet/mellanox/mlx4/en_selftest.c
73
packet[i] = (unsigned char)(i & 0xff);
drivers/net/ethernet/nvidia/forcedeth.c
2829
static int nv_getlen(struct net_device *dev, void *packet, int datalen)
drivers/net/ethernet/nvidia/forcedeth.c
2835
if (((struct vlan_ethhdr *)packet)->h_vlan_proto == htons(ETH_P_8021Q)) {
drivers/net/ethernet/nvidia/forcedeth.c
2836
protolen = ntohs(((struct vlan_ethhdr *)packet)->h_vlan_encapsulated_proto);
drivers/net/ethernet/nvidia/forcedeth.c
2839
protolen = ntohs(((struct ethhdr *)packet)->h_proto);
drivers/net/ethernet/nxp/lpc_eth.c
381
__le32 packet;
drivers/net/ethernet/nxp/lpc_eth.c
563
ptxrxdesc->packet = __va_to_pa(
drivers/net/ethernet/nxp/lpc_eth.c
574
ptxrxdesc->packet = __va_to_pa(
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
1625
u8 *packet;
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
1656
packet = skb_put(skb, pkt_size);
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
1657
ether_addr_copy(packet, edev->ndev->dev_addr);
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
1658
ether_addr_copy(packet + ETH_ALEN, edev->ndev->dev_addr);
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
1659
memset(packet + (2 * ETH_ALEN), 0x77, (ETH_HLEN - (2 * ETH_ALEN)));
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
1661
packet[i] = (unsigned char)(i & 0xff);
drivers/net/ethernet/sfc/falcon/selftest.c
303
memcpy(&received.packet, buf_ptr,
drivers/net/ethernet/sfc/falcon/selftest.c
374
&state->payload.packet, EF4_LOOPBACK_PAYLOAD_LEN,
drivers/net/ethernet/sfc/falcon/selftest.c
43
struct_group_attr(packet, __packed,
drivers/net/ethernet/sfc/falcon/selftest.c
52
sizeof_field(struct ef4_loopback_payload, packet)
drivers/net/ethernet/sfc/selftest.c
300
memcpy(&received.packet, buf_ptr,
drivers/net/ethernet/sfc/selftest.c
371
&state->payload.packet, EFX_LOOPBACK_PAYLOAD_LEN,
drivers/net/ethernet/sfc/selftest.c
45
struct_group_attr(packet, __packed,
drivers/net/ethernet/sfc/selftest.c
54
sizeof_field(struct efx_loopback_payload, packet)
drivers/net/ethernet/sfc/siena/selftest.c
301
memcpy(&received.packet, buf_ptr,
drivers/net/ethernet/sfc/siena/selftest.c
372
&state->payload.packet, EFX_LOOPBACK_PAYLOAD_LEN,
drivers/net/ethernet/sfc/siena/selftest.c
46
struct_group_attr(packet, __packed,
drivers/net/ethernet/sfc/siena/selftest.c
55
sizeof_field(struct efx_loopback_payload, packet)
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
155
u8 packet, u32 queue)
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
171
value &= ~route_possibilities[packet - 1].reg_mask;
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
172
value |= (queue << route_possibilities[packet-1].reg_shift) &
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
173
route_possibilities[packet - 1].reg_mask;
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
176
if (packet == PACKET_AVCPQ) {
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
179
} else if (packet == PACKET_MCBCQ) {
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
156
u8 packet, u32 queue)
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
172
value &= ~dwxgmac2_route_possibilities[packet - 1].reg_mask;
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
173
value |= (queue << dwxgmac2_route_possibilities[packet - 1].reg_shift) &
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
174
dwxgmac2_route_possibilities[packet - 1].reg_mask;
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
177
if (packet == PACKET_AVCPQ)
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
179
else if (packet == PACKET_MCBCQ)
drivers/net/ethernet/stmicro/stmmac/hwif.h
338
void (*rx_queue_routing)(struct mac_device_info *hw, u8 packet,
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
3515
u8 packet;
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
3522
packet = priv->plat->rx_queues_cfg[queue].pkt_route;
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
3523
stmmac_rx_queue_routing(priv, priv->hw, packet, queue);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
1006
tpriv->packet = &attr;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
1283
tpriv->packet = &attr;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
1603
if (!ether_addr_equal_unaligned(ehdr->h_dest, tpriv->packet->src))
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
1642
tpriv->packet = &attr;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
238
struct stmmac_packet_attrs *packet;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
252
const unsigned char *dst = tpriv->packet->dst;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
253
unsigned char *src = tpriv->packet->src;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
274
if (tpriv->packet->sarc) {
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
286
if (tpriv->packet->tcp) {
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
291
if (thdr->dest != htons(tpriv->packet->dport))
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
300
if (uhdr->dest != htons(tpriv->packet->dport))
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
308
if (tpriv->packet->exp_hash && !skb->hash)
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
310
if (tpriv->packet->id != shdr->id)
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
338
tpriv->packet = attr;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
869
if (!ether_addr_equal_unaligned(ehdr->h_dest, tpriv->packet->dst))
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
879
if (uhdr->dest != htons(tpriv->packet->dport))
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
912
tpriv->packet = &attr;
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1008
packet = page_address(desc_data->rx.hdr.pa.pages) +
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1012
skb_copy_to_linear_data(skb, packet, copy_len);
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
994
u8 *packet;
drivers/net/ethernet/ti/netcp.h
232
typedef int netcp_hook_rtn(int order, void *data, struct netcp_packet *packet);
drivers/net/hyperv/hyperv_net.h
1820
struct hv_netvsc_packet *packet);
drivers/net/hyperv/hyperv_net.h
228
struct hv_netvsc_packet *packet,
drivers/net/hyperv/netvsc.c
1018
struct hv_netvsc_packet *packet,
drivers/net/hyperv/netvsc.c
1021
u32 page_count = packet->page_buf_cnt;
drivers/net/hyperv/netvsc.c
1028
packet->dma_range = kzalloc_objs(*packet->dma_range, page_count,
drivers/net/hyperv/netvsc.c
1030
if (!packet->dma_range)
drivers/net/hyperv/netvsc.c
1041
kfree(packet->dma_range);
drivers/net/hyperv/netvsc.c
1048
packet->dma_range[i].dma = dma;
drivers/net/hyperv/netvsc.c
1049
packet->dma_range[i].mapping_size = len;
drivers/net/hyperv/netvsc.c
1094
struct hv_netvsc_packet *packet,
drivers/net/hyperv/netvsc.c
1103
&net_device->chan_table[packet->q_idx];
drivers/net/hyperv/netvsc.c
1107
struct netdev_queue *txq = netdev_get_tx_queue(ndev, packet->q_idx);
drivers/net/hyperv/netvsc.c
1119
rpkt->send_buf_section_index = packet->send_buf_index;
drivers/net/hyperv/netvsc.c
1120
if (packet->send_buf_index == NETVSC_INVALID_INDEX)
drivers/net/hyperv/netvsc.c
1123
rpkt->send_buf_section_size = packet->total_data_buflen;
drivers/net/hyperv/netvsc.c
1132
packet->dma_range = NULL;
drivers/net/hyperv/netvsc.c
1133
if (packet->page_buf_cnt) {
drivers/net/hyperv/netvsc.c
1137
if (packet->cp_partial)
drivers/net/hyperv/netvsc.c
1140
ret = netvsc_dma_map(ndev_ctx->device_ctx, packet, pb);
drivers/net/hyperv/netvsc.c
1146
netvsc_build_mpb_array(pb, packet->page_buf_cnt,
drivers/net/hyperv/netvsc.c
1153
netvsc_dma_unmap(ndev_ctx->device_ctx, packet);
drivers/net/hyperv/netvsc.c
1175
packet->page_buf_cnt, packet->total_data_buflen,
drivers/net/hyperv/netvsc.c
1225
struct hv_netvsc_packet *packet,
drivers/net/hyperv/netvsc.c
1237
u32 pktlen = packet->total_data_buflen, msd_len = 0;
drivers/net/hyperv/netvsc.c
1248
nvchan = &net_device->chan_table[packet->q_idx];
drivers/net/hyperv/netvsc.c
1249
packet->send_buf_index = NETVSC_INVALID_INDEX;
drivers/net/hyperv/netvsc.c
1250
packet->cp_partial = false;
drivers/net/hyperv/netvsc.c
1257
return netvsc_send_pkt(device, packet, net_device, pb, skb);
drivers/net/hyperv/netvsc.c
1269
} else if (try_batch && msd_len + packet->rmsg_size <
drivers/net/hyperv/netvsc.c
1272
packet->cp_partial = true;
drivers/net/hyperv/netvsc.c
1289
!packet->cp_partial &&
drivers/net/hyperv/netvsc.c
1290
!netif_xmit_stopped(netdev_get_tx_queue(ndev, packet->q_idx));
drivers/net/hyperv/netvsc.c
1295
packet, rndis_msg, pb, xmit_more);
drivers/net/hyperv/netvsc.c
1297
packet->send_buf_index = section_index;
drivers/net/hyperv/netvsc.c
1299
if (packet->cp_partial) {
drivers/net/hyperv/netvsc.c
1300
packet->page_buf_cnt--;
drivers/net/hyperv/netvsc.c
1301
packet->total_data_buflen = msd_len + packet->rmsg_size;
drivers/net/hyperv/netvsc.c
1303
packet->page_buf_cnt = 0;
drivers/net/hyperv/netvsc.c
1304
packet->total_data_buflen += msd_len;
drivers/net/hyperv/netvsc.c
1308
packet->total_packets += msdp->pkt->total_packets;
drivers/net/hyperv/netvsc.c
1309
packet->total_bytes += msdp->pkt->total_bytes;
drivers/net/hyperv/netvsc.c
1317
msdp->pkt = packet;
drivers/net/hyperv/netvsc.c
1320
cur_send = packet;
drivers/net/hyperv/netvsc.c
1327
cur_send = packet;
drivers/net/hyperv/netvsc.c
779
struct hv_netvsc_packet *packet
drivers/net/hyperv/netvsc.c
781
u32 send_index = packet->send_buf_index;
drivers/net/hyperv/netvsc.c
786
q_idx = packet->q_idx;
drivers/net/hyperv/netvsc.c
791
tx_stats->packets += packet->total_packets;
drivers/net/hyperv/netvsc.c
792
tx_stats->bytes += packet->total_bytes;
drivers/net/hyperv/netvsc.c
795
netvsc_dma_unmap(ndev_ctx->device_ctx, packet);
drivers/net/hyperv/netvsc.c
946
struct hv_netvsc_packet *packet,
drivers/net/hyperv/netvsc.c
956
u32 page_count = packet->cp_partial ? 1 : packet->page_buf_cnt;
drivers/net/hyperv/netvsc.c
960
remain = packet->total_data_buflen & (net_device->pkt_align - 1);
drivers/net/hyperv/netvsc.c
964
packet->total_data_buflen += padding;
drivers/net/hyperv/netvsc.c
981
struct hv_netvsc_packet *packet)
drivers/net/hyperv/netvsc.c
988
if (!packet->dma_range)
drivers/net/hyperv/netvsc.c
991
for (i = 0; i < packet->page_buf_cnt; i++)
drivers/net/hyperv/netvsc.c
992
dma_unmap_single(&hv_dev->device, packet->dma_range[i].dma,
drivers/net/hyperv/netvsc.c
993
packet->dma_range[i].mapping_size,
drivers/net/hyperv/netvsc.c
996
kfree(packet->dma_range);
drivers/net/hyperv/netvsc_drv.c
330
struct hv_netvsc_packet *packet,
drivers/net/hyperv/netvsc_drv.c
345
packet->rmsg_size = len;
drivers/net/hyperv/netvsc_drv.c
445
struct hv_netvsc_packet *packet = NULL;
drivers/net/hyperv/netvsc_drv.c
497
packet = (struct hv_netvsc_packet *)skb->cb;
drivers/net/hyperv/netvsc_drv.c
499
packet->q_idx = skb_get_queue_mapping(skb);
drivers/net/hyperv/netvsc_drv.c
501
packet->total_data_buflen = skb->len;
drivers/net/hyperv/netvsc_drv.c
502
packet->total_bytes = skb->len;
drivers/net/hyperv/netvsc_drv.c
503
packet->total_packets = 1;
drivers/net/hyperv/netvsc_drv.c
509
rndis_msg->msg_len = packet->total_data_buflen;
drivers/net/hyperv/netvsc_drv.c
513
.data_len = packet->total_data_buflen,
drivers/net/hyperv/netvsc_drv.c
545
packet->total_data_buflen -= VLAN_HLEN;
drivers/net/hyperv/netvsc_drv.c
546
packet->total_bytes -= VLAN_HLEN;
drivers/net/hyperv/netvsc_drv.c
547
rndis_msg->msg_len = packet->total_data_buflen;
drivers/net/hyperv/netvsc_drv.c
548
rndis_msg->msg.pkt.data_len = packet->total_data_buflen;
drivers/net/hyperv/netvsc_drv.c
624
packet->total_data_buflen = rndis_msg->msg_len;
drivers/net/hyperv/netvsc_drv.c
625
packet->page_buf_cnt = init_page_array(rndis_msg, rndis_msg_size,
drivers/net/hyperv/netvsc_drv.c
626
skb, packet, pb);
drivers/net/hyperv/netvsc_drv.c
631
ret = netvsc_send(net, packet, rndis_msg, pb, skb, xdp_tx);
drivers/net/hyperv/rndis_filter.c
227
struct hv_netvsc_packet *packet;
drivers/net/hyperv/rndis_filter.c
232
packet = &req->pkt;
drivers/net/hyperv/rndis_filter.c
234
packet->total_data_buflen = req->request_msg.msg_len;
drivers/net/hyperv/rndis_filter.c
235
packet->page_buf_cnt = 1;
drivers/net/hyperv/rndis_filter.c
244
ret = netvsc_send(dev->ndev, packet, NULL, &pb, NULL, false);
drivers/net/usb/gl620a.c
112
skb_put_data(gl_skb, packet->packet_data, size);
drivers/net/usb/gl620a.c
117
packet = (struct gl_packet *)&packet->packet_data[size];
drivers/net/usb/gl620a.c
70
struct gl_packet *packet;
drivers/net/usb/gl620a.c
91
packet = &header->packets;
drivers/net/usb/gl620a.c
98
size = le32_to_cpu(packet->packet_length);
drivers/net/usb/lan78xx.c
3885
unsigned char *packet;
drivers/net/usb/lan78xx.c
3896
packet = skb->data;
drivers/net/usb/lan78xx.c
3930
memcpy(skb2->data, packet, frame_len);
drivers/net/usb/lg-vl600.c
157
if (buf->len < sizeof(*packet)) {
drivers/net/usb/lg-vl600.c
162
packet = (struct vl600_pkt_hdr *) buf->data;
drivers/net/usb/lg-vl600.c
163
packet_len = sizeof(*packet) + le32_to_cpup(&packet->len);
drivers/net/usb/lg-vl600.c
235
struct vl600_pkt_hdr *packet;
drivers/net/usb/lg-vl600.c
280
packet = (struct vl600_pkt_hdr *) skb->data;
drivers/net/usb/lg-vl600.c
285
packet->h_proto = htons(ETH_P_IP);
drivers/net/usb/lg-vl600.c
286
memset(&packet->dummy, 0, sizeof(packet->dummy));
drivers/net/usb/lg-vl600.c
287
packet->len = cpu_to_le32(orig_len);
drivers/net/usb/lg-vl600.c
99
struct vl600_pkt_hdr *packet;
drivers/net/usb/smsc75xx.c
2180
unsigned char *packet;
drivers/net/usb/smsc75xx.c
2188
packet = skb->data;
drivers/net/usb/smsc75xx.c
2238
memcpy(ax_skb->data, packet, size - 4);
drivers/net/usb/smsc95xx.c
1887
unsigned char *packet;
drivers/net/usb/smsc95xx.c
1892
packet = skb->data;
drivers/net/usb/smsc95xx.c
1944
memcpy(ax_skb->data, packet, size);
drivers/net/wireguard/send.c
103
wg_socket_send_buffer_to_peer(peer, &packet,
drivers/net/wireguard/send.c
104
sizeof(packet),
drivers/net/wireguard/send.c
114
struct message_handshake_cookie packet;
drivers/net/wireguard/send.c
118
wg_cookie_message_create(&packet, initiating_skb, sender_index,
drivers/net/wireguard/send.c
120
wg_socket_send_buffer_as_reply_to_skb(wg, initiating_skb, &packet,
drivers/net/wireguard/send.c
121
sizeof(packet));
drivers/net/wireguard/send.c
23
struct message_handshake_initiation packet;
drivers/net/wireguard/send.c
34
if (wg_noise_handshake_create_initiation(&packet, &peer->handshake)) {
drivers/net/wireguard/send.c
35
wg_cookie_add_mac_to_packet(&packet, sizeof(packet), peer);
drivers/net/wireguard/send.c
40
wg_socket_send_buffer_to_peer(peer, &packet, sizeof(packet),
drivers/net/wireguard/send.c
87
struct message_handshake_response packet;
drivers/net/wireguard/send.c
94
if (wg_noise_handshake_create_response(&packet, &peer->handshake)) {
drivers/net/wireguard/send.c
95
wg_cookie_add_mac_to_packet(&packet, sizeof(packet), peer);
drivers/net/wireless/ath/ath10k/htc.h
404
struct sk_buff *packet);
drivers/net/wireless/ath/ath10k/htc.h
408
struct sk_buff *packet);
drivers/net/wireless/ath/ath11k/htc.h
292
struct sk_buff *packet);
drivers/net/wireless/ath/ath12k/htc.h
311
struct sk_buff *packet);
drivers/net/wireless/ath/ath6kl/core.h
900
void ath6kl_rx(struct htc_target *target, struct htc_packet *packet);
drivers/net/wireless/ath/ath6kl/core.h
904
struct htc_packet *packet);
drivers/net/wireless/ath/ath6kl/hif-ops.h
37
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/hif-ops.h
44
request, packet);
drivers/net/wireless/ath/ath6kl/hif.c
55
struct htc_packet *packet = context;
drivers/net/wireless/ath/ath6kl/hif.c
58
packet, status);
drivers/net/wireless/ath/ath6kl/hif.c
60
packet->status = status;
drivers/net/wireless/ath/ath6kl/hif.c
61
packet->completion(packet->context, packet);
drivers/net/wireless/ath/ath6kl/hif.h
168
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/hif.h
232
u32 length, u32 request, struct htc_packet *packet);
drivers/net/wireless/ath/ath6kl/hif.h
79
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc-ops.h
46
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc-ops.h
48
return target->dev->ar->htc_ops->tx(target, packet);
drivers/net/wireless/ath/ath6kl/htc.h
541
struct htc_packet packet;
drivers/net/wireless/ath/ath6kl/htc.h
562
int (*tx)(struct htc_target *target, struct htc_packet *packet);
drivers/net/wireless/ath/ath6kl/htc.h
642
static inline void set_htc_pkt_info(struct htc_packet *packet, void *context,
drivers/net/wireless/ath/ath6kl/htc.h
646
packet->pkt_cntxt = context;
drivers/net/wireless/ath/ath6kl/htc.h
647
packet->buf = buf;
drivers/net/wireless/ath/ath6kl/htc.h
648
packet->act_len = len;
drivers/net/wireless/ath/ath6kl/htc.h
649
packet->endpoint = eid;
drivers/net/wireless/ath/ath6kl/htc.h
650
packet->info.tx.tag = tag;
drivers/net/wireless/ath/ath6kl/htc.h
653
static inline void htc_rxpkt_reset(struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc.h
655
packet->buf = packet->buf_start;
drivers/net/wireless/ath/ath6kl/htc.h
656
packet->act_len = 0;
drivers/net/wireless/ath/ath6kl/htc.h
659
static inline void set_htc_rxpkt_info(struct htc_packet *packet, void *context,
drivers/net/wireless/ath/ath6kl/htc.h
663
packet->pkt_cntxt = context;
drivers/net/wireless/ath/ath6kl/htc.h
664
packet->buf = buf;
drivers/net/wireless/ath/ath6kl/htc.h
665
packet->buf_start = buf;
drivers/net/wireless/ath/ath6kl/htc.h
666
packet->buf_len = len;
drivers/net/wireless/ath/ath6kl/htc.h
667
packet->endpoint = eid;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1121
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1128
packet->endpoint, packet->buf, packet->act_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1130
if (packet->endpoint >= ENDPOINT_MAX) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1135
endpoint = &target->endpoint[packet->endpoint];
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1137
if (!ath6kl_htc_tx_try(target, endpoint, packet)) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1138
packet->status = (target->htc_flags & HTC_OP_STATE_STOPPING) ?
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1141
list_add(&packet->list, &queue);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1152
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1166
list_for_each_entry_safe(packet, tmp_pkt, &endpoint->txq, list) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1168
(tag == packet->info.tx.tag))
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1169
list_move_tail(&packet->list, &discard_q);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1174
list_for_each_entry_safe(packet, tmp_pkt, &discard_q, list) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1175
packet->status = -ECANCELED;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1176
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1179
packet, packet->act_len,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1180
packet->endpoint, packet->info.tx.tag);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1183
list_add_tail(&packet->list, &container);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1268
static int htc_add_rxbuf(struct htc_target *target, struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1273
list_add_tail(&packet->list, &queue);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1278
struct htc_packet *packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1281
if (packet->info.rx.rx_flags & HTC_RX_PKT_NO_RECYCLE) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1282
htc_rxpkt_reset(packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1283
packet->status = -ECANCELED;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1284
ep->ep_cb.rx(ep->target, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1286
htc_rxpkt_reset(packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1287
htc_add_rxbuf((void *)(target), packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1292
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1295
list_add_tail(&packet->list, &target->free_ctrl_rxbuf);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1300
struct htc_packet *packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1309
if (padded_len > packet->buf_len) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1311
padded_len, rx_len, packet->buf_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1317
packet, packet->info.rx.exp_hdr,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1322
packet->buf, padded_len,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1325
packet->status = status;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1337
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1341
if (htc_hdr->eid == packet->endpoint) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1343
packet->info.rx.indicat_flags |=
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1369
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1405
packet = ep_cb.rx_allocthresh(ep->target, ep->eid,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1419
packet = NULL;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1421
packet = list_first_entry(&ep->rx_bufq,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1423
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1427
if (!packet) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1434
packet->info.rx.rx_flags = 0;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1435
packet->info.rx.indicat_flags = 0;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1436
packet->status = 0;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1444
packet->info.rx.rx_flags |= HTC_RX_PKT_NO_RECYCLE;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1447
list_add_tail(&packet->list, queue);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1455
packet->info.rx.rx_flags |= HTC_RX_PKT_REFRESH_HDR;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1456
packet->info.rx.exp_hdr = 0xFFFFFFFF;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1459
packet->info.rx.exp_hdr = *lk_ahds;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1461
packet->act_len = le16_to_cpu(htc_hdr->payld_len) +
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1474
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1556
list_for_each_entry_safe(packet, tmp_pkt, queue, list) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1557
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1558
htc_reclaim_rxbuf(target, packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1559
&target->endpoint[packet->endpoint]);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1803
struct htc_packet *packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1809
struct htc_frame_hdr *htc_hdr = (struct htc_frame_hdr *)packet->buf;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1820
memcpy((u8 *)&lk_ahd, packet->buf, sizeof(lk_ahd));
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1822
if (packet->info.rx.rx_flags & HTC_RX_PKT_REFRESH_HDR) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1828
packet->info.rx.exp_hdr = lk_ahd;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1829
packet->act_len = payload_len + HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1832
if (packet->act_len > packet->buf_len) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1839
packet->act_len = min(packet->act_len, packet->buf_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1844
if (packet->endpoint != htc_hdr->eid) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1846
htc_hdr->eid, packet->endpoint);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1852
if (lk_ahd != packet->info.rx.exp_hdr) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1854
__func__, packet, packet->info.rx.rx_flags);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1856
"", &packet->info.rx.exp_hdr, 4);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1872
if (packet->info.rx.rx_flags & HTC_RX_PKT_IGNORE_LOOKAHEAD) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1877
status = htc_proc_trailer(target, packet->buf + HTC_HDR_LENGTH
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1880
n_lkahds, packet->endpoint);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1885
packet->act_len -= htc_hdr->ctrl[0];
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1888
packet->buf += HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1889
packet->act_len -= HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1894
"", packet->buf, packet->act_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1900
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1904
endpoint->eid, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1906
endpoint->ep_cb.rx(endpoint->target, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1915
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1952
packet = list_first_entry(rxq, struct htc_packet, list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1953
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1956
packet->act_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1959
list_add(&packet->list, rxq);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1971
packet->info.rx.rx_flags |=
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1975
scat_req->scat_list[i].buf = packet->buf;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1978
packet->info.rx.rx_flags |= HTC_RX_PKT_PART_OF_BUNDLE;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
1980
list_add_tail(&packet->list, sync_compq);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2007
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2011
list_for_each_entry_safe(packet, tmp_pkt, comp_pktq, list) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2012
ep = &target->endpoint[packet->endpoint];
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2014
trace_ath6kl_htc_rx(packet->status, packet->endpoint,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2015
packet->buf, packet->act_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2018
status = ath6kl_htc_rx_process_hdr(target, packet, lk_ahds,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2023
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2032
ep, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2038
packet->info.rx.indicat_flags |=
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2043
if (packet->info.rx.rx_flags & HTC_RX_PKT_PART_OF_BUNDLE)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2046
ath6kl_htc_rx_complete(ep, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2060
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2088
packet = list_first_entry(rx_pktq, struct htc_packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2092
packet->completion = NULL;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2100
packet->info.rx.rx_flags |=
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2104
status = ath6kl_htc_rx_packet(target, packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2105
packet->act_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2107
list_move_tail(&packet->list, &tmp_rxq);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2125
list_for_each_entry_safe(packet, tmp_pkt, rx_pktq, list) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2126
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2127
htc_reclaim_rxbuf(target, packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2128
&target->endpoint[packet->endpoint]);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2131
list_for_each_entry_safe(packet, tmp_pkt, &tmp_rxq, list) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2132
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2133
htc_reclaim_rxbuf(target, packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2134
&target->endpoint[packet->endpoint]);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2261
struct htc_packet *packet = NULL;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2274
packet = htc_get_control_buf(target, false);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2276
if (!packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2279
packet->info.rx.rx_flags = 0;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2280
packet->info.rx.exp_hdr = look_ahead.word;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2281
packet->act_len = le16_to_cpu(look_ahead.payld_len) + HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2283
if (packet->act_len > packet->buf_len)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2287
packet->completion = NULL;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2290
if (ath6kl_htc_rx_packet(target, packet, packet->act_len))
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2293
trace_ath6kl_htc_rx(packet->status, packet->endpoint,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2294
packet->buf, packet->act_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2297
packet->status = ath6kl_htc_rx_process_hdr(target, packet, NULL, NULL);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2299
if (packet->status) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2301
packet->status);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2305
return packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2308
if (packet != NULL) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2309
htc_rxpkt_reset(packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2310
reclaim_rx_ctrl_buf(target, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2341
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2344
list_for_each_entry_safe(packet, tmp_pkt, pkt_queue, list) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2345
packet->status = -ECANCELED;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2346
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2347
ath6kl_htc_rx_complete(endpoint, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2381
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2391
list_for_each_entry_safe(packet, tmp_pkt,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2393
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2397
packet, packet->buf_len,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2398
packet->endpoint);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2408
if (packet->endpoint == ENDPOINT_0) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2409
kfree(packet->buf_start);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2410
kfree(packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2412
dev_kfree_skb(packet->pkt_cntxt);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2655
struct htc_packet *packet = NULL;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2662
packet = htc_wait_for_ctrl_msg(target);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2664
if (!packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2668
rdy_msg = (struct htc_ready_ext_msg *)packet->buf;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2671
(packet->act_len < sizeof(struct htc_ready_msg))) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2689
if (packet->act_len >= sizeof(struct htc_ready_ext_msg)) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2726
if (packet) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2727
htc_rxpkt_reset(packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2728
reclaim_rx_ctrl_buf(target, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2740
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2753
while ((packet = htc_get_control_buf(target, false)) != NULL) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2754
status = htc_add_rxbuf(target, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2783
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2795
packet = kzalloc_obj(*packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2796
if (!packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2799
packet->buf_start = kzalloc(ctrl_bufsz, GFP_KERNEL);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2800
if (!packet->buf_start) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2801
kfree(packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2805
packet->buf_len = ctrl_bufsz;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2807
packet->act_len = 0;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2808
packet->buf = packet->buf_start;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2809
packet->endpoint = ENDPOINT_0;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2810
list_add_tail(&packet->list, &target->free_ctrl_rxbuf);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2812
list_add_tail(&packet->list, &target->free_ctrl_txbuf);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2889
struct htc_packet *packet, *tmp_packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2893
list_for_each_entry_safe(packet, tmp_packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2895
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2896
kfree(packet->buf_start);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2897
kfree(packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2900
list_for_each_entry_safe(packet, tmp_packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2902
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2903
kfree(packet->buf_start);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
2904
kfree(packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
359
static void ath6kl_htc_tx_prep_pkt(struct htc_packet *packet, u8 flags,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
364
packet->buf -= HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
365
hdr = (struct htc_frame_hdr *)packet->buf;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
367
put_unaligned_le16(packet->act_len, &hdr->payld_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
369
hdr->eid = packet->endpoint;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
385
struct htc_packet *packet = NULL;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
397
packet = list_first_entry(buf_list, struct htc_packet, list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
398
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
402
packet->buf = packet->buf_start + HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
404
return packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
409
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
411
packet->completion = NULL;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
412
packet->buf += HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
414
if (!packet->status)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
418
packet->status, packet->endpoint, packet->act_len,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
419
packet->info.tx.cred_used);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
424
packet->info.tx.cred_used;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
451
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
453
struct htc_endpoint *endpoint = &target->endpoint[packet->endpoint];
drivers/net/wireless/ath/ath6kl/htc_mbox.c
457
packet->info.tx.seqno);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
459
htc_tx_comp_update(target, endpoint, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
461
list_add_tail(&packet->list, &container);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
470
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
483
packet = scat_req->scat_list[0].packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
484
endpoint = &target->endpoint[packet->endpoint];
drivers/net/wireless/ath/ath6kl/htc_mbox.c
488
packet = scat_req->scat_list[i].packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
489
if (!packet) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
494
packet->status = scat_req->status;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
495
htc_tx_comp_update(target, endpoint, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
496
list_add_tail(&packet->list, &tx_compq);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
507
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
513
if (!packet->completion)
drivers/net/wireless/ath/ath6kl/htc_mbox.c
516
send_len = packet->act_len + HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
522
send_len, packet->info.tx.seqno, padded_len,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
529
packet->buf, padded_len,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
532
packet->status = status;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
533
packet->buf += HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
537
packet->buf, padded_len,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
538
HIF_WR_ASYNC_BLOCK_INC, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
540
trace_ath6kl_htc_tx(status, packet->endpoint, packet->buf, send_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
604
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
612
packet = list_first_entry(&endpoint->txq, struct htc_packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
617
packet, get_queue_depth(&endpoint->txq));
drivers/net/wireless/ath/ath6kl/htc_mbox.c
620
packet->act_len + HTC_HDR_LENGTH);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
623
packet->endpoint, len, &req_cred))
drivers/net/wireless/ath/ath6kl/htc_mbox.c
627
packet = list_first_entry(&endpoint->txq, struct htc_packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
629
list_move_tail(&packet->list, queue);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
632
packet->info.tx.cred_used = req_cred;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
635
packet->completion = htc_tx_comp_handler;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
636
packet->context = target;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
640
packet->info.tx.flags = flags;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
641
packet->info.tx.seqno = endpoint->seqno;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
684
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
692
scat_req->scat_list[i].packet = NULL;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
697
packet = list_first_entry(queue, struct htc_packet, list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
699
packet->act_len + HTC_HDR_LENGTH);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
710
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
712
scat_req->scat_list[i].packet = packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
714
flags = packet->info.tx.flags | HTC_FLAGS_SEND_BUNDLE;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
715
ath6kl_htc_tx_prep_pkt(packet, flags,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
716
cred_pad, packet->info.tx.seqno);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
718
ath6kl_htc_tx_buf_align(&packet->buf,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
719
packet->act_len + HTC_HDR_LENGTH);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
720
scat_req->scat_list[i].buf = packet->buf;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
727
i, packet, packet->info.tx.seqno, len, rem_scat);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
733
packet = scat_req->scat_list[i].packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
734
if (packet) {
drivers/net/wireless/ath/ath6kl/htc_mbox.c
735
packet->buf += HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
736
list_add(&packet->list, queue);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
761
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
838
packet = scat_req->scat_list[i].packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
839
trace_ath6kl_htc_tx(packet->status, packet->endpoint,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
840
packet->buf, packet->act_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
861
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
920
packet = list_first_entry(&txq, struct htc_packet,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
922
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
924
ath6kl_htc_tx_prep_pkt(packet, packet->info.tx.flags,
drivers/net/wireless/ath/ath6kl/htc_mbox.c
925
0, packet->info.tx.seqno);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
926
status = ath6kl_htc_tx_issue(target, packet);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
929
packet->status = status;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
930
packet->completion(packet->context, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1062
packet = alloc_htc_packet_container(target);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1063
if (packet == NULL) {
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1068
packet->status = 0;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1069
packet->endpoint = htc_hdr->eid;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1070
packet->pkt_cntxt = skb;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1073
packet->buf = skb_push(skb, 0) + HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1074
packet->act_len = netlen - HTC_HDR_LENGTH - trailerlen;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1082
recv_packet_completion(target, ep, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1085
free_htc_packet_container(target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1098
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
110
packet = list_first_entry(&ep->txq, struct htc_packet, list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1106
packet = list_first_entry(&ep->rx_bufq,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1108
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1111
packet->status = -ECANCELED;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1112
packet->act_len = 0;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1116
packet, packet->buf_len,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1117
packet->endpoint);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1120
list_add_tail(&packet->list, &container);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
114
__func__, packet, get_queue_depth(&ep->txq));
drivers/net/wireless/ath/ath6kl/htc_pipe.c
116
transfer_len = packet->act_len + HTC_HDR_LENGTH;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1160
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1162
struct sk_buff *skb = packet->skb;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1164
if (packet->endpoint == ENDPOINT_0 &&
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1165
packet->status == -ECANCELED &&
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1222
struct htc_packet *packet = NULL;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1254
packet = htc_alloc_txctrl_packet(target);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1256
if (packet == NULL) {
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1262
skb = packet->skb;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1289
set_htc_pkt_info(packet, NULL, (u8 *) conn_msg,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1293
status = ath6kl_htc_pipe_tx(target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1296
packet = NULL;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1398
if (packet != NULL)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1399
htc_free_txctrl_packet(target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1409
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1426
packet = kzalloc_obj(struct htc_packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1428
if (packet != NULL)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1429
free_htc_packet_container(target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1462
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1465
packet = alloc_htc_packet_container(target);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1466
if (packet == NULL)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1468
kfree(packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1481
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1486
packet = htc_alloc_txctrl_packet(target);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1487
if (packet == NULL) {
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1492
skb = packet->skb;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1501
set_htc_pkt_info(packet, NULL, (u8 *) setup,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1507
return ath6kl_htc_pipe_tx(target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1539
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1545
__func__, packet->endpoint, packet->buf,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1546
packet->act_len);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1549
list_add_tail(&packet->list, &queue);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
159
packet = list_first_entry(&ep->txq, struct htc_packet, list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
161
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1624
struct htc_packet *packet, *tmp_pkt, *first;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
163
packet->info.tx.cred_used = credits_required;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
165
packet->info.tx.flags = send_flags;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1653
list_for_each_entry_safe(packet, tmp_pkt, pkt_queue, list) {
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1654
packet->status = -ECANCELED;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
166
packet->info.tx.seqno = ep->seqno;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1673
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1681
list_for_each_entry_safe(packet, tmp_pkt,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1683
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1687
packet, packet->buf_len,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1688
packet->endpoint);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
1689
dev_kfree_skb(packet->pkt_cntxt);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
169
list_add_tail(&packet->list, queue);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
177
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
186
packet = list_first_entry(&ep->txq, struct htc_packet, list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
187
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
191
__func__, packet, get_queue_depth(&ep->txq));
drivers/net/wireless/ath/ath6kl/htc_pipe.c
192
packet->info.tx.seqno = ep->seqno;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
193
packet->info.tx.flags = 0;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
194
packet->info.tx.cred_used = 0;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
198
list_add_tail(&packet->list, queue);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
211
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
218
packet = list_first_entry(pkt_queue, struct htc_packet, list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
219
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
221
skb = packet->skb;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
228
payload_len = packet->act_len;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
238
packet->info.tx.flags |= HTC_FLAGS_TX_FIXUP_NETBUF;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
241
htc_hdr->flags = packet->info.tx.flags;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
242
htc_hdr->eid = (u8) packet->endpoint;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
244
htc_hdr->ctrl[1] = (u8) packet->info.tx.seqno;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
249
list_add_tail(&packet->list, &ep->pipe.tx_lookup_queue);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
25
struct htc_packet *packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
268
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
271
ep->cred_dist.credits += packet->info.tx.cred_used;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
275
list_add(&packet->list, pkt_queue);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
285
__func__, packet, status);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
288
packet = list_first_entry(pkt_queue,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
29
static inline void restore_tx_packet(struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
290
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
291
packet->status = status;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
292
send_packet_completion(target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
304
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
31
if (packet->info.tx.flags & HTC_FLAGS_TX_FIXUP_NETBUF) {
drivers/net/wireless/ath/ath6kl/htc_pipe.c
32
skb_pull(packet->skb, sizeof(struct htc_frame_hdr));
drivers/net/wireless/ath/ath6kl/htc_pipe.c
33
packet->info.tx.flags &= ~HTC_FLAGS_TX_FIXUP_NETBUF;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
369
packet = list_first_entry(txq,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
373
list_move_tail(&packet->list, &send_queue);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
381
list_for_each_entry_safe(packet, tmp_pkt,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
385
__func__, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
386
action = ep->ep_cb.tx_full(ep->target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
397
list_move_tail(&packet->list,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
40
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
500
static void destroy_htc_txctrl_packet(struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
503
skb = packet->skb;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
505
kfree(packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
510
struct htc_packet *packet = NULL;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
513
packet = kzalloc_obj(struct htc_packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
514
if (packet == NULL)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
520
kfree(packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
523
packet->skb = skb;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
525
return packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
529
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
531
destroy_htc_txctrl_packet(packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
540
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
542
htc_free_txctrl_packet(target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
65
packet = list_first_entry(queue_to_indicate,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
68
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
693
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
697
packet = list_first_entry(&ep->txq, struct htc_packet, list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
698
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
699
packet->status = 0;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
700
send_packet_completion(target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
71
__func__, ep->eid, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
716
struct htc_packet *packet, *tmp_pkt, *found_packet = NULL;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
72
ep->ep_cb.tx_complete(ep->target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
725
list_for_each_entry_safe(packet, tmp_pkt, &ep->pipe.tx_lookup_queue,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
728
if (skb == packet->skb) {
drivers/net/wireless/ath/ath6kl/htc_pipe.c
730
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
731
found_packet = packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
746
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
756
packet = htc_lookup_tx_packet(target, ep, skb);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
757
if (packet == NULL) {
drivers/net/wireless/ath/ath6kl/htc_pipe.c
762
packet->status = 0;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
763
send_packet_completion(target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
78
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
783
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
789
packet = list_first_entry(pkt_queue, struct htc_packet, list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
791
if (packet->endpoint >= ENDPOINT_MAX) {
drivers/net/wireless/ath/ath6kl/htc_pipe.c
795
ep = &target->endpoint[packet->endpoint];
drivers/net/wireless/ath/ath6kl/htc_pipe.c
80
struct htc_endpoint *ep = &target->endpoint[packet->endpoint];
drivers/net/wireless/ath/ath6kl/htc_pipe.c
801
list_for_each_entry_safe(packet, tmp_pkt, pkt_queue, list) {
drivers/net/wireless/ath/ath6kl/htc_pipe.c
802
packet->status = -ENOMEM;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
814
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
822
packet = target->pipe.htc_packet_pool;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
823
target->pipe.htc_packet_pool = (struct htc_packet *) packet->list.next;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
827
packet->list.next = NULL;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
828
return packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
83
restore_tx_packet(packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
832
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
839
target->pipe.htc_packet_pool = packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
840
packet->list.next = NULL;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
843
packet->list.next = lh;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
844
target->pipe.htc_packet_pool = packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
85
list_add_tail(&packet->list, &container);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
911
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
920
packet = list_first_entry(queue_to_indicate,
drivers/net/wireless/ath/ath6kl/htc_pipe.c
922
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
923
ep->ep_cb.rx(ep->target, packet);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
931
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/htc_pipe.c
935
list_add_tail(&packet->list, &container);
drivers/net/wireless/ath/ath6kl/htc_pipe.c
948
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/htc_pipe.c
98
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/sdio.c
1243
context = req->packet;
drivers/net/wireless/ath/ath6kl/sdio.c
456
context = req->packet;
drivers/net/wireless/ath/ath6kl/sdio.c
568
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/sdio.c
582
bus_req->packet = packet;
drivers/net/wireless/ath/ath6kl/txrx.c
1301
void ath6kl_rx(struct htc_target *target, struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/txrx.c
1304
struct sk_buff *skb = packet->pkt_cntxt;
drivers/net/wireless/ath/ath6kl/txrx.c
1310
int status = packet->status;
drivers/net/wireless/ath/ath6kl/txrx.c
1311
enum htc_endpoint_id ept = packet->endpoint;
drivers/net/wireless/ath/ath6kl/txrx.c
1324
__func__, ar, ept, skb, packet->buf,
drivers/net/wireless/ath/ath6kl/txrx.c
1325
packet->act_len, status);
drivers/net/wireless/ath/ath6kl/txrx.c
1327
if (status || packet->act_len < HTC_HDR_LENGTH) {
drivers/net/wireless/ath/ath6kl/txrx.c
1332
skb_put(skb, packet->act_len + HTC_HDR_LENGTH);
drivers/net/wireless/ath/ath6kl/txrx.c
1364
vif->ndev->stats.rx_bytes += packet->act_len;
drivers/net/wireless/ath/ath6kl/txrx.c
1390
((packet->act_len < min_hdr_len) ||
drivers/net/wireless/ath/ath6kl/txrx.c
1391
(packet->act_len > WMI_MAX_AMSDU_RX_DATA_FRAME_LENGTH))) {
drivers/net/wireless/ath/ath6kl/txrx.c
1512
if ((packet->act_len < min_hdr_len) ||
drivers/net/wireless/ath/ath6kl/txrx.c
1513
(packet->act_len >
drivers/net/wireless/ath/ath6kl/txrx.c
1842
struct htc_packet *packet, *tmp_pkt;
drivers/net/wireless/ath/ath6kl/txrx.c
1850
list_for_each_entry_safe(packet, tmp_pkt, &ar->amsdu_rx_buffer_queue,
drivers/net/wireless/ath/ath6kl/txrx.c
1852
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/txrx.c
1854
dev_kfree_skb(packet->pkt_cntxt);
drivers/net/wireless/ath/ath6kl/txrx.c
587
struct htc_packet *packet)
drivers/net/wireless/ath/ath6kl/txrx.c
591
enum htc_endpoint_id endpoint = packet->endpoint;
drivers/net/wireless/ath/ath6kl/txrx.c
607
if (packet->info.tx.tag == ATH6KL_CONTROL_PKT_TAG)
drivers/net/wireless/ath/ath6kl/txrx.c
685
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/txrx.c
703
packet = list_first_entry(packet_queue, struct htc_packet,
drivers/net/wireless/ath/ath6kl/txrx.c
705
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/txrx.c
707
if (WARN_ON_ONCE(packet->endpoint == ENDPOINT_UNUSED ||
drivers/net/wireless/ath/ath6kl/txrx.c
708
packet->endpoint >= ENDPOINT_MAX))
drivers/net/wireless/ath/ath6kl/txrx.c
711
ath6kl_cookie = packet->pkt_cntxt;
drivers/net/wireless/ath/ath6kl/txrx.c
715
status = packet->status;
drivers/net/wireless/ath/ath6kl/txrx.c
717
eid = packet->endpoint;
drivers/net/wireless/ath/ath6kl/txrx.c
728
if (WARN_ON_ONCE(!status && (packet->act_len != skb->len))) {
drivers/net/wireless/ath/ath6kl/txrx.c
748
(struct wmi_cmd_hdr *) packet->buf);
drivers/net/wireless/ath/ath6kl/txrx.c
751
(struct wmi_data_hdr *) packet->buf);
drivers/net/wireless/ath/ath6kl/txrx.c
772
__func__, skb, packet->buf, packet->act_len,
drivers/net/wireless/ath/ath6kl/txrx.c
777
__func__, skb, packet->buf, packet->act_len,
drivers/net/wireless/ath/ath6kl/txrx.c
880
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/txrx.c
900
packet = (struct htc_packet *) skb->head;
drivers/net/wireless/ath/ath6kl/txrx.c
906
set_htc_rxpkt_info(packet, skb, skb->data,
drivers/net/wireless/ath/ath6kl/txrx.c
908
packet->skb = skb;
drivers/net/wireless/ath/ath6kl/txrx.c
909
list_add_tail(&packet->list, &queue);
drivers/net/wireless/ath/ath6kl/txrx.c
918
struct htc_packet *packet;
drivers/net/wireless/ath/ath6kl/txrx.c
926
packet = (struct htc_packet *) skb->head;
drivers/net/wireless/ath/ath6kl/txrx.c
932
set_htc_rxpkt_info(packet, skb, skb->data,
drivers/net/wireless/ath/ath6kl/txrx.c
934
packet->skb = skb;
drivers/net/wireless/ath/ath6kl/txrx.c
937
list_add_tail(&packet->list, &ar->amsdu_rx_buffer_queue);
drivers/net/wireless/ath/ath6kl/txrx.c
952
struct htc_packet *packet = NULL;
drivers/net/wireless/ath/ath6kl/txrx.c
971
packet = list_first_entry(&ar->amsdu_rx_buffer_queue,
drivers/net/wireless/ath/ath6kl/txrx.c
973
list_del(&packet->list);
drivers/net/wireless/ath/ath6kl/txrx.c
981
packet->endpoint = endpoint;
drivers/net/wireless/ath/ath6kl/txrx.c
987
return packet;
drivers/net/wireless/atmel/at76c50x-usb.c
1805
memcpy(tx_buffer->packet, skb->data, skb->len);
drivers/net/wireless/atmel/at76c50x-usb.h
158
#define AT76_RX_HDRLEN offsetof(struct at76_rx_buffer, packet)
drivers/net/wireless/atmel/at76c50x-usb.h
169
u8 packet[IEEE80211_MAX_FRAG_THRESHOLD];
drivers/net/wireless/atmel/at76c50x-usb.h
173
#define AT76_TX_HDRLEN offsetof(struct at76_tx_buffer, packet)
drivers/net/wireless/atmel/at76c50x-usb.h
180
u8 packet[IEEE80211_MAX_FRAG_THRESHOLD];
drivers/net/wireless/broadcom/b43legacy/pio.c
104
struct b43legacy_pio_txpacket *packet)
drivers/net/wireless/broadcom/b43legacy/pio.c
128
packetindex = pio_txpacket_getindex(packet);
drivers/net/wireless/broadcom/b43legacy/pio.c
138
struct b43legacy_pio_txpacket **packet)
drivers/net/wireless/broadcom/b43legacy/pio.c
163
*packet = &(queue->tx_packets_cache[packetindex]);
drivers/net/wireless/broadcom/b43legacy/pio.c
174
struct b43legacy_pio_txpacket *packet,
drivers/net/wireless/broadcom/b43legacy/pio.c
188
generate_cookie(queue, packet));
drivers/net/wireless/broadcom/b43legacy/pio.c
202
static void free_txpacket(struct b43legacy_pio_txpacket *packet,
drivers/net/wireless/broadcom/b43legacy/pio.c
205
struct b43legacy_pioqueue *queue = packet->queue;
drivers/net/wireless/broadcom/b43legacy/pio.c
207
if (packet->skb) {
drivers/net/wireless/broadcom/b43legacy/pio.c
209
dev_kfree_skb_irq(packet->skb);
drivers/net/wireless/broadcom/b43legacy/pio.c
211
dev_kfree_skb(packet->skb);
drivers/net/wireless/broadcom/b43legacy/pio.c
213
list_move(&packet->list, &queue->txfree);
drivers/net/wireless/broadcom/b43legacy/pio.c
217
static int pio_tx_packet(struct b43legacy_pio_txpacket *packet)
drivers/net/wireless/broadcom/b43legacy/pio.c
219
struct b43legacy_pioqueue *queue = packet->queue;
drivers/net/wireless/broadcom/b43legacy/pio.c
220
struct sk_buff *skb = packet->skb;
drivers/net/wireless/broadcom/b43legacy/pio.c
229
free_txpacket(packet, 1);
drivers/net/wireless/broadcom/b43legacy/pio.c
244
err = pio_tx_write_fragment(queue, skb, packet,
drivers/net/wireless/broadcom/b43legacy/pio.c
249
free_txpacket(packet, 1);
drivers/net/wireless/broadcom/b43legacy/pio.c
262
list_move_tail(&packet->list, &queue->txrunning);
drivers/net/wireless/broadcom/b43legacy/pio.c
272
struct b43legacy_pio_txpacket *packet, *tmp_packet;
drivers/net/wireless/broadcom/b43legacy/pio.c
283
list_for_each_entry_safe(packet, tmp_packet, &queue->txqueue, list) {
drivers/net/wireless/broadcom/b43legacy/pio.c
291
err = pio_tx_packet(packet);
drivers/net/wireless/broadcom/b43legacy/pio.c
301
struct b43legacy_pio_txpacket *packet;
drivers/net/wireless/broadcom/b43legacy/pio.c
306
packet = &(queue->tx_packets_cache[i]);
drivers/net/wireless/broadcom/b43legacy/pio.c
308
packet->queue = queue;
drivers/net/wireless/broadcom/b43legacy/pio.c
309
INIT_LIST_HEAD(&packet->list);
drivers/net/wireless/broadcom/b43legacy/pio.c
311
list_add(&packet->list, &queue->txfree);
drivers/net/wireless/broadcom/b43legacy/pio.c
369
struct b43legacy_pio_txpacket *packet, *tmp_packet;
drivers/net/wireless/broadcom/b43legacy/pio.c
373
list_for_each_entry_safe(packet, tmp_packet, &queue->txrunning, list)
drivers/net/wireless/broadcom/b43legacy/pio.c
374
free_txpacket(packet, 0);
drivers/net/wireless/broadcom/b43legacy/pio.c
375
list_for_each_entry_safe(packet, tmp_packet, &queue->txqueue, list)
drivers/net/wireless/broadcom/b43legacy/pio.c
376
free_txpacket(packet, 0);
drivers/net/wireless/broadcom/b43legacy/pio.c
43
const u8 *packet,
drivers/net/wireless/broadcom/b43legacy/pio.c
456
struct b43legacy_pio_txpacket *packet;
drivers/net/wireless/broadcom/b43legacy/pio.c
461
packet = list_entry(queue->txfree.next, struct b43legacy_pio_txpacket,
drivers/net/wireless/broadcom/b43legacy/pio.c
463
packet->skb = skb;
drivers/net/wireless/broadcom/b43legacy/pio.c
465
list_move_tail(&packet->list, &queue->txqueue);
drivers/net/wireless/broadcom/b43legacy/pio.c
478
struct b43legacy_pio_txpacket *packet;
drivers/net/wireless/broadcom/b43legacy/pio.c
482
queue = parse_cookie(dev, status->cookie, &packet);
drivers/net/wireless/broadcom/b43legacy/pio.c
485
if (!packet->skb)
drivers/net/wireless/broadcom/b43legacy/pio.c
489
queue->tx_devq_used -= (packet->skb->len +
drivers/net/wireless/broadcom/b43legacy/pio.c
492
info = IEEE80211_SKB_CB(packet->skb);
drivers/net/wireless/broadcom/b43legacy/pio.c
524
ieee80211_tx_status_irqsafe(dev->wl->hw, packet->skb);
drivers/net/wireless/broadcom/b43legacy/pio.c
525
packet->skb = NULL;
drivers/net/wireless/broadcom/b43legacy/pio.c
527
free_txpacket(packet, 1);
drivers/net/wireless/broadcom/b43legacy/pio.c
54
source = packet;
drivers/net/wireless/broadcom/b43legacy/pio.c
65
const u8 *packet,
drivers/net/wireless/broadcom/b43legacy/pio.c
72
data = tx_get_next_word(txhdr, packet,
drivers/net/wireless/broadcom/b43legacy/pio.c
80
data = tx_get_next_word(txhdr, packet,
drivers/net/wireless/broadcom/b43legacy/pio.c
85
tx_octet(queue, packet[octets -
drivers/net/wireless/broadcom/b43legacy/pio.h
48
#define pio_txpacket_getindex(packet) ((int)((packet) - \
drivers/net/wireless/broadcom/b43legacy/pio.h
49
(packet)->queue->tx_packets_cache))
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2273
struct ipw2100_rx_packet *packet)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2275
packet->skb = dev_alloc_skb(sizeof(struct ipw2100_rx));
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2276
if (!packet->skb)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2279
packet->rxp = (struct ipw2100_rx *)packet->skb->data;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2280
packet->dma_addr = dma_map_single(&priv->pci_dev->dev,
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2281
packet->skb->data,
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2284
if (dma_mapping_error(&priv->pci_dev->dev, packet->dma_addr)) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2285
dev_kfree_skb(packet->skb);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2438
struct ipw2100_rx_packet *packet = &priv->rx_buffers[i];
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2442
if (unlikely(status->frame_size > skb_tailroom(packet->skb))) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2446
status->frame_size, skb_tailroom(packet->skb));
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2465
dma_unmap_single(&priv->pci_dev->dev, packet->dma_addr,
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2468
skb_put(packet->skb, status->frame_size);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2473
skb_copy_from_linear_data(packet->skb, packet_data,
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2478
if (!libipw_rx(priv->ieee, packet->skb, stats)) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2487
dev_kfree_skb_any(packet->skb);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2488
packet->skb = NULL;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2492
if (unlikely(ipw2100_alloc_skb(priv, packet))) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2501
priv->rx_queue.drv[i].host_addr = packet->dma_addr;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2511
struct ipw2100_rx_packet *packet = &priv->rx_buffers[i];
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2523
if (unlikely(status->frame_size > skb_tailroom(packet->skb) -
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2529
skb_tailroom(packet->skb));
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2548
dma_unmap_single(&priv->pci_dev->dev, packet->dma_addr,
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2550
memmove(packet->skb->data + sizeof(struct ipw_rt_hdr),
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2551
packet->skb->data, status->frame_size);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2553
ipw_rt = (struct ipw_rt_hdr *) packet->skb->data;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2563
skb_put(packet->skb, status->frame_size + sizeof(struct ipw_rt_hdr));
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2565
if (!libipw_rx(priv->ieee, packet->skb, stats)) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2569
dev_kfree_skb_any(packet->skb);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2570
packet->skb = NULL;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2574
if (unlikely(ipw2100_alloc_skb(priv, packet))) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2583
priv->rx_queue.drv[i].host_addr = packet->dma_addr;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2648
struct ipw2100_rx_packet *packet;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2670
packet = &priv->rx_buffers[i];
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2674
dma_sync_single_for_cpu(&priv->pci_dev->dev, packet->dma_addr,
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2683
u = packet->rxp;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2794
struct ipw2100_tx_packet *packet;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2804
packet = list_entry(element, struct ipw2100_tx_packet, list);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2805
tbd = &txq->drv[packet->index];
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2808
switch (packet->type) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2879
if (packet->type == DATA) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2892
switch (packet->type) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2898
priv->net_dev->name, txq->oldest, packet->index);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2902
tbd = &txq->drv[(packet->index + 1 + i) % txq->entries];
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2905
(packet->index + 1 + i) % txq->entries,
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2912
libipw_txb_free(packet->info.d_struct.txb);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2913
packet->info.d_struct.txb = NULL;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2934
priv->net_dev->name, txq->oldest, packet->index);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2937
if (packet->info.c_struct.cmd->host_command_reg <
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2940
command_types[packet->info.c_struct.cmd->
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2942
packet->info.c_struct.cmd->
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2944
packet->info.c_struct.cmd->cmd_status_reg);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2959
jiffies - packet->jiffy_start);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
2981
struct ipw2100_tx_packet *packet;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3002
packet = list_entry(element, struct ipw2100_tx_packet, list);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3009
packet->index = txq->next;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3014
tbd->host_addr = packet->info.c_struct.cmd_phys;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3050
struct ipw2100_tx_packet *packet;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3066
packet = list_entry(element, struct ipw2100_tx_packet, list);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3068
if (unlikely(1 + packet->info.d_struct.txb->nr_frags >
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3077
if (txq->available <= 3 + packet->info.d_struct.txb->nr_frags) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3087
packet->index = txq->next;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3089
ipw_hdr = packet->info.d_struct.data;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3090
hdr = (struct libipw_hdr_3addr *)packet->info.d_struct.txb->
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3110
ipw_hdr->encrypted = packet->info.d_struct.txb->encrypted;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3111
if (packet->info.d_struct.txb->nr_frags > 1)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3113
packet->info.d_struct.txb->frag_size -
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3118
tbd->host_addr = packet->info.d_struct.data_phys;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3120
tbd->num_fragments = 1 + packet->info.d_struct.txb->nr_frags;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3128
packet->index, tbd->host_addr, tbd->buf_length);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3130
if (packet->info.d_struct.txb->nr_frags > 1)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3132
packet->info.d_struct.txb->nr_frags);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3135
for (i = 0; i < packet->info.d_struct.txb->nr_frags; i++) {
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3137
if (i == packet->info.d_struct.txb->nr_frags - 1)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3146
tbd->buf_length = packet->info.d_struct.txb->
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3150
packet->info.d_struct.
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3173
txq->available -= 1 + packet->info.d_struct.txb->nr_frags;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3366
struct ipw2100_tx_packet *packet;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3382
packet = list_entry(element, struct ipw2100_tx_packet, list);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3384
packet->info.d_struct.txb = txb;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3389
packet->jiffy_start = jiffies;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4567
struct ipw2100_rx_packet *packet = &priv->rx_buffers[i];
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4569
err = ipw2100_alloc_skb(priv, packet);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4576
priv->rx_queue.drv[i].host_addr = packet->dma_addr;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
5779
struct ipw2100_tx_packet *packet;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
5792
packet = list_entry(element, struct ipw2100_tx_packet, list);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
5797
libipw_txb_free(packet->info.d_struct.txb);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
5798
packet->info.d_struct.txb = NULL;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
702
struct ipw2100_tx_packet *packet;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
745
packet = list_entry(element, struct ipw2100_tx_packet, list);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
746
packet->jiffy_start = jiffies;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
749
packet->info.c_struct.cmd->host_command_reg = cmd->host_command;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
750
packet->info.c_struct.cmd->host_command_reg1 = cmd->host_command1;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
751
packet->info.c_struct.cmd->host_command_len_reg =
drivers/net/wireless/intel/ipw2x00/ipw2100.c
753
packet->info.c_struct.cmd->sequence = cmd->host_command_sequence;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
755
memcpy(packet->info.c_struct.cmd->host_command_params_reg,
drivers/net/wireless/intel/ipw2x00/ipw2100.c
757
sizeof(packet->info.c_struct.cmd->host_command_params_reg));
drivers/net/wireless/intel/iwlwifi/mld/d3.c
744
wakeup->packet = pkt->data;
drivers/net/wireless/intel/iwlwifi/mld/d3.c
759
wakeup->packet = wowlan_status->wake_packet;
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
1556
wakeup.packet = pkt->data;
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
1571
wakeup.packet = status->wake_packet;
drivers/net/wireless/marvell/libertas/if_sdio.c
1141
struct if_sdio_packet *packet, *tmp;
drivers/net/wireless/marvell/libertas/if_sdio.c
1246
list_for_each_entry_safe(packet, tmp, &card->packets, list)
drivers/net/wireless/marvell/libertas/if_sdio.c
1247
kfree(packet);
drivers/net/wireless/marvell/libertas/if_sdio.c
1257
struct if_sdio_packet *packet, *tmp;
drivers/net/wireless/marvell/libertas/if_sdio.c
1289
list_for_each_entry_safe(packet, tmp, &card->packets, list)
drivers/net/wireless/marvell/libertas/if_sdio.c
1290
kfree(packet);
drivers/net/wireless/marvell/libertas/if_sdio.c
400
struct if_sdio_packet *packet;
drivers/net/wireless/marvell/libertas/if_sdio.c
408
packet = list_first_entry_or_null(&card->packets,
drivers/net/wireless/marvell/libertas/if_sdio.c
410
if (packet)
drivers/net/wireless/marvell/libertas/if_sdio.c
411
list_del(&packet->list);
drivers/net/wireless/marvell/libertas/if_sdio.c
414
if (!packet)
drivers/net/wireless/marvell/libertas/if_sdio.c
422
packet->buffer, packet->nb);
drivers/net/wireless/marvell/libertas/if_sdio.c
430
kfree(packet);
drivers/net/wireless/marvell/libertas/if_sdio.c
914
struct if_sdio_packet *packet;
drivers/net/wireless/marvell/libertas/if_sdio.c
932
packet = kzalloc(sizeof(struct if_sdio_packet) + size,
drivers/net/wireless/marvell/libertas/if_sdio.c
934
if (!packet) {
drivers/net/wireless/marvell/libertas/if_sdio.c
939
packet->nb = size;
drivers/net/wireless/marvell/libertas/if_sdio.c
944
packet->buffer[0] = (nb + 4) & 0xff;
drivers/net/wireless/marvell/libertas/if_sdio.c
945
packet->buffer[1] = ((nb + 4) >> 8) & 0xff;
drivers/net/wireless/marvell/libertas/if_sdio.c
946
packet->buffer[2] = type;
drivers/net/wireless/marvell/libertas/if_sdio.c
947
packet->buffer[3] = 0;
drivers/net/wireless/marvell/libertas/if_sdio.c
949
memcpy(packet->buffer + 4, buf, nb);
drivers/net/wireless/marvell/libertas/if_sdio.c
953
list_add_tail(&packet->list, &card->packets);
drivers/net/wireless/marvell/libertas/if_spi.c
785
struct if_spi_packet *packet, int type)
drivers/net/wireless/marvell/libertas/if_spi.c
79
struct if_spi_packet *packet, *tmp;
drivers/net/wireless/marvell/libertas/if_spi.c
806
err = spu_write(card, port_reg, packet->buffer, packet->blen);
drivers/net/wireless/marvell/libertas/if_spi.c
81
list_for_each_entry_safe(packet, tmp, &card->cmd_packet_list, list) {
drivers/net/wireless/marvell/libertas/if_spi.c
811
kfree(packet);
drivers/net/wireless/marvell/libertas/if_spi.c
82
list_del(&packet->list);
drivers/net/wireless/marvell/libertas/if_spi.c
83
kfree(packet);
drivers/net/wireless/marvell/libertas/if_spi.c
85
list_for_each_entry_safe(packet, tmp, &card->data_packet_list, list) {
drivers/net/wireless/marvell/libertas/if_spi.c
852
struct if_spi_packet *packet;
drivers/net/wireless/marvell/libertas/if_spi.c
86
list_del(&packet->list);
drivers/net/wireless/marvell/libertas/if_spi.c
87
kfree(packet);
drivers/net/wireless/marvell/libertas/if_spi.c
897
packet = NULL;
drivers/net/wireless/marvell/libertas/if_spi.c
900
packet = (struct if_spi_packet *)(card->
drivers/net/wireless/marvell/libertas/if_spi.c
902
list_del(&packet->list);
drivers/net/wireless/marvell/libertas/if_spi.c
906
if (packet)
drivers/net/wireless/marvell/libertas/if_spi.c
907
if_spi_h2c(card, packet, MVMS_CMD);
drivers/net/wireless/marvell/libertas/if_spi.c
911
packet = NULL;
drivers/net/wireless/marvell/libertas/if_spi.c
914
packet = (struct if_spi_packet *)(card->
drivers/net/wireless/marvell/libertas/if_spi.c
916
list_del(&packet->list);
drivers/net/wireless/marvell/libertas/if_spi.c
920
if (packet)
drivers/net/wireless/marvell/libertas/if_spi.c
921
if_spi_h2c(card, packet, MVMS_DAT);
drivers/net/wireless/marvell/libertas/if_spi.c
943
struct if_spi_packet *packet;
drivers/net/wireless/marvell/libertas/if_spi.c
953
packet = kzalloc(sizeof(struct if_spi_packet) + blen, GFP_ATOMIC);
drivers/net/wireless/marvell/libertas/if_spi.c
954
if (!packet) {
drivers/net/wireless/marvell/libertas/if_spi.c
958
packet->blen = blen;
drivers/net/wireless/marvell/libertas/if_spi.c
959
memcpy(packet->buffer, buf, nb);
drivers/net/wireless/marvell/libertas/if_spi.c
960
memset(packet->buffer + nb, 0, blen - nb);
drivers/net/wireless/marvell/libertas/if_spi.c
966
list_add_tail(&packet->list, &card->cmd_packet_list);
drivers/net/wireless/marvell/libertas/if_spi.c
972
list_add_tail(&packet->list, &card->data_packet_list);
drivers/net/wireless/marvell/libertas/if_spi.c
976
kfree(packet);
drivers/nvmem/microchip-otpc.c
150
struct mchp_otpc_packet *packet;
drivers/nvmem/microchip-otpc.c
162
packet = mchp_otpc_id_to_packet(otpc, off / 4);
drivers/nvmem/microchip-otpc.c
163
if (!packet)
drivers/nvmem/microchip-otpc.c
165
offset = packet->offset;
drivers/nvmem/microchip-otpc.c
195
struct mchp_otpc_packet *packet;
drivers/nvmem/microchip-otpc.c
212
packet = devm_kzalloc(otpc->dev, sizeof(*packet), GFP_KERNEL);
drivers/nvmem/microchip-otpc.c
213
if (!packet)
drivers/nvmem/microchip-otpc.c
216
packet->id = id++;
drivers/nvmem/microchip-otpc.c
217
packet->offset = word_pos;
drivers/nvmem/microchip-otpc.c
218
INIT_LIST_HEAD(&packet->list);
drivers/nvmem/microchip-otpc.c
219
list_add_tail(&packet->list, &otpc->packets);
drivers/nvmem/microchip-otpc.c
60
struct mchp_otpc_packet *packet;
drivers/nvmem/microchip-otpc.c
65
list_for_each_entry(packet, &otpc->packets, list) {
drivers/nvmem/microchip-otpc.c
66
if (packet->id == id)
drivers/nvmem/microchip-otpc.c
67
return packet;
drivers/platform/surface/aggregator/ssh_packet_layer.c
1001
set_bit(SSH_PACKET_SF_LOCKED_BIT, &packet->state);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1004
clear_bit(SSH_PACKET_SF_TRANSMITTING_BIT, &packet->state);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1006
ptl_err(packet->ptl, "ptl: transmission error: %d\n", status);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1007
ptl_dbg(packet->ptl, "ptl: failed to transmit packet: %p\n", packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1009
ssh_ptl_remove_and_complete(packet, status);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1015
wake_up_all(&packet->ptl->tx.packet_wq);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1051
static int ssh_ptl_tx_packet(struct ssh_ptl *ptl, struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
1057
if (unlikely(!packet->data.ptr))
drivers/platform/surface/aggregator/ssh_packet_layer.c
1061
if (ssh_ptl_should_drop_packet(packet))
drivers/platform/surface/aggregator/ssh_packet_layer.c
1065
ssh_ptl_tx_inject_invalid_data(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1067
ptl_dbg(ptl, "tx: sending data (length: %zu)\n", packet->data.len);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1069
packet->data.ptr, packet->data.len, false);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1075
buf = packet->data.ptr + offset;
drivers/platform/surface/aggregator/ssh_packet_layer.c
1076
len = packet->data.len - offset;
drivers/platform/surface/aggregator/ssh_packet_layer.c
1078
status = ssh_ptl_write_buf(ptl, packet, buf, len);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1104
struct ssh_packet *packet;
drivers/platform/surface/aggregator/ssh_packet_layer.c
1108
packet = ssh_ptl_tx_next(ptl);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1111
if (IS_ERR(packet)) {
drivers/platform/surface/aggregator/ssh_packet_layer.c
1117
status = ssh_ptl_tx_packet(ptl, packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1119
ssh_ptl_tx_compl_error(packet, status);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1121
ssh_ptl_tx_compl_success(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1123
ssh_packet_put(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1195
struct ssh_packet *packet = ERR_PTR(-ENOENT);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1213
packet = ERR_PTR(-EPERM);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1228
packet = p;
drivers/platform/surface/aggregator/ssh_packet_layer.c
1234
return packet;
drivers/platform/surface/aggregator/ssh_packet_layer.c
1237
static void ssh_ptl_wait_until_transmitted(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
1239
wait_event(packet->ptl->tx.packet_wq,
drivers/platform/surface/aggregator/ssh_packet_layer.c
1240
test_bit(SSH_PACKET_SF_TRANSMITTED_BIT, &packet->state) ||
drivers/platform/surface/aggregator/ssh_packet_layer.c
1241
test_bit(SSH_PACKET_SF_LOCKED_BIT, &packet->state));
drivers/platform/surface/aggregator/ssh_packet_layer.c
1363
static int __ssh_ptl_resubmit(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
1368
lockdep_assert_held(&packet->ptl->pending.lock);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1370
trace_ssam_packet_resubmit(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1372
spin_lock(&packet->ptl->queue.lock);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1375
try = ssh_packet_priority_get_try(packet->priority);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1377
spin_unlock(&packet->ptl->queue.lock);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1381
status = __ssh_ptl_queue_push(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1388
spin_unlock(&packet->ptl->queue.lock);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1392
packet->timestamp = KTIME_MAX;
drivers/platform/surface/aggregator/ssh_packet_layer.c
1394
spin_unlock(&packet->ptl->queue.lock);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1651
struct ssh_packet *packet;
drivers/platform/surface/aggregator/ssh_packet_layer.c
1656
status = ssh_ctrl_packet_alloc(&packet, &buf, GFP_KERNEL);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1662
ssh_packet_init(packet, 0, SSH_PACKET_PRIORITY(ACK, 0),
drivers/platform/surface/aggregator/ssh_packet_layer.c
1667
ssh_packet_set_data(packet, msgb.begin, msgb_bytes_used(&msgb));
drivers/platform/surface/aggregator/ssh_packet_layer.c
1669
ssh_ptl_submit(ptl, packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1670
ssh_packet_put(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1675
struct ssh_packet *packet;
drivers/platform/surface/aggregator/ssh_packet_layer.c
1680
status = ssh_ctrl_packet_alloc(&packet, &buf, GFP_KERNEL);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1686
ssh_packet_init(packet, 0, SSH_PACKET_PRIORITY(NAK, 0),
drivers/platform/surface/aggregator/ssh_packet_layer.c
1691
ssh_packet_set_data(packet, msgb.begin, msgb_bytes_used(&msgb));
drivers/platform/surface/aggregator/ssh_packet_layer.c
1693
ssh_ptl_submit(ptl, packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1694
ssh_packet_put(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
329
static bool __ssh_ptl_should_drop_ack_packet(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
334
trace_ssam_ei_tx_drop_ack_packet(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
335
ptl_info(packet->ptl, "packet error injection: dropping ACK packet %p\n",
drivers/platform/surface/aggregator/ssh_packet_layer.c
336
packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
341
static bool __ssh_ptl_should_drop_nak_packet(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
346
trace_ssam_ei_tx_drop_nak_packet(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
347
ptl_info(packet->ptl, "packet error injection: dropping NAK packet %p\n",
drivers/platform/surface/aggregator/ssh_packet_layer.c
348
packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
353
static bool __ssh_ptl_should_drop_dsq_packet(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
358
trace_ssam_ei_tx_drop_dsq_packet(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
359
ptl_info(packet->ptl,
drivers/platform/surface/aggregator/ssh_packet_layer.c
361
packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
366
static bool ssh_ptl_should_drop_packet(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
369
if (!packet->data.ptr || !packet->data.len)
drivers/platform/surface/aggregator/ssh_packet_layer.c
372
switch (packet->data.ptr[SSH_MSGOFFSET_FRAME(type)]) {
drivers/platform/surface/aggregator/ssh_packet_layer.c
374
return __ssh_ptl_should_drop_ack_packet(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
377
return __ssh_ptl_should_drop_nak_packet(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
380
return __ssh_ptl_should_drop_dsq_packet(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
387
static int ssh_ptl_write_buf(struct ssh_ptl *ptl, struct ssh_packet *packet,
drivers/platform/surface/aggregator/ssh_packet_layer.c
394
trace_ssam_ei_tx_fail_write(packet, status);
drivers/platform/surface/aggregator/ssh_packet_layer.c
395
ptl_info(packet->ptl,
drivers/platform/surface/aggregator/ssh_packet_layer.c
397
status, packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
405
static void ssh_ptl_tx_inject_invalid_data(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
408
if (!packet->data.ptr || !packet->data.len)
drivers/platform/surface/aggregator/ssh_packet_layer.c
412
if (packet->data.ptr[SSH_MSGOFFSET_FRAME(type)] != SSH_FRAME_TYPE_DATA_SEQ)
drivers/platform/surface/aggregator/ssh_packet_layer.c
418
trace_ssam_ei_tx_corrupt_data(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
419
ptl_info(packet->ptl,
drivers/platform/surface/aggregator/ssh_packet_layer.c
421
packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
428
memset(packet->data.ptr, 0xb3, packet->data.len);
drivers/platform/surface/aggregator/ssh_packet_layer.c
481
static inline bool ssh_ptl_should_drop_packet(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
487
struct ssh_packet *packet,
drivers/platform/surface/aggregator/ssh_packet_layer.c
494
static inline void ssh_ptl_tx_inject_invalid_data(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
529
struct ssh_packet *ssh_packet_get(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
531
if (packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
532
kref_get(&packet->refcnt);
drivers/platform/surface/aggregator/ssh_packet_layer.c
533
return packet;
drivers/platform/surface/aggregator/ssh_packet_layer.c
547
void ssh_packet_put(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
549
if (packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
550
kref_put(&packet->refcnt, __ssh_ptl_packet_release);
drivers/platform/surface/aggregator/ssh_packet_layer.c
554
static u8 ssh_packet_get_seq(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
556
return packet->data.ptr[SSH_MSGOFFSET_FRAME(seq)];
drivers/platform/surface/aggregator/ssh_packet_layer.c
572
void ssh_packet_init(struct ssh_packet *packet, unsigned long type,
drivers/platform/surface/aggregator/ssh_packet_layer.c
575
kref_init(&packet->refcnt);
drivers/platform/surface/aggregator/ssh_packet_layer.c
577
packet->ptl = NULL;
drivers/platform/surface/aggregator/ssh_packet_layer.c
578
INIT_LIST_HEAD(&packet->queue_node);
drivers/platform/surface/aggregator/ssh_packet_layer.c
579
INIT_LIST_HEAD(&packet->pending_node);
drivers/platform/surface/aggregator/ssh_packet_layer.c
581
packet->state = type & SSH_PACKET_FLAGS_TY_MASK;
drivers/platform/surface/aggregator/ssh_packet_layer.c
582
packet->priority = priority;
drivers/platform/surface/aggregator/ssh_packet_layer.c
583
packet->timestamp = KTIME_MAX;
drivers/platform/surface/aggregator/ssh_packet_layer.c
585
packet->data.ptr = NULL;
drivers/platform/surface/aggregator/ssh_packet_layer.c
586
packet->data.len = 0;
drivers/platform/surface/aggregator/ssh_packet_layer.c
588
packet->ops = ops;
drivers/platform/surface/aggregator/ssh_packet_layer.c
634
static int ssh_ctrl_packet_alloc(struct ssh_packet **packet,
drivers/platform/surface/aggregator/ssh_packet_layer.c
637
*packet = kmem_cache_alloc(ssh_ctrl_packet_cache, flags);
drivers/platform/surface/aggregator/ssh_packet_layer.c
638
if (!*packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
641
buffer->ptr = (u8 *)(*packet + 1);
drivers/platform/surface/aggregator/ssh_packet_layer.c
644
trace_ssam_ctrl_packet_alloc(*packet, buffer->len);
drivers/platform/surface/aggregator/ssh_packet_layer.c
739
static int __ssh_ptl_queue_push(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
741
struct ssh_ptl *ptl = packet->ptl;
drivers/platform/surface/aggregator/ssh_packet_layer.c
750
if (test_bit(SSH_PACKET_SF_LOCKED_BIT, &packet->state))
drivers/platform/surface/aggregator/ssh_packet_layer.c
754
if (test_and_set_bit(SSH_PACKET_SF_QUEUED_BIT, &packet->state))
drivers/platform/surface/aggregator/ssh_packet_layer.c
757
head = __ssh_ptl_queue_find_entrypoint(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
759
list_add_tail(&ssh_packet_get(packet)->queue_node, head);
drivers/platform/surface/aggregator/ssh_packet_layer.c
763
static int ssh_ptl_queue_push(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
767
spin_lock(&packet->ptl->queue.lock);
drivers/platform/surface/aggregator/ssh_packet_layer.c
768
status = __ssh_ptl_queue_push(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
769
spin_unlock(&packet->ptl->queue.lock);
drivers/platform/surface/aggregator/ssh_packet_layer.c
774
static void ssh_ptl_queue_remove(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
776
struct ssh_ptl *ptl = packet->ptl;
drivers/platform/surface/aggregator/ssh_packet_layer.c
780
if (!test_and_clear_bit(SSH_PACKET_SF_QUEUED_BIT, &packet->state)) {
drivers/platform/surface/aggregator/ssh_packet_layer.c
785
list_del(&packet->queue_node);
drivers/platform/surface/aggregator/ssh_packet_layer.c
788
ssh_packet_put(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
831
static void ssh_ptl_pending_remove(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
833
struct ssh_ptl *ptl = packet->ptl;
drivers/platform/surface/aggregator/ssh_packet_layer.c
837
if (!test_and_clear_bit(SSH_PACKET_SF_PENDING_BIT, &packet->state)) {
drivers/platform/surface/aggregator/ssh_packet_layer.c
842
list_del(&packet->pending_node);
drivers/platform/surface/aggregator/ssh_packet_layer.c
847
ssh_packet_put(packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
883
static bool ssh_ptl_tx_can_process(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
885
struct ssh_ptl *ptl = packet->ptl;
drivers/platform/surface/aggregator/ssh_packet_layer.c
887
if (test_bit(SSH_PACKET_TY_FLUSH_BIT, &packet->state))
drivers/platform/surface/aggregator/ssh_packet_layer.c
891
if (!test_bit(SSH_PACKET_TY_BLOCKING_BIT, &packet->state))
drivers/platform/surface/aggregator/ssh_packet_layer.c
895
if (test_bit(SSH_PACKET_SF_PENDING_BIT, &packet->state))
drivers/platform/surface/aggregator/ssh_packet_layer.c
904
struct ssh_packet *packet = ERR_PTR(-ENOENT);
drivers/platform/surface/aggregator/ssh_packet_layer.c
922
packet = ERR_PTR(-EBUSY);
drivers/platform/surface/aggregator/ssh_packet_layer.c
947
packet = p;
drivers/platform/surface/aggregator/ssh_packet_layer.c
952
return packet;
drivers/platform/surface/aggregator/ssh_packet_layer.c
973
static void ssh_ptl_tx_compl_success(struct ssh_packet *packet)
drivers/platform/surface/aggregator/ssh_packet_layer.c
975
struct ssh_ptl *ptl = packet->ptl;
drivers/platform/surface/aggregator/ssh_packet_layer.c
977
ptl_dbg(ptl, "ptl: successfully transmitted packet %p\n", packet);
drivers/platform/surface/aggregator/ssh_packet_layer.c
980
set_bit(SSH_PACKET_SF_TRANSMITTED_BIT, &packet->state);
drivers/platform/surface/aggregator/ssh_packet_layer.c
983
clear_bit(SSH_PACKET_SF_TRANSMITTING_BIT, &packet->state);
drivers/platform/surface/aggregator/ssh_packet_layer.c
986
if (!test_bit(SSH_PACKET_TY_SEQUENCED_BIT, &packet->state)) {
drivers/platform/surface/aggregator/ssh_packet_layer.c
987
set_bit(SSH_PACKET_SF_LOCKED_BIT, &packet->state);
drivers/platform/surface/aggregator/ssh_packet_layer.c
988
ssh_ptl_remove_and_complete(packet, 0);
drivers/platform/surface/aggregator/ssh_packet_layer.c
998
static void ssh_ptl_tx_compl_error(struct ssh_packet *packet, int status)
drivers/platform/surface/aggregator/ssh_packet_layer.h
184
void ssh_packet_init(struct ssh_packet *packet, unsigned long type,
drivers/platform/surface/aggregator/ssh_request_layer.c
1161
rqst.base.packet.state |= BIT(SSH_PACKET_TY_FLUSH_BIT);
drivers/platform/surface/aggregator/ssh_request_layer.c
1162
rqst.base.packet.priority = SSH_PACKET_PRIORITY(FLUSH, 0);
drivers/platform/surface/aggregator/ssh_request_layer.c
258
status = ssh_ptl_submit(&rtl->ptl, &rqst->packet);
drivers/platform/surface/aggregator/ssh_request_layer.c
371
if (!test_bit(SSH_PACKET_TY_SEQUENCED_BIT, &rqst->packet.state))
drivers/platform/surface/aggregator/ssh_request_layer.c
391
if (cmpxchg(&rqst->packet.ptl, NULL, &rtl->ptl)) {
drivers/platform/surface/aggregator/ssh_request_layer.c
493
&p->packet);
drivers/platform/surface/aggregator/ssh_request_layer.c
619
if (flags == fixed && !READ_ONCE(r->packet.ptl)) {
drivers/platform/surface/aggregator/ssh_request_layer.c
674
if (!READ_ONCE(r->packet.ptl)) {
drivers/platform/surface/aggregator/ssh_request_layer.c
687
ssh_ptl_cancel(&r->packet);
drivers/platform/surface/aggregator/ssh_request_layer.c
88
return get_unaligned_le16(rqst->packet.data.ptr
drivers/platform/surface/aggregator/ssh_request_layer.c
94
if (!rqst->packet.data.ptr)
drivers/platform/surface/aggregator/ssh_request_layer.c
997
ssh_packet_init(&rqst->packet, type, SSH_PACKET_PRIORITY(DATA, 0),
drivers/platform/surface/aggregator/ssh_request_layer.h
125
ptl = READ_ONCE(rqst->packet.ptl);
drivers/platform/surface/aggregator/trace.h
204
#define ssam_trace_get_command_field_u8(packet, field) \
drivers/platform/surface/aggregator/trace.h
205
((!(packet) || (packet)->data.len < SSH_COMMAND_MESSAGE_LENGTH(0)) \
drivers/platform/surface/aggregator/trace.h
206
? 0 : (packet)->data.ptr[SSH_MSGOFFSET_COMMAND(field)])
drivers/platform/surface/aggregator/trace.h
394
TP_PROTO(const struct ssh_packet *packet),
drivers/platform/surface/aggregator/trace.h
396
TP_ARGS(packet),
drivers/platform/surface/aggregator/trace.h
407
__entry->state = READ_ONCE(packet->state);
drivers/platform/surface/aggregator/trace.h
408
ssam_trace_ptr_uid(packet, __entry->uid);
drivers/platform/surface/aggregator/trace.h
409
__entry->priority = READ_ONCE(packet->priority);
drivers/platform/surface/aggregator/trace.h
410
__entry->length = packet->data.len;
drivers/platform/surface/aggregator/trace.h
411
__entry->seq = ssam_trace_get_packet_seq(packet);
drivers/platform/surface/aggregator/trace.h
426
TP_PROTO(const struct ssh_packet *packet), \
drivers/platform/surface/aggregator/trace.h
427
TP_ARGS(packet) \
drivers/platform/surface/aggregator/trace.h
431
TP_PROTO(const struct ssh_packet *packet, int status),
drivers/platform/surface/aggregator/trace.h
433
TP_ARGS(packet, status),
drivers/platform/surface/aggregator/trace.h
445
__entry->state = READ_ONCE(packet->state);
drivers/platform/surface/aggregator/trace.h
447
ssam_trace_ptr_uid(packet, __entry->uid);
drivers/platform/surface/aggregator/trace.h
448
__entry->priority = READ_ONCE(packet->priority);
drivers/platform/surface/aggregator/trace.h
449
__entry->length = packet->data.len;
drivers/platform/surface/aggregator/trace.h
450
__entry->seq = ssam_trace_get_packet_seq(packet);
drivers/platform/surface/aggregator/trace.h
466
TP_PROTO(const struct ssh_packet *packet, int status), \
drivers/platform/surface/aggregator/trace.h
467
TP_ARGS(packet, status) \
drivers/platform/surface/aggregator/trace.h
487
const struct ssh_packet *p = &request->packet;
drivers/platform/surface/aggregator/trace.h
537
const struct ssh_packet *p = &request->packet;
drivers/pmdomain/bcm/raspberrypi-power.c
148
struct rpi_power_domain_packet packet;
drivers/pmdomain/bcm/raspberrypi-power.c
151
packet.domain = RPI_POWER_DOMAIN_ARM;
drivers/pmdomain/bcm/raspberrypi-power.c
152
packet.state = ~0;
drivers/pmdomain/bcm/raspberrypi-power.c
156
&packet, sizeof(packet));
drivers/pmdomain/bcm/raspberrypi-power.c
158
return ret == 0 && packet.state != ~0;
drivers/pmdomain/bcm/raspberrypi-power.c
56
struct rpi_power_domain_packet packet;
drivers/pmdomain/bcm/raspberrypi-power.c
59
packet.domain = rpi_domain->domain;
drivers/pmdomain/bcm/raspberrypi-power.c
60
packet.state = on;
drivers/pmdomain/bcm/raspberrypi-power.c
65
&packet, sizeof(packet));
drivers/scsi/storvsc_drv.c
1261
struct vstor_packet *packet = hv_pkt_data(desc);
drivers/scsi/storvsc_drv.c
1304
if (packet->operation == VSTOR_OPERATION_COMPLETE_IO ||
drivers/scsi/storvsc_drv.c
1305
packet->operation == VSTOR_OPERATION_FCHBA_DATA) {
drivers/scsi/storvsc_drv.c
1322
storvsc_on_receive(stor_device, packet, request);
drivers/scsi/storvsc_drv.c
1326
memcpy(&request->vstor_packet, packet,
drivers/spi/spi-stm32.c
601
u32 packet, bpw;
drivers/spi/spi-stm32.c
604
packet = clamp(xfer_len, 1U, spi->fifo_size / 2);
drivers/spi/spi-stm32.c
608
return DIV_ROUND_UP(packet, bpw);
drivers/staging/octeon/octeon-stubs.h
1391
union cvmx_buf_ptr packet, cvmx_pko_lock_t use_locking)
drivers/tty/hvc/hvsi.c
145
static inline int len_packet(const uint8_t *packet)
drivers/tty/hvc/hvsi.c
147
return (int)((struct hvsi_header *)packet)->len;
drivers/tty/hvc/hvsi.c
150
static inline int is_header(const uint8_t *packet)
drivers/tty/hvc/hvsi.c
152
struct hvsi_header *header = (struct hvsi_header *)packet;
drivers/tty/hvc/hvsi.c
156
static inline int got_packet(const struct hvsi_struct *hp, uint8_t *packet)
drivers/tty/hvc/hvsi.c
158
if (hp->inbuf_end < packet + sizeof(struct hvsi_header))
drivers/tty/hvc/hvsi.c
161
if (hp->inbuf_end < (packet + len_packet(packet)))
drivers/tty/hvc/hvsi.c
181
#define dbg_dump_packet(packet) dump_packet(packet)
drivers/tty/hvc/hvsi.c
184
#define dbg_dump_packet(packet) do { } while (0)
drivers/tty/hvc/hvsi.c
206
static void dump_packet(uint8_t *packet)
drivers/tty/hvc/hvsi.c
208
struct hvsi_header *header = (struct hvsi_header *)packet;
drivers/tty/hvc/hvsi.c
213
dump_hex(packet, header->len);
drivers/tty/hvc/hvsi.c
225
static void hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet,
drivers/tty/hvc/hvsi.c
228
struct hvsi_control *header = (struct hvsi_control *)packet;
drivers/tty/hvc/hvsi.c
249
dump_packet(packet);
drivers/tty/hvc/hvsi.c
254
static void hvsi_recv_response(struct hvsi_struct *hp, uint8_t *packet)
drivers/tty/hvc/hvsi.c
256
struct hvsi_query_response *resp = (struct hvsi_query_response *)packet;
drivers/tty/hvc/hvsi.c
274
dump_packet(packet);
drivers/tty/hvc/hvsi.c
282
struct hvsi_query_response packet __ALIGNED__;
drivers/tty/hvc/hvsi.c
285
packet.hdr.type = VS_QUERY_RESPONSE_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
286
packet.hdr.len = sizeof(struct hvsi_query_response);
drivers/tty/hvc/hvsi.c
287
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
288
packet.verb = cpu_to_be16(VSV_SEND_VERSION_NUMBER);
drivers/tty/hvc/hvsi.c
289
packet.u.version = HVSI_VERSION;
drivers/tty/hvc/hvsi.c
290
packet.query_seqno = cpu_to_be16(query_seqno+1);
drivers/tty/hvc/hvsi.c
292
pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len);
drivers/tty/hvc/hvsi.c
293
dbg_dump_hex((uint8_t*)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
295
wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
296
if (wrote != packet.hdr.len) {
drivers/tty/hvc/hvsi.c
305
static void hvsi_recv_query(struct hvsi_struct *hp, uint8_t *packet)
drivers/tty/hvc/hvsi.c
307
struct hvsi_query *query = (struct hvsi_query *)packet;
drivers/tty/hvc/hvsi.c
316
dump_packet(packet);
drivers/tty/hvc/hvsi.c
350
static bool hvsi_recv_data(struct hvsi_struct *hp, const uint8_t *packet)
drivers/tty/hvc/hvsi.c
352
const struct hvsi_header *header = (const struct hvsi_header *)packet;
drivers/tty/hvc/hvsi.c
353
const uint8_t *data = packet + sizeof(struct hvsi_header);
drivers/tty/hvc/hvsi.c
391
uint8_t *packet = hp->inbuf;
drivers/tty/hvc/hvsi.c
409
while ((packet < hp->inbuf_end) && got_packet(hp, packet)) {
drivers/tty/hvc/hvsi.c
410
struct hvsi_header *header = (struct hvsi_header *)packet;
drivers/tty/hvc/hvsi.c
412
if (!is_header(packet)) {
drivers/tty/hvc/hvsi.c
415
while ((packet < hp->inbuf_end) && (!is_header(packet)))
drivers/tty/hvc/hvsi.c
416
packet++;
drivers/tty/hvc/hvsi.c
421
len_packet(packet));
drivers/tty/hvc/hvsi.c
422
dbg_dump_packet(packet);
drivers/tty/hvc/hvsi.c
428
flip = hvsi_recv_data(hp, packet);
drivers/tty/hvc/hvsi.c
431
hvsi_recv_control(hp, packet, tty, handshake);
drivers/tty/hvc/hvsi.c
434
hvsi_recv_response(hp, packet);
drivers/tty/hvc/hvsi.c
437
hvsi_recv_query(hp, packet);
drivers/tty/hvc/hvsi.c
442
dump_packet(packet);
drivers/tty/hvc/hvsi.c
446
packet += len_packet(packet);
drivers/tty/hvc/hvsi.c
454
compact_inbuf(hp, packet);
drivers/tty/hvc/hvsi.c
542
struct hvsi_query packet __ALIGNED__;
drivers/tty/hvc/hvsi.c
545
packet.hdr.type = VS_QUERY_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
546
packet.hdr.len = sizeof(struct hvsi_query);
drivers/tty/hvc/hvsi.c
547
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
548
packet.verb = cpu_to_be16(verb);
drivers/tty/hvc/hvsi.c
550
pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len);
drivers/tty/hvc/hvsi.c
551
dbg_dump_hex((uint8_t*)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
553
wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
554
if (wrote != packet.hdr.len) {
drivers/tty/hvc/hvsi.c
585
struct hvsi_control packet __ALIGNED__;
drivers/tty/hvc/hvsi.c
588
packet.hdr.type = VS_CONTROL_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
589
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
590
packet.hdr.len = sizeof(struct hvsi_control);
drivers/tty/hvc/hvsi.c
591
packet.verb = cpu_to_be16(VSV_SET_MODEM_CTL);
drivers/tty/hvc/hvsi.c
592
packet.mask = cpu_to_be32(HVSI_TSDTR);
drivers/tty/hvc/hvsi.c
595
packet.word = cpu_to_be32(HVSI_TSDTR);
drivers/tty/hvc/hvsi.c
597
pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len);
drivers/tty/hvc/hvsi.c
598
dbg_dump_hex((uint8_t*)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
600
wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
601
if (wrote != packet.hdr.len) {
drivers/tty/hvc/hvsi.c
666
struct hvsi_data packet __ALIGNED__;
drivers/tty/hvc/hvsi.c
671
packet.hdr.type = VS_DATA_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
672
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
673
packet.hdr.len = count + sizeof(struct hvsi_header);
drivers/tty/hvc/hvsi.c
674
memcpy(&packet.data, buf, count);
drivers/tty/hvc/hvsi.c
676
ret = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
677
if (ret == packet.hdr.len) {
drivers/tty/hvc/hvsi.c
686
struct hvsi_control packet __ALIGNED__;
drivers/tty/hvc/hvsi.c
688
packet.hdr.type = VS_CONTROL_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
689
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
690
packet.hdr.len = 6;
drivers/tty/hvc/hvsi.c
691
packet.verb = cpu_to_be16(VSV_CLOSE_PROTOCOL);
drivers/tty/hvc/hvsi.c
693
pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len);
drivers/tty/hvc/hvsi.c
694
dbg_dump_hex((uint8_t*)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
696
hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi_lib.c
10
static int hvsi_send_packet(struct hvsi_priv *pv, struct hvsi_header *packet)
drivers/tty/hvc/hvsi_lib.c
12
packet->seqno = cpu_to_be16(atomic_inc_return(&pv->seqno));
drivers/tty/hvc/hvsi_lib.c
15
return pv->put_chars(pv->termno, (u8 *)packet, packet->len);
drivers/tty/ipwireless/hardware.c
1238
struct ipw_tx_packet *packet)
drivers/tty/ipwireless/hardware.c
1243
list_add_tail(&packet->queue, &hw->tx_queue[priority]);
drivers/tty/ipwireless/hardware.c
1255
struct ipw_tx_packet *packet = kzalloc(
drivers/tty/ipwireless/hardware.c
1259
if (!packet)
drivers/tty/ipwireless/hardware.c
1262
INIT_LIST_HEAD(&packet->queue);
drivers/tty/ipwireless/hardware.c
1263
packet->dest_addr = dest_addr;
drivers/tty/ipwireless/hardware.c
1264
packet->protocol = protocol;
drivers/tty/ipwireless/hardware.c
1265
packet->length = data_size;
drivers/tty/ipwireless/hardware.c
1267
return packet;
drivers/tty/ipwireless/hardware.c
1280
struct ipw_control_packet *packet = kzalloc(header_size, GFP_ATOMIC);
drivers/tty/ipwireless/hardware.c
1282
if (!packet)
drivers/tty/ipwireless/hardware.c
1285
INIT_LIST_HEAD(&packet->header.queue);
drivers/tty/ipwireless/hardware.c
1286
packet->header.dest_addr = dest_addr;
drivers/tty/ipwireless/hardware.c
1287
packet->header.protocol = protocol;
drivers/tty/ipwireless/hardware.c
1288
packet->header.length = header_size - sizeof(struct ipw_tx_packet);
drivers/tty/ipwireless/hardware.c
1289
packet->body.sig_no = sig_no;
drivers/tty/ipwireless/hardware.c
1291
return packet;
drivers/tty/ipwireless/hardware.c
1299
struct ipw_tx_packet *packet;
drivers/tty/ipwireless/hardware.c
1301
packet = alloc_data_packet(length, (channel_idx + 1),
drivers/tty/ipwireless/hardware.c
1303
if (!packet)
drivers/tty/ipwireless/hardware.c
1305
packet->packet_callback = callback;
drivers/tty/ipwireless/hardware.c
1306
packet->callback_data = callback_data;
drivers/tty/ipwireless/hardware.c
1307
memcpy((unsigned char *) packet + sizeof(struct ipw_tx_packet), data,
drivers/tty/ipwireless/hardware.c
1310
send_packet(hw, PRIO_DATA, packet);
drivers/tty/ipwireless/hardware.c
1317
struct ipw_control_packet *packet;
drivers/tty/ipwireless/hardware.c
1323
packet = alloc_ctrl_packet(sizeof(struct ipw_control_packet),
drivers/tty/ipwireless/hardware.c
1325
if (!packet)
drivers/tty/ipwireless/hardware.c
1327
packet->header.length = sizeof(struct ipw_control_packet_body);
drivers/tty/ipwireless/hardware.c
1328
packet->body.value = (state == 0 ? 0 : 1);
drivers/tty/ipwireless/hardware.c
1329
send_packet(hw, prio, &packet->header);
drivers/tty/ipwireless/hardware.c
1570
struct ipw_setup_reboot_msg_ack *packet;
drivers/tty/ipwireless/hardware.c
1574
packet = alloc_ctrl_packet(
drivers/tty/ipwireless/hardware.c
1578
if (!packet) {
drivers/tty/ipwireless/hardware.c
1583
packet->header.length =
drivers/tty/ipwireless/hardware.c
1585
send_packet(hw, PRIO_SETUP, &packet->header);
drivers/tty/ipwireless/hardware.c
459
static void do_send_packet(struct ipw_hardware *hw, struct ipw_tx_packet *packet)
drivers/tty/ipwireless/hardware.c
462
unsigned short data_left = packet->length - packet->offset;
drivers/tty/ipwireless/hardware.c
467
(packet->fragment_count == 0)
drivers/tty/ipwireless/hardware.c
478
pkt.hdr_first.protocol = packet->protocol;
drivers/tty/ipwireless/hardware.c
479
pkt.hdr_first.address = packet->dest_addr;
drivers/tty/ipwireless/hardware.c
483
if (packet->fragment_count == 0) {
drivers/tty/ipwireless/hardware.c
485
pkt.hdr_first.length_lsb = (unsigned char) packet->length;
drivers/tty/ipwireless/hardware.c
487
(unsigned char) (packet->length >> 8);
drivers/tty/ipwireless/hardware.c
491
((unsigned char *) packet) + sizeof(struct ipw_tx_packet) +
drivers/tty/ipwireless/hardware.c
492
packet->offset, fragment_data_len);
drivers/tty/ipwireless/hardware.c
493
packet->offset += fragment_data_len;
drivers/tty/ipwireless/hardware.c
494
packet->fragment_count++;
drivers/tty/ipwireless/hardware.c
497
if (packet->offset == packet->length)
drivers/tty/ipwireless/hardware.c
502
if (packet->offset < packet->length) {
drivers/tty/ipwireless/hardware.c
510
list_add(&packet->queue, &hw->tx_queue[0]);
drivers/tty/ipwireless/hardware.c
514
if (packet->packet_callback)
drivers/tty/ipwireless/hardware.c
515
packet->packet_callback(packet->callback_data,
drivers/tty/ipwireless/hardware.c
516
packet->length);
drivers/tty/ipwireless/hardware.c
517
kfree(packet);
drivers/tty/ipwireless/hardware.c
556
struct ipw_rx_packet *packet,
drivers/tty/ipwireless/hardware.c
560
if (!packet) {
drivers/tty/ipwireless/hardware.c
565
packet = list_first_entry(&hw->rx_pool,
drivers/tty/ipwireless/hardware.c
569
list_del(&packet->queue);
drivers/tty/ipwireless/hardware.c
580
packet = kmalloc(sizeof(struct ipw_rx_packet)
drivers/tty/ipwireless/hardware.c
582
if (!packet)
drivers/tty/ipwireless/hardware.c
584
packet->capacity = new_capacity;
drivers/tty/ipwireless/hardware.c
586
packet->length = 0;
drivers/tty/ipwireless/hardware.c
589
if (packet->length + minimum_free_space > packet->capacity) {
drivers/tty/ipwireless/hardware.c
590
struct ipw_rx_packet *old_packet = packet;
drivers/tty/ipwireless/hardware.c
592
packet = kmalloc(sizeof(struct ipw_rx_packet) +
drivers/tty/ipwireless/hardware.c
595
if (!packet) {
drivers/tty/ipwireless/hardware.c
599
memcpy(packet, old_packet,
drivers/tty/ipwireless/hardware.c
602
packet->capacity = old_packet->length + minimum_free_space;
drivers/tty/ipwireless/hardware.c
606
return packet;
drivers/tty/ipwireless/hardware.c
609
static void pool_free(struct ipw_hardware *hw, struct ipw_rx_packet *packet)
drivers/tty/ipwireless/hardware.c
612
kfree(packet);
drivers/tty/ipwireless/hardware.c
615
list_add(&packet->queue, &hw->rx_pool);
drivers/tty/ipwireless/hardware.c
626
struct ipw_rx_packet *packet = NULL;
drivers/tty/ipwireless/hardware.c
662
packet = *assem;
drivers/tty/ipwireless/hardware.c
666
hw->rx_bytes_queued += packet->length;
drivers/tty/ipwireless/hardware.c
671
packet = pool_allocate(hw, NULL, length);
drivers/tty/ipwireless/hardware.c
672
if (!packet) {
drivers/tty/ipwireless/hardware.c
677
packet->protocol = protocol;
drivers/tty/ipwireless/hardware.c
678
packet->channel_idx = channel_idx;
drivers/tty/ipwireless/hardware.c
679
memcpy((unsigned char *)packet + sizeof(struct ipw_rx_packet),
drivers/tty/ipwireless/hardware.c
681
packet->length = length;
drivers/tty/ipwireless/hardware.c
688
if (packet) {
drivers/tty/ipwireless/hardware.c
690
list_add_tail(&packet->queue, &hw->rx_queue);
drivers/tty/ipwireless/hardware.c
711
struct ipw_rx_packet *packet =
drivers/tty/ipwireless/hardware.c
717
list_del(&packet->queue);
drivers/tty/ipwireless/hardware.c
724
if (packet->protocol == TL_PROTOCOLID_COM_DATA) {
drivers/tty/ipwireless/hardware.c
734
packet->channel_idx,
drivers/tty/ipwireless/hardware.c
735
(unsigned char *)packet
drivers/tty/ipwireless/hardware.c
737
packet->length);
drivers/tty/ipwireless/hardware.c
741
hw->rx_bytes_queued -= packet->length;
drivers/tty/ipwireless/hardware.c
747
handle_received_CTRL_packet(hw, packet->channel_idx,
drivers/tty/ipwireless/hardware.c
748
(unsigned char *)packet
drivers/tty/ipwireless/hardware.c
750
packet->length);
drivers/tty/ipwireless/hardware.c
752
pool_free(hw, packet);
drivers/tty/ipwireless/hardware.c
812
const union nl_packet *packet,
drivers/tty/ipwireless/hardware.c
815
unsigned int protocol = packet->hdr.protocol;
drivers/tty/ipwireless/hardware.c
816
unsigned int address = packet->hdr.address;
drivers/tty/ipwireless/hardware.c
820
int is_last = packet->hdr.packet_rank & NL_LAST_PACKET;
drivers/tty/ipwireless/hardware.c
822
if (packet->hdr.packet_rank & NL_FIRST_PACKET)
drivers/tty/ipwireless/hardware.c
827
data = packet->rawpkt + header_length;
drivers/tty/ipwireless/hardware.c
963
struct ipw_tx_packet *packet = NULL;
drivers/tty/ipwireless/hardware.c
968
packet = list_first_entry(
drivers/tty/ipwireless/hardware.c
974
list_del(&packet->queue);
drivers/tty/ipwireless/hardware.c
979
if (!packet) {
drivers/tty/ipwireless/hardware.c
988
do_send_packet(hw, packet);
drivers/tty/n_tty.c
2193
bool packet;
drivers/tty/n_tty.c
2229
packet = tty->ctrl.packet;
drivers/tty/n_tty.c
2235
if (packet && tty->link->ctrl.pktstatus) {
drivers/tty/n_tty.c
2268
if (packet && kb == kbuf) {
drivers/tty/n_tty.c
2447
if (tty->ctrl.packet && tty->link->ctrl.pktstatus)
drivers/tty/n_tty.c
327
if (tty->link->ctrl.packet) {
drivers/tty/pty.c
165
tty->ctrl.packet = false;
drivers/tty/pty.c
169
if (tty->ctrl.packet)
drivers/tty/pty.c
174
tty->ctrl.packet = true;
drivers/tty/pty.c
182
int pktmode = tty->ctrl.packet;
drivers/tty/pty.c
212
if (to->ctrl.packet) {
drivers/tty/pty.c
245
if (tty->link && tty->link->ctrl.packet) {
drivers/tty/pty.c
322
if (!tty->link || !tty->link->ctrl.packet)
drivers/tty/pty.c
334
if (!tty->link || !tty->link->ctrl.packet)
drivers/tty/pty.c
61
tty->ctrl.packet = false;
drivers/usb/fotg210/fotg210-hcd.c
4010
iso_sched = kzalloc_flex(*iso_sched, packet, packets, mem_flags);
drivers/usb/fotg210/fotg210-hcd.c
4031
struct fotg210_iso_packet *uframe = &iso_sched->packet[i];
drivers/usb/fotg210/fotg210-hcd.c
4296
struct fotg210_iso_packet *uf = &iso_sched->packet[index];
drivers/usb/fotg210/fotg210-hcd.c
4347
int packet;
drivers/usb/fotg210/fotg210-hcd.c
4366
for (packet = 0, itd = NULL; packet < urb->number_of_packets;) {
drivers/usb/fotg210/fotg210-hcd.c
4383
itd_patch(fotg210, itd, iso_sched, packet, uframe);
drivers/usb/fotg210/fotg210-hcd.c
4387
packet++;
drivers/usb/fotg210/fotg210-hcd.c
4391
|| packet == urb->number_of_packets) {
drivers/usb/fotg210/fotg210-hcd.h
491
struct fotg210_iso_packet packet[];
drivers/usb/gadget/function/u_serial.c
210
gs_send_packet(struct gs_port *port, char *packet, unsigned size)
drivers/usb/gadget/function/u_serial.c
218
size = kfifo_out(&port->port_write_buf, packet, size);
drivers/usb/gadget/function/u_serial.c
403
char *packet = req->buf;
drivers/usb/gadget/function/u_serial.c
411
packet += n;
drivers/usb/gadget/function/u_serial.c
416
count = tty_insert_flip_string(&port->port, packet,
drivers/usb/host/ehci-sched.c
1169
iso_sched = kzalloc_flex(*iso_sched, packet, packets, mem_flags);
drivers/usb/host/ehci-sched.c
1194
struct ehci_iso_packet *uframe = &iso_sched->packet[i];
drivers/usb/host/ehci-sched.c
1690
struct ehci_iso_packet *uf = &iso_sched->packet[index];
drivers/usb/host/ehci-sched.c
1747
int packet;
drivers/usb/host/ehci-sched.c
1766
for (packet = iso_sched->first_packet, itd = NULL;
drivers/usb/host/ehci-sched.c
1767
packet < urb->number_of_packets;) {
drivers/usb/host/ehci-sched.c
1785
itd_patch(ehci, itd, iso_sched, packet, uframe);
drivers/usb/host/ehci-sched.c
1789
packet++;
drivers/usb/host/ehci-sched.c
1793
|| packet == urb->number_of_packets) {
drivers/usb/host/ehci-sched.c
1999
struct ehci_iso_packet *packet = &iso_sched->packet[i];
drivers/usb/host/ehci-sched.c
2012
packet->transaction = cpu_to_hc32(ehci, trans);
drivers/usb/host/ehci-sched.c
2015
packet->bufp = buf;
drivers/usb/host/ehci-sched.c
2016
packet->buf1 = (buf + length) & ~0x0fff;
drivers/usb/host/ehci-sched.c
2017
if (packet->buf1 != (buf & ~(u64)0x0fff))
drivers/usb/host/ehci-sched.c
2018
packet->cross = 1;
drivers/usb/host/ehci-sched.c
2026
packet->buf1 |= length;
drivers/usb/host/ehci-sched.c
2108
struct ehci_iso_packet *uf = &iso_sched->packet[index];
drivers/usb/host/ehci-sched.c
2148
int packet;
drivers/usb/host/ehci-sched.c
2168
for (packet = sched->first_packet, sitd = NULL;
drivers/usb/host/ehci-sched.c
2169
packet < urb->number_of_packets;
drivers/usb/host/ehci-sched.c
2170
packet++) {
drivers/usb/host/ehci-sched.c
2183
sitd_patch(ehci, stream, sitd, sched, packet);
drivers/usb/host/ehci.h
473
struct ehci_iso_packet packet[];
drivers/usb/host/fhci-sched.c
137
struct packet *pkt = td->pkt;
drivers/usb/host/fhci-sched.c
158
struct packet *pkt;
drivers/usb/host/fhci-sched.c
28
static void recycle_frame(struct fhci_usb *usb, struct packet *pkt)
drivers/usb/host/fhci-sched.c
40
void fhci_transaction_confirm(struct fhci_usb *usb, struct packet *pkt)
drivers/usb/host/fhci-sched.c
43
struct packet *td_pkt;
drivers/usb/host/fhci-tds.c
108
struct packet *pkt = cq_get(&ep->conf_frame_Q);
drivers/usb/host/fhci-tds.c
118
struct packet *pkt = cq_get(&ep->empty_frame_Q);
drivers/usb/host/fhci-tds.c
183
struct packet *pkt;
drivers/usb/host/fhci-tds.c
280
struct packet *pkt;
drivers/usb/host/fhci-tds.c
378
struct packet *pkt,
drivers/usb/host/fhci.h
355
struct packet *pkt;
drivers/usb/host/fhci.h
537
u32 fhci_host_transaction(struct fhci_usb *usb, struct packet *pkt,
drivers/usb/host/fhci.h
553
void fhci_transaction_confirm(struct fhci_usb *usb, struct packet *pkt);
drivers/usb/host/xhci-dbgtty.c
137
char *packet = req->buf;
drivers/usb/host/xhci-dbgtty.c
147
packet += n;
drivers/usb/host/xhci-dbgtty.c
151
count = tty_insert_flip_string(&port->port, packet, size);
drivers/usb/host/xhci-dbgtty.c
28
dbc_kfifo_to_req(struct dbc_port *port, char *packet)
drivers/usb/host/xhci-dbgtty.c
42
len = kfifo_out(&port->port.xmit_fifo, packet, len);
drivers/usb/misc/sisusbvga/sisusb.h
162
#define CLEARPACKET(packet) memset(packet, 0, 10)
drivers/usb/misc/sisusbvga/sisusbvga.c
1000
*data |= (u16)(packet.data << 8);
drivers/usb/misc/sisusbvga/sisusbvga.c
1009
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
1012
packet.address = addr & ~3;
drivers/usb/misc/sisusbvga/sisusbvga.c
1016
packet.header = (type << 6) | 0x0007;
drivers/usb/misc/sisusbvga/sisusbvga.c
1017
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1018
*data = packet.data & 0x00ffffff;
drivers/usb/misc/sisusbvga/sisusbvga.c
1021
packet.header = (type << 6) | 0x000e;
drivers/usb/misc/sisusbvga/sisusbvga.c
1022
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1023
*data = packet.data >> 8;
drivers/usb/misc/sisusbvga/sisusbvga.c
1026
packet.header = (type << 6) | 0x000c;
drivers/usb/misc/sisusbvga/sisusbvga.c
1027
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1028
*data = packet.data >> 16;
drivers/usb/misc/sisusbvga/sisusbvga.c
1029
packet.header = (type << 6) | 0x0001;
drivers/usb/misc/sisusbvga/sisusbvga.c
1030
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
1031
ret |= sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1032
*data |= ((packet.data & 0xff) << 16);
drivers/usb/misc/sisusbvga/sisusbvga.c
1035
packet.header = (type << 6) | 0x0008;
drivers/usb/misc/sisusbvga/sisusbvga.c
1036
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1037
*data = packet.data >> 24;
drivers/usb/misc/sisusbvga/sisusbvga.c
1038
packet.header = (type << 6) | 0x0003;
drivers/usb/misc/sisusbvga/sisusbvga.c
1039
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
1040
ret |= sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1041
*data |= ((packet.data & 0xffff) << 8);
drivers/usb/misc/sisusbvga/sisusbvga.c
1050
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
1053
packet.address = addr & ~3;
drivers/usb/misc/sisusbvga/sisusbvga.c
1057
packet.header = (type << 6) | 0x000f;
drivers/usb/misc/sisusbvga/sisusbvga.c
1058
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1059
*data = packet.data;
drivers/usb/misc/sisusbvga/sisusbvga.c
1062
packet.header = (type << 6) | 0x000e;
drivers/usb/misc/sisusbvga/sisusbvga.c
1063
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1064
*data = packet.data >> 8;
drivers/usb/misc/sisusbvga/sisusbvga.c
1065
packet.header = (type << 6) | 0x0001;
drivers/usb/misc/sisusbvga/sisusbvga.c
1066
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
1067
ret |= sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1068
*data |= (packet.data << 24);
drivers/usb/misc/sisusbvga/sisusbvga.c
1071
packet.header = (type << 6) | 0x000c;
drivers/usb/misc/sisusbvga/sisusbvga.c
1072
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1073
*data = packet.data >> 16;
drivers/usb/misc/sisusbvga/sisusbvga.c
1074
packet.header = (type << 6) | 0x0003;
drivers/usb/misc/sisusbvga/sisusbvga.c
1075
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
1076
ret |= sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1077
*data |= (packet.data << 16);
drivers/usb/misc/sisusbvga/sisusbvga.c
1080
packet.header = (type << 6) | 0x0008;
drivers/usb/misc/sisusbvga/sisusbvga.c
1081
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1082
*data = packet.data >> 24;
drivers/usb/misc/sisusbvga/sisusbvga.c
1083
packet.header = (type << 6) | 0x0007;
drivers/usb/misc/sisusbvga/sisusbvga.c
1084
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
1085
ret |= sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1086
*data |= (packet.data << 8);
drivers/usb/misc/sisusbvga/sisusbvga.c
1276
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
1278
packet.header = 0x008f;
drivers/usb/misc/sisusbvga/sisusbvga.c
1279
packet.address = regnum | 0x10000;
drivers/usb/misc/sisusbvga/sisusbvga.c
1280
packet.data = data;
drivers/usb/misc/sisusbvga/sisusbvga.c
1281
return sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1287
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
1290
packet.header = 0x008f;
drivers/usb/misc/sisusbvga/sisusbvga.c
1291
packet.address = (u32)regnum | 0x10000;
drivers/usb/misc/sisusbvga/sisusbvga.c
1292
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
1293
*data = packet.data;
drivers/usb/misc/sisusbvga/sisusbvga.c
2069
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
2074
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
2075
packet.address = 0x00000324;
drivers/usb/misc/sisusbvga/sisusbvga.c
2076
packet.data = 0x00000004;
drivers/usb/misc/sisusbvga/sisusbvga.c
2077
ret = sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
2079
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
2080
packet.address = 0x00000364;
drivers/usb/misc/sisusbvga/sisusbvga.c
2081
packet.data = 0x00000004;
drivers/usb/misc/sisusbvga/sisusbvga.c
2082
ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
2084
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
2085
packet.address = 0x00000384;
drivers/usb/misc/sisusbvga/sisusbvga.c
2086
packet.data = 0x00000004;
drivers/usb/misc/sisusbvga/sisusbvga.c
2087
ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
2089
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
2090
packet.address = 0x00000100;
drivers/usb/misc/sisusbvga/sisusbvga.c
2091
packet.data = 0x00000700;
drivers/usb/misc/sisusbvga/sisusbvga.c
2092
ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
2094
packet.header = 0x000f;
drivers/usb/misc/sisusbvga/sisusbvga.c
2095
packet.address = 0x00000004;
drivers/usb/misc/sisusbvga/sisusbvga.c
2096
ret |= sisusb_send_bridge_packet(sisusb, 6, &packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
2097
packet.data |= 0x17;
drivers/usb/misc/sisusbvga/sisusbvga.c
2098
ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
2131
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
2132
packet.address = 0x00000050;
drivers/usb/misc/sisusbvga/sisusbvga.c
2133
packet.data = 0x000000ff;
drivers/usb/misc/sisusbvga/sisusbvga.c
2134
ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
513
struct sisusb_packet *packet)
drivers/usb/misc/sisusbvga/sisusbvga.c
520
packet->data = 0;
drivers/usb/misc/sisusbvga/sisusbvga.c
528
SISUSB_CORRECT_ENDIANNESS_PACKET(packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
532
(char *)packet, NULL, 0, &bytes_transferred, 0, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
542
packet->data = le32_to_cpu(tmp);
drivers/usb/misc/sisusbvga/sisusbvga.c
549
struct sisusb_packet *packet, unsigned int tflags)
drivers/usb/misc/sisusbvga/sisusbvga.c
556
packet->data = 0;
drivers/usb/misc/sisusbvga/sisusbvga.c
564
SISUSB_CORRECT_ENDIANNESS_PACKET(packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
568
(char *)packet, NULL, 0, &bytes_transferred, tflags, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
578
packet->data = le32_to_cpu(tmp);
drivers/usb/misc/sisusbvga/sisusbvga.c
599
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
601
packet.header = (1 << (addr & 3)) | (type << 6);
drivers/usb/misc/sisusbvga/sisusbvga.c
602
packet.address = addr & ~3;
drivers/usb/misc/sisusbvga/sisusbvga.c
603
packet.data = data << ((addr & 3) << 3);
drivers/usb/misc/sisusbvga/sisusbvga.c
604
return sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
610
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
613
packet.address = addr & ~3;
drivers/usb/misc/sisusbvga/sisusbvga.c
617
packet.header = (type << 6) | 0x0003;
drivers/usb/misc/sisusbvga/sisusbvga.c
618
packet.data = (u32)data;
drivers/usb/misc/sisusbvga/sisusbvga.c
619
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
622
packet.header = (type << 6) | 0x0006;
drivers/usb/misc/sisusbvga/sisusbvga.c
623
packet.data = (u32)data << 8;
drivers/usb/misc/sisusbvga/sisusbvga.c
624
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
627
packet.header = (type << 6) | 0x000c;
drivers/usb/misc/sisusbvga/sisusbvga.c
628
packet.data = (u32)data << 16;
drivers/usb/misc/sisusbvga/sisusbvga.c
629
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
632
packet.header = (type << 6) | 0x0008;
drivers/usb/misc/sisusbvga/sisusbvga.c
633
packet.data = (u32)data << 24;
drivers/usb/misc/sisusbvga/sisusbvga.c
634
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
635
packet.header = (type << 6) | 0x0001;
drivers/usb/misc/sisusbvga/sisusbvga.c
636
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
637
packet.data = (u32)data >> 8;
drivers/usb/misc/sisusbvga/sisusbvga.c
638
ret |= sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
647
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
650
packet.address = addr & ~3;
drivers/usb/misc/sisusbvga/sisusbvga.c
654
packet.header = (type << 6) | 0x0007;
drivers/usb/misc/sisusbvga/sisusbvga.c
655
packet.data = data & 0x00ffffff;
drivers/usb/misc/sisusbvga/sisusbvga.c
656
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
659
packet.header = (type << 6) | 0x000e;
drivers/usb/misc/sisusbvga/sisusbvga.c
660
packet.data = data << 8;
drivers/usb/misc/sisusbvga/sisusbvga.c
661
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
664
packet.header = (type << 6) | 0x000c;
drivers/usb/misc/sisusbvga/sisusbvga.c
665
packet.data = data << 16;
drivers/usb/misc/sisusbvga/sisusbvga.c
666
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
667
packet.header = (type << 6) | 0x0001;
drivers/usb/misc/sisusbvga/sisusbvga.c
668
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
669
packet.data = (data >> 16) & 0x00ff;
drivers/usb/misc/sisusbvga/sisusbvga.c
670
ret |= sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
673
packet.header = (type << 6) | 0x0008;
drivers/usb/misc/sisusbvga/sisusbvga.c
674
packet.data = data << 24;
drivers/usb/misc/sisusbvga/sisusbvga.c
675
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
676
packet.header = (type << 6) | 0x0003;
drivers/usb/misc/sisusbvga/sisusbvga.c
677
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
678
packet.data = (data >> 8) & 0xffff;
drivers/usb/misc/sisusbvga/sisusbvga.c
679
ret |= sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
688
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
691
packet.address = addr & ~3;
drivers/usb/misc/sisusbvga/sisusbvga.c
695
packet.header = (type << 6) | 0x000f;
drivers/usb/misc/sisusbvga/sisusbvga.c
696
packet.data = data;
drivers/usb/misc/sisusbvga/sisusbvga.c
697
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
700
packet.header = (type << 6) | 0x000e;
drivers/usb/misc/sisusbvga/sisusbvga.c
701
packet.data = data << 8;
drivers/usb/misc/sisusbvga/sisusbvga.c
702
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
703
packet.header = (type << 6) | 0x0001;
drivers/usb/misc/sisusbvga/sisusbvga.c
704
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
705
packet.data = data >> 24;
drivers/usb/misc/sisusbvga/sisusbvga.c
706
ret |= sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
709
packet.header = (type << 6) | 0x000c;
drivers/usb/misc/sisusbvga/sisusbvga.c
710
packet.data = data << 16;
drivers/usb/misc/sisusbvga/sisusbvga.c
711
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
712
packet.header = (type << 6) | 0x0003;
drivers/usb/misc/sisusbvga/sisusbvga.c
713
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
714
packet.data = data >> 16;
drivers/usb/misc/sisusbvga/sisusbvga.c
715
ret |= sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
718
packet.header = (type << 6) | 0x0008;
drivers/usb/misc/sisusbvga/sisusbvga.c
719
packet.data = data << 24;
drivers/usb/misc/sisusbvga/sisusbvga.c
720
ret = sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
721
packet.header = (type << 6) | 0x0007;
drivers/usb/misc/sisusbvga/sisusbvga.c
722
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
723
packet.data = data >> 8;
drivers/usb/misc/sisusbvga/sisusbvga.c
724
ret |= sisusb_send_packet(sisusb, 10, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
744
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
843
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
844
packet.address = 0x000001d4;
drivers/usb/misc/sisusbvga/sisusbvga.c
845
packet.data = addr;
drivers/usb/misc/sisusbvga/sisusbvga.c
847
&packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
848
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
849
packet.address = 0x000001d0;
drivers/usb/misc/sisusbvga/sisusbvga.c
850
packet.data = (length & ~3);
drivers/usb/misc/sisusbvga/sisusbvga.c
852
&packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
853
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
854
packet.address = 0x000001c0;
drivers/usb/misc/sisusbvga/sisusbvga.c
855
packet.data = flag | 0x16;
drivers/usb/misc/sisusbvga/sisusbvga.c
857
&packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
884
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
885
packet.address = 0x00000194;
drivers/usb/misc/sisusbvga/sisusbvga.c
886
packet.data = addr;
drivers/usb/misc/sisusbvga/sisusbvga.c
888
&packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
889
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
890
packet.address = 0x00000190;
drivers/usb/misc/sisusbvga/sisusbvga.c
891
packet.data = (length & ~3);
drivers/usb/misc/sisusbvga/sisusbvga.c
893
&packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
895
packet.header = 0x001f;
drivers/usb/misc/sisusbvga/sisusbvga.c
896
packet.address = 0x00000180;
drivers/usb/misc/sisusbvga/sisusbvga.c
897
packet.data = flag | 0x16;
drivers/usb/misc/sisusbvga/sisusbvga.c
899
10, &packet, 0);
drivers/usb/misc/sisusbvga/sisusbvga.c
956
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
959
CLEARPACKET(&packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
960
packet.header = (1 << (addr & 3)) | (type << 6);
drivers/usb/misc/sisusbvga/sisusbvga.c
961
packet.address = addr & ~3;
drivers/usb/misc/sisusbvga/sisusbvga.c
962
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
963
*data = (u8)(packet.data >> ((addr & 3) << 3));
drivers/usb/misc/sisusbvga/sisusbvga.c
970
struct sisusb_packet packet;
drivers/usb/misc/sisusbvga/sisusbvga.c
973
CLEARPACKET(&packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
975
packet.address = addr & ~3;
drivers/usb/misc/sisusbvga/sisusbvga.c
979
packet.header = (type << 6) | 0x0003;
drivers/usb/misc/sisusbvga/sisusbvga.c
980
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
981
*data = (u16)(packet.data);
drivers/usb/misc/sisusbvga/sisusbvga.c
984
packet.header = (type << 6) | 0x0006;
drivers/usb/misc/sisusbvga/sisusbvga.c
985
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
986
*data = (u16)(packet.data >> 8);
drivers/usb/misc/sisusbvga/sisusbvga.c
989
packet.header = (type << 6) | 0x000c;
drivers/usb/misc/sisusbvga/sisusbvga.c
990
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
991
*data = (u16)(packet.data >> 16);
drivers/usb/misc/sisusbvga/sisusbvga.c
994
packet.header = (type << 6) | 0x0008;
drivers/usb/misc/sisusbvga/sisusbvga.c
995
ret = sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/misc/sisusbvga/sisusbvga.c
996
*data = (u16)(packet.data >> 24);
drivers/usb/misc/sisusbvga/sisusbvga.c
997
packet.header = (type << 6) | 0x0001;
drivers/usb/misc/sisusbvga/sisusbvga.c
998
packet.address = (addr & ~3) + 4;
drivers/usb/misc/sisusbvga/sisusbvga.c
999
ret |= sisusb_send_packet(sisusb, 6, &packet);
drivers/usb/serial/aircable.c
101
int has_headers, char *packet, int len)
drivers/usb/serial/aircable.c
105
packet += HCI_HEADER_LENGTH;
drivers/usb/serial/aircable.c
112
tty_insert_flip_string(&port->port, packet, len);
drivers/usb/serial/ssu100.c
467
char *packet = urb->transfer_buffer;
drivers/usb/serial/ssu100.c
474
(packet[0] == 0x1b) && (packet[1] == 0x1b) &&
drivers/usb/serial/ssu100.c
475
((packet[2] == 0x00) || (packet[2] == 0x01))) {
drivers/usb/serial/ssu100.c
476
if (packet[2] == 0x00)
drivers/usb/serial/ssu100.c
477
ssu100_update_lsr(port, packet[3], &flag);
drivers/usb/serial/ssu100.c
478
if (packet[2] == 0x01)
drivers/usb/serial/ssu100.c
479
ssu100_update_msr(port, packet[3]);
drivers/usb/serial/ssu100.c
482
ch = packet + 4;
drivers/usb/serial/ssu100.c
484
ch = packet;
drivers/w1/w1_netlink.c
197
DEFINE_RAW_FLEX(struct cn_msg, packet, data,
drivers/w1/w1_netlink.c
199
struct w1_netlink_msg *pkt_msg = (struct w1_netlink_msg *)packet->data;
drivers/w1/w1_netlink.c
201
*packet = *cn;
drivers/w1/w1_netlink.c
203
packet->len = sizeof(*pkt_msg);
drivers/w1/w1_netlink.c
206
cn_netlink_send(packet, portid, 0, GFP_KERNEL);
drivers/w1/w1_netlink.c
218
DEFINE_RAW_FLEX(struct cn_msg, packet, data,
drivers/w1/w1_netlink.c
220
struct w1_netlink_msg *pkt_msg = (struct w1_netlink_msg *)packet->data;
drivers/w1/w1_netlink.c
222
packet->id.idx = CN_W1_IDX;
drivers/w1/w1_netlink.c
223
packet->id.val = CN_W1_VAL;
drivers/w1/w1_netlink.c
225
packet->seq = dev->seq++;
drivers/w1/w1_netlink.c
226
packet->len = sizeof(*msg);
drivers/w1/w1_netlink.c
231
cn_netlink_send(packet, 0, 0, GFP_KERNEL);
drivers/watchdog/ziirave_wdt.c
219
u8 i, checksum = 0, packet[ZIIRAVE_FIRM_PKT_TOTAL_SIZE];
drivers/watchdog/ziirave_wdt.c
240
packet[0] = len;
drivers/watchdog/ziirave_wdt.c
242
put_unaligned_le16(addr16, packet + 1);
drivers/watchdog/ziirave_wdt.c
244
memcpy(packet + 3, data, len);
drivers/watchdog/ziirave_wdt.c
245
memset(packet + 3 + len, 0, ZIIRAVE_FIRM_PKT_DATA_SIZE - len);
drivers/watchdog/ziirave_wdt.c
249
checksum += packet[i];
drivers/watchdog/ziirave_wdt.c
250
packet[ZIIRAVE_FIRM_PKT_TOTAL_SIZE - 1] = checksum;
drivers/watchdog/ziirave_wdt.c
253
sizeof(packet), packet);
fs/autofs/waitq.c
137
struct autofs_v5_packet *packet = &pkt.v5_pkt.v5_packet;
fs/autofs/waitq.c
140
pktsz = sizeof(*packet);
fs/autofs/waitq.c
142
packet->wait_queue_token = wq->wait_queue_token;
fs/autofs/waitq.c
143
packet->len = wq->name.len;
fs/autofs/waitq.c
144
memcpy(packet->name, wq->name.name, wq->name.len);
fs/autofs/waitq.c
145
packet->name[wq->name.len] = '\0';
fs/autofs/waitq.c
146
packet->dev = wq->dev;
fs/autofs/waitq.c
147
packet->ino = wq->ino;
fs/autofs/waitq.c
148
packet->uid = from_kuid_munged(user_ns, wq->uid);
fs/autofs/waitq.c
149
packet->gid = from_kgid_munged(user_ns, wq->gid);
fs/autofs/waitq.c
150
packet->pid = wq->pid;
fs/autofs/waitq.c
151
packet->tgid = wq->tgid;
fs/ecryptfs/keystore.c
144
char **packet, size_t *packet_len)
fs/ecryptfs/keystore.c
162
*packet = kmalloc(data_len, GFP_KERNEL);
fs/ecryptfs/keystore.c
163
message = *packet;
fs/ecryptfs/keystore.c
285
struct ecryptfs_crypt_stat *crypt_stat, char **packet,
fs/ecryptfs/keystore.c
307
*packet = kmalloc(data_len, GFP_KERNEL);
fs/ecryptfs/keystore.c
308
message = *packet;
fs/ocfs2/dlm/dlmcommon.h
654
struct dlm_query_join_packet packet;
fs/ocfs2/dlm/dlmdomain.c
1417
struct dlm_query_join_packet packet;
fs/ocfs2/dlm/dlmdomain.c
1440
dlm_query_join_wire_to_packet(join_resp, &packet);
fs/ocfs2/dlm/dlmdomain.c
1450
*response = packet.code;
fs/ocfs2/dlm/dlmdomain.c
1451
switch (packet.code) {
fs/ocfs2/dlm/dlmdomain.c
1470
dlm->dlm_locking_proto.pv_minor = packet.dlm_minor;
fs/ocfs2/dlm/dlmdomain.c
1471
dlm->fs_locking_proto.pv_minor = packet.fs_minor;
fs/ocfs2/dlm/dlmdomain.c
1484
packet.code, node);
fs/ocfs2/dlm/dlmdomain.c
771
static void dlm_query_join_packet_to_wire(struct dlm_query_join_packet *packet,
fs/ocfs2/dlm/dlmdomain.c
776
response.packet = *packet;
fs/ocfs2/dlm/dlmdomain.c
781
struct dlm_query_join_packet *packet)
fs/ocfs2/dlm/dlmdomain.c
786
*packet = response.packet;
fs/ocfs2/dlm/dlmdomain.c
793
struct dlm_query_join_packet packet = {
fs/ocfs2/dlm/dlmdomain.c
814
packet.code = JOIN_DISALLOW;
fs/ocfs2/dlm/dlmdomain.c
818
packet.code = JOIN_OK_NO_MAP;
fs/ocfs2/dlm/dlmdomain.c
837
packet.code = JOIN_DISALLOW;
fs/ocfs2/dlm/dlmdomain.c
857
packet.code = JOIN_OK_NO_MAP;
fs/ocfs2/dlm/dlmdomain.c
860
packet.code = JOIN_DISALLOW;
fs/ocfs2/dlm/dlmdomain.c
864
packet.code = JOIN_DISALLOW;
fs/ocfs2/dlm/dlmdomain.c
868
packet.code = JOIN_DISALLOW;
fs/ocfs2/dlm/dlmdomain.c
873
packet.code = JOIN_DISALLOW;
fs/ocfs2/dlm/dlmdomain.c
884
packet.code = JOIN_PROTOCOL_MISMATCH;
fs/ocfs2/dlm/dlmdomain.c
888
packet.code = JOIN_PROTOCOL_MISMATCH;
fs/ocfs2/dlm/dlmdomain.c
890
packet.dlm_minor = query->dlm_proto.pv_minor;
fs/ocfs2/dlm/dlmdomain.c
891
packet.fs_minor = query->fs_proto.pv_minor;
fs/ocfs2/dlm/dlmdomain.c
892
packet.code = JOIN_OK;
fs/ocfs2/dlm/dlmdomain.c
903
mlog(0, "We respond with %u\n", packet.code);
fs/ocfs2/dlm/dlmdomain.c
905
dlm_query_join_packet_to_wire(&packet, &response);
fs/smb/client/smbdirect.c
1098
struct smbdirect_negotiate_req *packet;
fs/smb/client/smbdirect.c
1104
packet = smbdirect_send_io_payload(request);
fs/smb/client/smbdirect.c
1105
packet->min_version = cpu_to_le16(SMBDIRECT_V1);
fs/smb/client/smbdirect.c
1106
packet->max_version = cpu_to_le16(SMBDIRECT_V1);
fs/smb/client/smbdirect.c
1107
packet->reserved = 0;
fs/smb/client/smbdirect.c
1108
packet->credits_requested = cpu_to_le16(sp->send_credit_target);
fs/smb/client/smbdirect.c
1109
packet->preferred_send_size = cpu_to_le32(sp->max_send_size);
fs/smb/client/smbdirect.c
1110
packet->max_receive_size = cpu_to_le32(sp->max_recv_size);
fs/smb/client/smbdirect.c
1111
packet->max_fragmented_size =
fs/smb/client/smbdirect.c
1115
sc->ib.dev, (void *)packet,
fs/smb/client/smbdirect.c
1116
sizeof(*packet), DMA_TO_DEVICE);
fs/smb/client/smbdirect.c
1123
request->sge[0].length = sizeof(*packet);
fs/smb/client/smbdirect.c
1426
struct smbdirect_data_transfer *packet;
fs/smb/client/smbdirect.c
1490
packet = smbdirect_send_io_payload(request);
fs/smb/client/smbdirect.c
1492
(void *)packet,
fs/smb/client/smbdirect.c
1515
sp->max_send_size - sizeof(*packet));
fs/smb/client/smbdirect.c
1529
packet->credits_requested = cpu_to_le16(sp->send_credit_target);
fs/smb/client/smbdirect.c
1530
packet->credits_granted = cpu_to_le16(new_credits);
fs/smb/client/smbdirect.c
1532
packet->flags = 0;
fs/smb/client/smbdirect.c
1534
packet->flags |= cpu_to_le16(SMBDIRECT_FLAG_RESPONSE_REQUESTED);
fs/smb/client/smbdirect.c
1536
packet->reserved = 0;
fs/smb/client/smbdirect.c
1538
packet->data_offset = 0;
fs/smb/client/smbdirect.c
1540
packet->data_offset = cpu_to_le32(24);
fs/smb/client/smbdirect.c
1541
packet->data_length = cpu_to_le32(data_length);
fs/smb/client/smbdirect.c
1542
packet->remaining_data_length = cpu_to_le32(*_remaining_data_length);
fs/smb/client/smbdirect.c
1543
packet->padding = 0;
fs/smb/client/smbdirect.c
1546
le16_to_cpu(packet->credits_requested),
fs/smb/client/smbdirect.c
1547
le16_to_cpu(packet->credits_granted),
fs/smb/client/smbdirect.c
1548
le32_to_cpu(packet->data_offset),
fs/smb/client/smbdirect.c
1549
le32_to_cpu(packet->data_length),
fs/smb/client/smbdirect.c
1550
le32_to_cpu(packet->remaining_data_length));
fs/smb/client/smbdirect.c
1630
sc->ib.dev, response->packet,
fs/smb/client/smbdirect.c
2048
.useroffset = (offsetof(struct smbdirect_recv_io, packet) +
fs/smb/client/smbdirect.c
507
return (void *)request->packet;
fs/smb/client/smbdirect.c
512
return (void *)response->packet;
fs/smb/client/smbdirect.c
648
struct smbdirect_negotiate_resp *packet = smbdirect_recv_io_payload(response);
fs/smb/client/smbdirect.c
656
if (le16_to_cpu(packet->negotiated_version) != SMBDIRECT_V1) {
fs/smb/client/smbdirect.c
658
le16_to_cpu(packet->negotiated_version));
fs/smb/client/smbdirect.c
662
if (packet->credits_requested == 0) {
fs/smb/client/smbdirect.c
666
sc->recv_io.credits.target = le16_to_cpu(packet->credits_requested);
fs/smb/client/smbdirect.c
669
if (packet->credits_granted == 0) {
fs/smb/client/smbdirect.c
674
atomic_set(&sc->send_io.credits.count, le16_to_cpu(packet->credits_granted));
fs/smb/client/smbdirect.c
676
if (le32_to_cpu(packet->preferred_send_size) > sp->max_recv_size) {
fs/smb/client/smbdirect.c
678
le32_to_cpu(packet->preferred_send_size));
fs/smb/client/smbdirect.c
681
sp->max_recv_size = le32_to_cpu(packet->preferred_send_size);
fs/smb/client/smbdirect.c
683
if (le32_to_cpu(packet->max_receive_size) < SMBD_MIN_RECEIVE_SIZE) {
fs/smb/client/smbdirect.c
685
le32_to_cpu(packet->max_receive_size));
fs/smb/client/smbdirect.c
689
le32_to_cpu(packet->max_receive_size));
fs/smb/client/smbdirect.c
691
if (le32_to_cpu(packet->max_fragmented_size) <
fs/smb/client/smbdirect.c
694
le32_to_cpu(packet->max_fragmented_size));
fs/smb/client/smbdirect.c
698
le32_to_cpu(packet->max_fragmented_size);
fs/smb/client/smbdirect.c
702
le32_to_cpu(packet->max_readwrite_size),
fs/smb/common/smbdirect/smbdirect_socket.h
484
u8 packet[];
fs/smb/common/smbdirect/smbdirect_socket.h
525
u8 packet[];
fs/smb/server/transport_rdma.c
1362
struct smbdirect_data_transfer *packet;
fs/smb/server/transport_rdma.c
1371
packet = (struct smbdirect_data_transfer *)sendmsg->packet;
fs/smb/server/transport_rdma.c
1372
packet->credits_requested = cpu_to_le16(sp->send_credit_target);
fs/smb/server/transport_rdma.c
1373
packet->credits_granted = cpu_to_le16(new_credits);
fs/smb/server/transport_rdma.c
1375
packet->flags = 0;
fs/smb/server/transport_rdma.c
1377
packet->flags |= cpu_to_le16(SMBDIRECT_FLAG_RESPONSE_REQUESTED);
fs/smb/server/transport_rdma.c
1379
packet->reserved = 0;
fs/smb/server/transport_rdma.c
1381
packet->data_offset = 0;
fs/smb/server/transport_rdma.c
1383
packet->data_offset = cpu_to_le32(24);
fs/smb/server/transport_rdma.c
1384
packet->data_length = cpu_to_le32(size);
fs/smb/server/transport_rdma.c
1385
packet->remaining_data_length = cpu_to_le32(remaining_data_length);
fs/smb/server/transport_rdma.c
1386
packet->padding = 0;
fs/smb/server/transport_rdma.c
1390
le16_to_cpu(packet->credits_requested),
fs/smb/server/transport_rdma.c
1391
le16_to_cpu(packet->credits_granted),
fs/smb/server/transport_rdma.c
1392
le32_to_cpu(packet->data_offset),
fs/smb/server/transport_rdma.c
1393
le32_to_cpu(packet->data_length),
fs/smb/server/transport_rdma.c
1394
le32_to_cpu(packet->remaining_data_length));
fs/smb/server/transport_rdma.c
1404
(void *)packet,
fs/smb/server/transport_rdma.c
161
return (void *)recvmsg->packet;
fs/smb/server/transport_rdma.c
2056
resp = (struct smbdirect_negotiate_resp *)sendmsg->packet;
fs/smb/server/transport_rdma.c
2542
req = (struct smbdirect_negotiate_req *)recvmsg->packet;
fs/smb/server/transport_rdma.c
575
(struct smbdirect_data_transfer *)recvmsg->packet;
fs/smb/server/transport_rdma.c
576
struct smb2_hdr *hdr = (struct smb2_hdr *)(recvmsg->packet
fs/smb/server/transport_rdma.c
588
(struct smbdirect_negotiate_req *)recvmsg->packet;
fs/smb/server/transport_rdma.c
659
(struct smbdirect_data_transfer *)recvmsg->packet;
fs/smb/server/transport_rdma.c
872
recvmsg->packet,
fs/udf/partition.c
114
uint32_t packet;
fs/udf/partition.c
119
packet = (block + offset) & ~(sdata->s_packet_len - 1);
fs/udf/partition.c
135
else if (origLoc == packet)
fs/udf/partition.c
139
else if (origLoc > packet)
fs/udf/partition.c
152
uint32_t packet;
fs/udf/partition.c
165
packet = (old_block - map->s_partition_root) &
fs/udf/partition.c
196
cpu_to_le32(packet);
fs/udf/partition.c
211
} else if (origLoc == packet) {
fs/udf/partition.c
219
} else if (origLoc > packet)
fs/udf/partition.c
238
cpu_to_le32(packet);
include/drm/bridge/samsung-dsim.h
45
struct mipi_dsi_packet packet;
include/drm/drm_mipi_dsi.h
64
int mipi_dsi_create_packet(struct mipi_dsi_packet *packet,
include/linux/bnxt/hsi.h
8739
__le64 packet;
include/linux/firewire.h
288
typedef void (*fw_packet_callback_t)(struct fw_packet *packet,
include/linux/firewire.h
354
struct fw_packet packet;
include/linux/firewire.h
571
struct fw_iso_packet *packet,
include/linux/hil_mlc.h
96
hil_packet packet; /* Packet to send or to compare */
include/linux/stm.h
93
ssize_t (*packet)(struct stm_data *, unsigned int,
include/linux/surface_aggregator/serial_hub.h
618
struct ssh_packet packet;
include/linux/surface_aggregator/serial_hub.h
639
return container_of(p, struct ssh_request, packet);
include/linux/surface_aggregator/serial_hub.h
655
return r ? to_ssh_request(ssh_packet_get(&r->packet)) : NULL;
include/linux/surface_aggregator/serial_hub.h
673
ssh_packet_put(&r->packet);
include/linux/surface_aggregator/serial_hub.h
688
ssh_packet_set_data(&r->packet, ptr, len);
include/linux/tty.h
222
bool packet;
include/net/cfg80211.h
3871
const void *packet;
include/net/net_namespace.h
133
struct netns_packet packet;
include/net/sctp/command.h
122
struct sctp_packet *packet;
include/net/sctp/command.h
163
SCTP_ARG_CONSTRUCTOR(PACKET, struct sctp_packet *, packet)
include/net/sctp/structs.h
1041
void sctp_inq_push(struct sctp_inq *, struct sctp_chunk *packet);
include/net/sctp/structs.h
728
enum sctp_xmit sctp_packet_transmit_chunk(struct sctp_packet *packet,
include/net/sctp/structs.h
731
enum sctp_xmit sctp_packet_append_chunk(struct sctp_packet *packet,
include/net/sctp/structs.h
736
static inline int sctp_packet_empty(struct sctp_packet *packet)
include/net/sctp/structs.h
738
return packet->size == packet->overhead;
include/net/sctp/structs.h
941
struct sctp_packet packet;
include/net/selftests.h
25
struct net_packet_attrs *packet;
include/trace/events/firewire.h
221
TP_PROTO(u64 packet, unsigned int card_index, unsigned int generation, u32 first_quadlet, u32 second_quadlet),
include/trace/events/firewire.h
222
TP_ARGS(packet, card_index, generation, first_quadlet, second_quadlet),
include/trace/events/firewire.h
224
__field(u64, packet)
include/trace/events/firewire.h
231
__entry->packet = packet;
include/trace/events/firewire.h
239
__entry->packet,
include/trace/events/firewire.h
248
TP_PROTO(u64 packet, unsigned int card_index, unsigned int generation, unsigned int status, unsigned int timestamp),
include/trace/events/firewire.h
249
TP_ARGS(packet, card_index, generation, status, timestamp),
include/trace/events/firewire.h
251
__field(u64, packet)
include/trace/events/firewire.h
258
__entry->packet = packet;
include/trace/events/firewire.h
266
__entry->packet,
include/trace/events/firewire.h
275
TP_PROTO(u64 packet, unsigned int card_index, unsigned int generation, unsigned int status, unsigned int timestamp, u32 first_quadlet, u32 second_quadlet),
include/trace/events/firewire.h
276
TP_ARGS(packet, card_index, generation, status, timestamp, first_quadlet, second_quadlet),
include/trace/events/firewire.h
278
__field(u64, packet)
include/trace/events/firewire.h
287
__entry->packet = packet;
include/trace/events/firewire.h
296
__entry->packet,
include/trace/events/firewire.h
751
#define TP_STRUCT__entry_iso_packet(ctx, buffer_offset, packet) \
include/trace/events/firewire.h
760
__dynamic_array(u32, header, packet->header_length / QUADLET_SIZE) \
include/trace/events/firewire.h
763
#define TP_fast_assign_iso_packet(ctx, buffer_offset, packet) \
include/trace/events/firewire.h
768
__entry->interrupt = packet->interrupt; \
include/trace/events/firewire.h
769
__entry->skip = packet->skip; \
include/trace/events/firewire.h
770
__entry->sy = packet->sy; \
include/trace/events/firewire.h
771
__entry->tag = packet->tag; \
include/trace/events/firewire.h
772
memcpy(__get_dynamic_array(header), packet->header, \
include/trace/events/firewire.h
777
TP_PROTO(const struct fw_iso_context *ctx, unsigned long buffer_offset, const struct fw_iso_packet *packet),
include/trace/events/firewire.h
778
TP_ARGS(ctx, buffer_offset, packet),
include/trace/events/firewire.h
780
TP_STRUCT__entry_iso_packet(ctx, buffer_offset, packet),
include/trace/events/firewire.h
781
TP_fast_assign_iso_packet(ctx, buffer_offset, packet),
include/trace/events/firewire.h
797
TP_PROTO(const struct fw_iso_context *ctx, unsigned long buffer_offset, const struct fw_iso_packet *packet),
include/trace/events/firewire.h
798
TP_ARGS(ctx, buffer_offset, packet),
include/trace/events/firewire.h
800
TP_STRUCT__entry_iso_packet(ctx, buffer_offset, packet),
include/trace/events/firewire.h
801
TP_fast_assign_iso_packet(ctx, buffer_offset, packet),
include/trace/events/firewire.h
813
TP_PROTO(const struct fw_iso_context *ctx, unsigned long buffer_offset, const struct fw_iso_packet *packet),
include/trace/events/firewire.h
814
TP_ARGS(ctx, buffer_offset, packet),
include/trace/events/firewire.h
816
TP_STRUCT__entry_iso_packet(ctx, buffer_offset, packet),
include/trace/events/firewire.h
817
TP_fast_assign_iso_packet(ctx, buffer_offset, packet),
include/uapi/drm/radeon_drm.h
195
} packet;
include/uapi/drm/radeon_drm.h
263
unsigned char cmd_type, packet, pad0, pad1;
include/uapi/drm/radeon_drm.h
266
unsigned char cmd_type, packet;
include/uapi/linux/cdrom.h
890
__u8 packet : 1;
include/uapi/linux/cdrom.h
903
__u8 packet : 1;
include/uapi/linux/netfilter/xt_statistic.h
30
__u32 packet;
include/uapi/linux/pg.h
53
char packet[12]; /* packet command */
net/batman-adv/fragmentation.c
249
struct batadv_frag_packet *packet;
net/batman-adv/fragmentation.c
263
packet = (struct batadv_frag_packet *)skb_out->data;
net/batman-adv/fragmentation.c
264
size = ntohs(packet->total_size) + hdr_size;
net/batman-adv/fragmentation.c
354
struct batadv_frag_packet *packet;
net/batman-adv/fragmentation.c
358
packet = (struct batadv_frag_packet *)skb->data;
net/batman-adv/fragmentation.c
360
neigh_node = batadv_orig_to_router(bat_priv, packet->dest, recv_if);
net/batman-adv/fragmentation.c
367
total_size = ntohs(packet->total_size);
net/batman-adv/fragmentation.c
373
packet->ttl--;
net/batman-adv/send.h
26
bool batadv_forw_packet_steal(struct batadv_forw_packet *packet, spinlock_t *l);
net/can/j1939/transport.c
1860
int packet;
net/can/j1939/transport.c
1889
packet = (dat[0] - 1 + session->pkt.dpo);
net/can/j1939/transport.c
1890
if (packet > session->pkt.total ||
net/can/j1939/transport.c
1897
se_skb = j1939_session_skb_get_by_offset(session, packet * 7);
net/can/j1939/transport.c
1905
offset = packet * 7 - se_skcb->offset;
net/can/j1939/transport.c
1930
if (packet == session->pkt.rx)
net/core/selftests.c
165
const unsigned char *src = tpriv->packet->src;
net/core/selftests.c
166
const unsigned char *dst = tpriv->packet->dst;
net/core/selftests.c
197
if (tpriv->packet->tcp) {
net/core/selftests.c
202
if (thdr->dest != htons(tpriv->packet->dport))
net/core/selftests.c
211
if (uhdr->dest != htons(tpriv->packet->dport))
net/core/selftests.c
219
if (tpriv->packet->id != shdr->id)
net/core/selftests.c
222
if (tpriv->packet->bad_csum && skb->ip_summed == CHECKSUM_UNNECESSARY)
net/core/selftests.c
251
tpriv->packet = attr;
net/netfilter/nfnetlink_queue.c
493
nfqnl_put_packet_info(struct sk_buff *nlskb, struct sk_buff *packet,
net/netfilter/nfnetlink_queue.c
498
if (packet->ip_summed == CHECKSUM_PARTIAL)
net/netfilter/nfnetlink_queue.c
503
if (skb_is_gso(packet))
net/nfc/hci/core.c
856
struct hcp_packet *packet;
net/nfc/hci/core.c
864
packet = (struct hcp_packet *)skb->data;
net/nfc/hci/core.c
865
if ((packet->header & ~NFC_HCI_FRAGMENT) == 0) {
net/nfc/hci/core.c
872
pipe = packet->header & NFC_HCI_FRAGMENT;
net/nfc/hci/core.c
899
packet->header &= NFC_HCI_FRAGMENT;
net/nfc/hci/core.c
907
packet = (struct hcp_packet *)hcp_skb->data;
net/nfc/hci/core.c
908
type = HCP_MSG_GET_TYPE(packet->message.header);
net/nfc/hci/core.c
910
pipe = packet->header;
net/nfc/hci/core.c
911
instruction = HCP_MSG_GET_CMD(packet->message.header);
net/nfc/hci/hcp.c
48
struct hcp_packet *packet;
net/nfc/hci/hcp.c
71
packet = (struct hcp_packet *)skb->data;
net/nfc/hci/hcp.c
72
packet->header = pipe;
net/nfc/hci/hcp.c
75
packet->message.header = HCP_HEADER(type, instruction);
net/nfc/hci/hcp.c
77
packet->message.header = *ptr++;
net/nfc/hci/hcp.c
80
memcpy(packet->message.data, ptr, data_link_len - 1);
net/nfc/hci/hcp.c
86
packet->header |= ~NFC_HCI_FRAGMENT;
net/nfc/nci/hci.c
431
struct nci_hcp_packet *packet;
net/nfc/nci/hci.c
442
packet = (struct nci_hcp_packet *)skb->data;
net/nfc/nci/hci.c
443
if ((packet->header & ~NCI_HCI_FRAGMENT) == 0) {
net/nfc/nci/hci.c
450
pipe = NCI_HCP_MSG_GET_PIPE(packet->header);
net/nfc/nci/hci.c
477
packet->header &= NCI_HCI_FRAGMENT;
net/nfc/nci/hci.c
485
packet = (struct nci_hcp_packet *)hcp_skb->data;
net/nfc/nci/hci.c
486
type = NCI_HCP_MSG_GET_TYPE(packet->message.header);
net/nfc/nci/hci.c
488
pipe = NCI_HCP_MSG_GET_PIPE(packet->header);
net/openvswitch/datapath.c
616
struct sk_buff *packet;
net/openvswitch/datapath.c
633
packet = __dev_alloc_skb(NET_IP_ALIGN + len, GFP_KERNEL);
net/openvswitch/datapath.c
635
if (!packet)
net/openvswitch/datapath.c
637
skb_reserve(packet, NET_IP_ALIGN);
net/openvswitch/datapath.c
639
nla_memcpy(__skb_put(packet, len), a[OVS_PACKET_ATTR_PACKET], len);
net/openvswitch/datapath.c
644
packet->ignore_df = 1;
net/openvswitch/datapath.c
646
OVS_CB(packet)->mru = mru;
net/openvswitch/datapath.c
651
__skb_set_hash(packet, hash & 0xFFFFFFFFULL,
net/openvswitch/datapath.c
656
OVS_CB(packet)->upcall_pid =
net/openvswitch/datapath.c
666
packet, &flow->key, log);
net/openvswitch/datapath.c
676
packet->priority = flow->key.phy.priority;
net/openvswitch/datapath.c
677
packet->mark = flow->key.phy.skb_mark;
net/openvswitch/datapath.c
692
packet->dev = input_vport->dev;
net/openvswitch/datapath.c
693
OVS_CB(packet)->input_vport = input_vport;
net/openvswitch/datapath.c
700
err = ovs_execute_actions(dp, packet, sf_acts, &flow->key);
net/openvswitch/datapath.c
715
kfree_skb(packet);
net/packet/af_packet.c
3130
mutex_lock(&net->packet.sklist_lock);
net/packet/af_packet.c
3132
mutex_unlock(&net->packet.sklist_lock);
net/packet/af_packet.c
3392
mutex_lock(&net->packet.sklist_lock);
net/packet/af_packet.c
3393
sk_add_node_tail_rcu(sk, &net->packet.sklist);
net/packet/af_packet.c
3394
mutex_unlock(&net->packet.sklist_lock);
net/packet/af_packet.c
4191
sk_for_each_rcu(sk, &net->packet.sklist) {
net/packet/af_packet.c
4699
return seq_hlist_start_head_rcu(&net->packet.sklist, *pos);
net/packet/af_packet.c
4705
return seq_hlist_next_rcu(v, &net->packet.sklist, pos);
net/packet/af_packet.c
4750
mutex_init(&net->packet.sklist_lock);
net/packet/af_packet.c
4751
INIT_HLIST_HEAD(&net->packet.sklist);
net/packet/af_packet.c
4765
WARN_ON_ONCE(!hlist_empty(&net->packet.sklist));
net/packet/diag.c
200
mutex_lock(&net->packet.sklist_lock);
net/packet/diag.c
201
sk_for_each(sk, &net->packet.sklist) {
net/packet/diag.c
218
mutex_unlock(&net->packet.sklist_lock);
net/sctp/associola.c
679
sctp_packet_init(&peer->packet, peer, asoc->base.bind_addr.port,
net/sctp/output.c
125
sctp_packet_append_chunk(packet, chunk);
net/sctp/output.c
137
packet->max_size = sk_can_gso(sk) ? min(READ_ONCE(tp->dst->dev->gso_max_size),
net/sctp/output.c
144
void sctp_packet_init(struct sctp_packet *packet,
net/sctp/output.c
148
pr_debug("%s: packet:%p transport:%p\n", __func__, packet, transport);
net/sctp/output.c
150
packet->transport = transport;
net/sctp/output.c
151
packet->source_port = sport;
net/sctp/output.c
152
packet->destination_port = dport;
net/sctp/output.c
153
INIT_LIST_HEAD(&packet->chunk_list);
net/sctp/output.c
155
packet->overhead = 0;
net/sctp/output.c
156
sctp_packet_reset(packet);
net/sctp/output.c
157
packet->vtag = 0;
net/sctp/output.c
161
void sctp_packet_free(struct sctp_packet *packet)
net/sctp/output.c
165
pr_debug("%s: packet:%p\n", __func__, packet);
net/sctp/output.c
167
list_for_each_entry_safe(chunk, tmp, &packet->chunk_list, list) {
net/sctp/output.c
180
enum sctp_xmit sctp_packet_transmit_chunk(struct sctp_packet *packet,
net/sctp/output.c
187
packet, packet->size, chunk, chunk->skb ? chunk->skb->len : -1);
net/sctp/output.c
189
switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) {
net/sctp/output.c
191
if (!packet->has_cookie_echo) {
net/sctp/output.c
194
error = sctp_packet_transmit(packet, gfp);
net/sctp/output.c
202
retval = sctp_packet_append_chunk(packet,
net/sctp/output.c
328
static enum sctp_xmit __sctp_packet_append_chunk(struct sctp_packet *packet,
net/sctp/output.c
335
retval = sctp_packet_will_fit(packet, chunk, chunk_len);
net/sctp/output.c
344
sctp_packet_append_data(packet, chunk);
net/sctp/output.c
346
packet->has_sack = 1;
net/sctp/output.c
348
packet->has_auth = 1;
net/sctp/output.c
350
packet->has_data = 1;
net/sctp/output.c
357
packet->has_cookie_echo = 1;
net/sctp/output.c
361
packet->has_sack = 1;
net/sctp/output.c
367
packet->has_auth = 1;
net/sctp/output.c
368
packet->auth = chunk;
net/sctp/output.c
373
list_add_tail(&chunk->list, &packet->chunk_list);
net/sctp/output.c
374
packet->size += chunk_len;
net/sctp/output.c
375
chunk->transport = packet->transport;
net/sctp/output.c
383
enum sctp_xmit sctp_packet_append_chunk(struct sctp_packet *packet,
net/sctp/output.c
388
pr_debug("%s: packet:%p chunk:%p\n", __func__, packet, chunk);
net/sctp/output.c
395
retval = sctp_packet_can_append_data(packet, chunk);
net/sctp/output.c
401
retval = sctp_packet_bundle_auth(packet, chunk);
net/sctp/output.c
406
retval = sctp_packet_bundle_sack(packet, chunk);
net/sctp/output.c
410
retval = __sctp_packet_append_chunk(packet, chunk);
net/sctp/output.c
414
retval = sctp_packet_bundle_pad(packet, chunk);
net/sctp/output.c
436
static int sctp_packet_pack(struct sctp_packet *packet,
net/sctp/output.c
439
struct sctp_transport *tp = packet->transport;
net/sctp/output.c
45
static enum sctp_xmit __sctp_packet_append_chunk(struct sctp_packet *packet,
net/sctp/output.c
452
pkt_size = packet->size;
net/sctp/output.c
458
pkt_size = packet->overhead;
net/sctp/output.c
459
list_for_each_entry_safe(chunk, tmp, &packet->chunk_list,
net/sctp/output.c
463
if (chunk == packet->auth)
net/sctp/output.c
465
else if (auth_len + padded + packet->overhead >
net/sctp/output.c
47
static enum sctp_xmit sctp_packet_can_append_data(struct sctp_packet *packet,
net/sctp/output.c
475
skb_reserve(nskb, packet->overhead + MAX_HEADER);
net/sctp/output.c
479
pkt_size -= packet->overhead;
net/sctp/output.c
480
list_for_each_entry_safe(chunk, tmp, &packet->chunk_list, list) {
net/sctp/output.c
49
static void sctp_packet_append_data(struct sctp_packet *packet,
net/sctp/output.c
496
if (chunk == packet->auth)
net/sctp/output.c
51
static enum sctp_xmit sctp_packet_will_fit(struct sctp_packet *packet,
net/sctp/output.c
512
if (!sctp_chunk_is_data(chunk) && chunk != packet->auth)
net/sctp/output.c
521
packet->auth->shkey, gfp);
net/sctp/output.c
523
if (list_empty(&packet->chunk_list))
net/sctp/output.c
524
sctp_chunk_free(packet->auth);
net/sctp/output.c
526
list_add(&packet->auth->list,
net/sctp/output.c
527
&packet->chunk_list);
net/sctp/output.c
534
} while (!list_empty(&packet->chunk_list));
net/sctp/output.c
548
dst_xfrm(tp->dst) || packet->ipfragok || tp->encap_port) {
net/sctp/output.c
55
static void sctp_packet_reset(struct sctp_packet *packet)
net/sctp/output.c
569
int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp)
net/sctp/output.c
571
struct sctp_transport *tp = packet->transport;
net/sctp/output.c
579
pr_debug("%s: packet:%p\n", __func__, packet);
net/sctp/output.c
580
if (list_empty(&packet->chunk_list))
net/sctp/output.c
582
chunk = list_entry(packet->chunk_list.next, struct sctp_chunk, list);
net/sctp/output.c
585
if (packet->size > tp->pathmtu && !packet->ipfragok && !chunk->pmtu_probe) {
net/sctp/output.c
587
packet->ipfragok = 1;
net/sctp/output.c
598
head = alloc_skb((gso ? packet->overhead : packet->size) +
net/sctp/output.c
60
packet->size = packet->overhead;
net/sctp/output.c
602
skb_reserve(head, packet->overhead + MAX_HEADER);
net/sctp/output.c
608
sh->source = htons(packet->source_port);
net/sctp/output.c
609
sh->dest = htons(packet->destination_port);
net/sctp/output.c
610
sh->vtag = htonl(packet->vtag);
net/sctp/output.c
62
packet->has_cookie_echo = 0;
net/sctp/output.c
621
pkt_count = sctp_packet_pack(packet, head, gso, gfp);
net/sctp/output.c
629
if (packet->has_data && sctp_state(asoc, ESTABLISHED) &&
net/sctp/output.c
63
packet->has_sack = 0;
net/sctp/output.c
64
packet->has_data = 0;
net/sctp/output.c
647
head->ignore_df = packet->ipfragok;
net/sctp/output.c
65
packet->has_auth = 0;
net/sctp/output.c
658
list_for_each_entry_safe(chunk, tmp, &packet->chunk_list, list) {
net/sctp/output.c
66
packet->ipfragok = 0;
net/sctp/output.c
663
sctp_packet_reset(packet);
net/sctp/output.c
67
packet->auth = NULL;
net/sctp/output.c
672
static enum sctp_xmit sctp_packet_can_append_data(struct sctp_packet *packet,
net/sctp/output.c
676
struct sctp_transport *transport = packet->transport;
net/sctp/output.c
73
void sctp_packet_config(struct sctp_packet *packet, __u32 vtag,
net/sctp/output.c
732
if (!sctp_packet_empty(packet))
net/sctp/output.c
743
packet->overhead - sctp_datachk_len(&chunk->asoc->stream) - 4)
net/sctp/output.c
756
static void sctp_packet_append_data(struct sctp_packet *packet,
net/sctp/output.c
759
struct sctp_transport *transport = packet->transport;
net/sctp/output.c
76
struct sctp_transport *tp = packet->transport;
net/sctp/output.c
781
static enum sctp_xmit sctp_packet_will_fit(struct sctp_packet *packet,
net/sctp/output.c
793
if ((packet->auth && chunk->shkey != packet->auth->shkey) ||
net/sctp/output.c
794
(!packet->auth && chunk->shkey &&
net/sctp/output.c
798
psize = packet->size;
net/sctp/output.c
799
if (packet->transport->asoc)
net/sctp/output.c
800
pmtu = packet->transport->asoc->pathmtu;
net/sctp/output.c
802
pmtu = packet->transport->pathmtu;
net/sctp/output.c
81
pr_debug("%s: packet:%p vtag:0x%x\n", __func__, packet, vtag);
net/sctp/output.c
813
if (sctp_packet_empty(packet) ||
net/sctp/output.c
814
(!packet->has_data && chunk->auth)) {
net/sctp/output.c
819
packet->ipfragok = 1;
net/sctp/output.c
82
packet->vtag = vtag;
net/sctp/output.c
828
maxsize = pmtu - packet->overhead;
net/sctp/output.c
829
if (packet->auth)
net/sctp/output.c
830
maxsize -= SCTP_PAD4(packet->auth->skb->len);
net/sctp/output.c
840
if (!sctp_chunk_is_data(chunk) && packet->has_data)
net/sctp/output.c
843
if (psize + chunk_len > packet->max_size)
net/sctp/output.c
847
if (!packet->transport->burst_limited &&
net/sctp/output.c
848
psize + chunk_len > (packet->transport->cwnd >> 1))
net/sctp/output.c
85
if (!sctp_packet_empty(packet))
net/sctp/output.c
854
if (packet->transport->burst_limited &&
net/sctp/output.c
855
psize + chunk_len > (packet->transport->burst_limited >> 1))
net/sctp/output.c
89
packet->max_size = tp->pathmtu;
net/sctp/output.c
95
packet->overhead = sctp_mtu_payload(sp, 0, 0);
net/sctp/output.c
96
packet->size = packet->overhead;
net/sctp/outqueue.c
1002
ctx->packet = &ctx->transport->packet;
net/sctp/outqueue.c
1008
sctp_packet_config(ctx->packet, ctx->asoc->peer.i.init_tag,
net/sctp/outqueue.c
1012
error = __sctp_outq_flush_rtx(ctx->q, ctx->packet, rtx_timeout,
net/sctp/outqueue.c
1025
if (ctx->packet->has_cookie_echo)
net/sctp/outqueue.c
1049
if (!ctx->packet || !ctx->packet->has_cookie_echo)
net/sctp/outqueue.c
1111
status = sctp_packet_transmit_chunk(ctx->packet, chunk, 0,
net/sctp/outqueue.c
1150
if (ctx->packet->has_cookie_echo)
net/sctp/outqueue.c
1159
struct sctp_packet *packet;
net/sctp/outqueue.c
1165
packet = &t->packet;
net/sctp/outqueue.c
1166
if (!sctp_packet_empty(packet)) {
net/sctp/outqueue.c
1173
error = sctp_packet_transmit(packet, ctx->gfp);
net/sctp/outqueue.c
1199
.packet = NULL,
net/sctp/outqueue.c
795
struct sctp_packet *packet;
net/sctp/outqueue.c
863
ctx->packet = &ctx->transport->packet;
net/sctp/outqueue.c
869
sctp_packet_config(ctx->packet,
net/sctp/outqueue.c
925
ctx->packet->vtag = ctx->asoc->c.my_vtag;
net/sctp/outqueue.c
959
status = sctp_packet_transmit_chunk(ctx->packet, chunk,
net/sctp/sm_sideeffect.c
1287
struct sctp_packet *packet;
net/sctp/sm_sideeffect.c
1492
packet = cmd->obj.packet;
net/sctp/sm_sideeffect.c
1493
sctp_packet_transmit(packet, gfp);
net/sctp/sm_sideeffect.c
1494
sctp_ootb_pkt_free(packet);
net/sctp/sm_statefuns.c
1525
struct sctp_packet *packet;
net/sctp/sm_statefuns.c
1568
packet = sctp_abort_pkt_new(net, ep, asoc, arg,
net/sctp/sm_statefuns.c
1574
if (packet) {
net/sctp/sm_statefuns.c
1576
SCTP_PACKET(packet));
net/sctp/sm_statefuns.c
328
struct sctp_packet *packet;
net/sctp/sm_statefuns.c
3489
struct sctp_packet *packet = NULL;
net/sctp/sm_statefuns.c
3493
packet = sctp_ootb_pkt_new(net, asoc, chunk);
net/sctp/sm_statefuns.c
3494
if (!packet)
net/sctp/sm_statefuns.c
3502
sctp_ootb_pkt_free(packet);
net/sctp/sm_statefuns.c
3508
packet->vtag = ntohl(chunk->sctp_hdr->vtag);
net/sctp/sm_statefuns.c
3513
sctp_packet_append_chunk(packet, abort);
net/sctp/sm_statefuns.c
3515
sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, SCTP_PACKET(packet));
net/sctp/sm_statefuns.c
3536
struct sctp_packet *packet = NULL;
net/sctp/sm_statefuns.c
3540
packet = sctp_ootb_pkt_new(net, asoc, chunk);
net/sctp/sm_statefuns.c
3541
if (!packet)
net/sctp/sm_statefuns.c
3546
sctp_ootb_pkt_free(packet);
net/sctp/sm_statefuns.c
3552
sctp_packet_append_chunk(packet, abort);
net/sctp/sm_statefuns.c
3555
SCTP_PACKET(packet));
net/sctp/sm_statefuns.c
3795
struct sctp_packet *packet = NULL;
net/sctp/sm_statefuns.c
3799
packet = sctp_ootb_pkt_new(net, asoc, chunk);
net/sctp/sm_statefuns.c
3800
if (!packet)
net/sctp/sm_statefuns.c
3808
sctp_ootb_pkt_free(packet);
net/sctp/sm_statefuns.c
3814
packet->vtag = ntohl(chunk->sctp_hdr->vtag);
net/sctp/sm_statefuns.c
3819
sctp_packet_append_chunk(packet, shut);
net/sctp/sm_statefuns.c
3822
SCTP_PACKET(packet));
net/sctp/sm_statefuns.c
383
packet = sctp_abort_pkt_new(net, ep, asoc, arg,
net/sctp/sm_statefuns.c
391
if (packet) {
net/sctp/sm_statefuns.c
393
SCTP_PACKET(packet));
net/sctp/sm_statefuns.c
4712
struct sctp_packet *packet = NULL;
net/sctp/sm_statefuns.c
4771
packet = sctp_ootb_pkt_new(net, asoc, chunk);
net/sctp/sm_statefuns.c
4773
if (!packet)
net/sctp/sm_statefuns.c
4777
packet->vtag = ntohl(chunk->sctp_hdr->vtag);
net/sctp/sm_statefuns.c
4781
sctp_packet_append_chunk(packet, abort);
net/sctp/sm_statefuns.c
4784
SCTP_PACKET(packet));
net/sctp/sm_statefuns.c
528
struct sctp_packet *packet;
net/sctp/sm_statefuns.c
561
packet = sctp_abort_pkt_new(net, ep, asoc, arg,
net/sctp/sm_statefuns.c
569
if (packet) {
net/sctp/sm_statefuns.c
571
SCTP_PACKET(packet));
net/sctp/sm_statefuns.c
6338
struct sctp_packet *packet;
net/sctp/sm_statefuns.c
6341
packet = sctp_ootb_pkt_new(net, asoc, chunk);
net/sctp/sm_statefuns.c
6343
if (packet) {
net/sctp/sm_statefuns.c
6349
sctp_ootb_pkt_free(packet);
net/sctp/sm_statefuns.c
6355
packet->vtag = ntohl(chunk->sctp_hdr->vtag);
net/sctp/sm_statefuns.c
6365
sctp_packet_append_chunk(packet, abort);
net/sctp/sm_statefuns.c
6369
return packet;
net/sctp/sm_statefuns.c
6379
struct sctp_packet *packet;
net/sctp/sm_statefuns.c
6440
packet = &transport->packet;
net/sctp/sm_statefuns.c
6441
sctp_packet_init(packet, transport, sport, dport);
net/sctp/sm_statefuns.c
6442
sctp_packet_config(packet, vtag, 0);
net/sctp/sm_statefuns.c
6444
return packet;
net/sctp/sm_statefuns.c
6451
void sctp_ootb_pkt_free(struct sctp_packet *packet)
net/sctp/sm_statefuns.c
6453
sctp_transport_free(packet->transport);
net/sctp/sm_statefuns.c
6464
struct sctp_packet *packet;
net/sctp/sm_statefuns.c
6467
packet = sctp_ootb_pkt_new(net, asoc, chunk);
net/sctp/sm_statefuns.c
6468
if (packet) {
net/sctp/sm_statefuns.c
6473
packet->vtag = cookie->c.peer_vtag;
net/sctp/sm_statefuns.c
6477
sctp_packet_append_chunk(packet, err_chunk);
net/sctp/sm_statefuns.c
6479
SCTP_PACKET(packet));
net/sctp/transport.c
159
sctp_packet_free(&transport->packet);
net/sunrpc/xprtsock.c
205
static void xs_pktdump(char *msg, u32 *packet, unsigned int count)
net/sunrpc/xprtsock.c
207
u8 *buf = (u8 *) packet;
net/sunrpc/xprtsock.c
223
static inline void xs_pktdump(char *msg, u32 *packet, unsigned int count)
net/wireless/nl80211.c
21526
if (wakeup->packet) {
net/wireless/nl80211.c
21542
wakeup->packet))
net/wireless/trace.h
3870
__dynamic_array(u8, packet,
net/wireless/trace.h
3885
if (wakeup && wakeup->packet && wakeup->packet_present_len)
net/wireless/trace.h
3886
memcpy(__get_dynamic_array(packet), wakeup->packet,
sound/pci/oxygen/xonar_dg.c
60
unsigned int packet;
sound/pci/oxygen/xonar_dg.c
62
packet = reg << 8;
sound/pci/oxygen/xonar_dg.c
63
packet |= (CS4245_SPI_ADDRESS | CS4245_SPI_WRITE) << 16;
sound/pci/oxygen/xonar_dg.c
64
packet |= data->cs4245_shadow[reg];
sound/pci/oxygen/xonar_dg.c
71
packet);
sound/usb/6fire/pcm.c
156
struct usb_iso_packet_descriptor *packet;
sound/usb/6fire/pcm.c
164
packet = &rt->in_urbs[i].packets[k];
sound/usb/6fire/pcm.c
165
packet->offset = k * rt->in_packet_size;
sound/usb/6fire/pcm.c
166
packet->length = rt->in_packet_size;
sound/usb/6fire/pcm.c
167
packet->actual_length = 0;
sound/usb/6fire/pcm.c
168
packet->status = 0;
sound/usb/endpoint.c
220
unsigned int packet;
sound/usb/endpoint.c
222
packet = ctx->packet_size[idx];
sound/usb/endpoint.c
223
if (packet) {
sound/usb/endpoint.c
224
packet = min(packet, ep->maxframesize);
sound/usb/endpoint.c
225
if (avail && packet >= avail)
sound/usb/endpoint.c
227
return packet;
sound/usb/endpoint.c
472
struct snd_usb_packet_info *packet;
sound/usb/endpoint.c
484
packet = next_packet_fifo_dequeue(ep);
sound/usb/endpoint.c
493
ctx->packets = packet->packets;
sound/usb/endpoint.c
494
memcpy(ctx->packet_size, packet->packet_size,
sound/usb/endpoint.c
495
packet->packets * sizeof(packet->packet_size[0]));
tools/firewire/decode-fcp.c
148
(struct avc_frame *) t->request->packet.write_block.data;
tools/firewire/decode-fcp.c
177
(struct avc_frame *) t->request->packet.write_block.data;
tools/firewire/decode-fcp.c
179
((unsigned long long) t->request->packet.common.offset_high << 32) |
tools/firewire/decode-fcp.c
180
t->request->packet.common.offset_low;
tools/firewire/decode-fcp.c
182
if (t->request->packet.common.tcode != TCODE_WRITE_BLOCK_REQUEST)
tools/firewire/nosy-dump.c
139
sa = malloc(sizeof *sa - sizeof sa->packet + length);
tools/firewire/nosy-dump.c
144
memcpy(&sa->packet, data, length);
tools/firewire/nosy-dump.c
230
decode_link_packet(&t->request->packet, t->request->length,
tools/firewire/nosy-dump.c
233
decode_link_packet(&t->response->packet, t->request->length,
tools/firewire/nosy-dump.c
240
print_packet((uint32_t *) &sa->packet, sa->length);
tools/firewire/nosy-dump.c
242
print_packet((uint32_t *) &sa->packet, sa->length);
tools/firewire/nosy-dump.c
34
static void decode_link_packet(struct link_packet *packet, size_t length,
tools/firewire/nosy-dump.c
506
if (prev->packet.common.tcode != sa->packet.common.tcode ||
tools/firewire/nosy-dump.c
507
prev->packet.common.tlabel != sa->packet.common.tlabel) {
tools/firewire/nosy-dump.c
572
if (prev->packet.common.tcode != sa->packet.common.tcode ||
tools/firewire/nosy-dump.c
573
prev->packet.common.tlabel != sa->packet.common.tlabel) {
tools/firewire/nosy-dump.c
586
if (packet_info[prev->packet.common.tcode].response_tcode !=
tools/firewire/nosy-dump.c
587
sa->packet.common.tcode) {
tools/firewire/nosy-dump.c
644
get_bits(struct link_packet *packet, int offset, int width)
tools/firewire/nosy-dump.c
646
uint32_t *data = (uint32_t *) packet;
tools/firewire/nosy-dump.c
684
decode_link_packet(struct link_packet *packet, size_t length,
tools/firewire/nosy-dump.c
691
pi = &packet_info[packet->common.tcode];
tools/firewire/nosy-dump.c
710
bits = get_bits(packet, offset, f->width);
tools/firewire/nosy-dump.c
714
dump_data((unsigned char *) packet + (offset / 8 + 4), data_length);
tools/firewire/nosy-dump.c
725
bits = get_bits(packet, offset, high_width);
tools/firewire/nosy-dump.c
727
get_bits(packet, offset + high_width, low_width);
tools/firewire/nosy-dump.c
729
bits = get_bits(packet, offset, f->width);
tools/firewire/nosy-dump.c
807
struct link_packet *packet = (struct link_packet *) data;
tools/firewire/nosy-dump.c
809
decode_link_packet(packet, length, 0,
tools/firewire/nosy-dump.c
842
struct link_packet *packet = (struct link_packet *) data;
tools/firewire/nosy-dump.c
843
tcode_count[packet->common.tcode]++;
tools/firewire/nosy-dump.h
162
struct link_packet packet;
tools/perf/arch/x86/tests/intel-pt-test.c
189
static int dump_packet(const struct intel_pt_pkt *packet, const u8 *bytes, int len)
tools/perf/arch/x86/tests/intel-pt-test.c
199
ret = intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX);
tools/perf/arch/x86/tests/intel-pt-test.c
213
dump_packet(&d->packet, d->bytes, d->len);
tools/perf/arch/x86/tests/intel-pt-test.c
216
static int fail(const struct test_data *d, struct intel_pt_pkt *packet, int len,
tools/perf/arch/x86/tests/intel-pt-test.c
225
if (packet->type != d->packet.type)
tools/perf/arch/x86/tests/intel-pt-test.c
227
d->packet.type, packet->type);
tools/perf/arch/x86/tests/intel-pt-test.c
229
if (packet->count != d->packet.count)
tools/perf/arch/x86/tests/intel-pt-test.c
231
d->packet.count, packet->count);
tools/perf/arch/x86/tests/intel-pt-test.c
233
if (packet->payload != d->packet.payload)
tools/perf/arch/x86/tests/intel-pt-test.c
235
(unsigned long long)d->packet.payload,
tools/perf/arch/x86/tests/intel-pt-test.c
236
(unsigned long long)packet->payload);
tools/perf/arch/x86/tests/intel-pt-test.c
245
static int test_ctx_unchanged(const struct test_data *d, struct intel_pt_pkt *packet,
tools/perf/arch/x86/tests/intel-pt-test.c
250
intel_pt_upd_pkt_ctx(packet, &ctx);
tools/perf/arch/x86/tests/intel-pt-test.c
263
struct intel_pt_pkt packet;
tools/perf/arch/x86/tests/intel-pt-test.c
267
memset(&packet, 0xff, sizeof(packet));
tools/perf/arch/x86/tests/intel-pt-test.c
270
ret = intel_pt_get_packet(d->bytes, d->len, &packet, &ctx);
tools/perf/arch/x86/tests/intel-pt-test.c
281
err = test_ctx_unchanged(d, &packet, INTEL_PT_NO_CTX);
tools/perf/arch/x86/tests/intel-pt-test.c
284
err = test_ctx_unchanged(d, &packet, INTEL_PT_BLK_4_CTX);
tools/perf/arch/x86/tests/intel-pt-test.c
287
err = test_ctx_unchanged(d, &packet, INTEL_PT_BLK_8_CTX);
tools/perf/arch/x86/tests/intel-pt-test.c
29
struct intel_pt_pkt packet;
tools/perf/arch/x86/tests/intel-pt-test.c
293
if (ret != d->len || packet.type != d->packet.type ||
tools/perf/arch/x86/tests/intel-pt-test.c
294
packet.count != d->packet.count ||
tools/perf/arch/x86/tests/intel-pt-test.c
295
packet.payload != d->packet.payload || ctx != d->new_ctx)
tools/perf/arch/x86/tests/intel-pt-test.c
296
return fail(d, &packet, ret, ctx);
tools/perf/arch/x86/tests/intel-pt-test.c
299
ret = dump_packet(&d->packet, d->bytes, d->len);
tools/perf/util/arm-spe-decoder/arm-spe-decoder.c
137
&decoder->packet);
tools/perf/util/arm-spe-decoder/arm-spe-decoder.c
147
} while (decoder->packet.type == ARM_SPE_PAD);
tools/perf/util/arm-spe-decoder/arm-spe-decoder.c
166
idx = decoder->packet.index;
tools/perf/util/arm-spe-decoder/arm-spe-decoder.c
167
payload = decoder->packet.payload;
tools/perf/util/arm-spe-decoder/arm-spe-decoder.c
169
switch (decoder->packet.type) {
tools/perf/util/arm-spe-decoder/arm-spe-decoder.h
151
struct arm_spe_pkt packet;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
101
struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
103
packet->type = ARM_SPE_EVENTS;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
110
packet->index = arm_spe_payload_len(buf[0]);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
112
return arm_spe_get_payload(buf, len, 0, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
116
struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
118
packet->type = ARM_SPE_DATA_SOURCE;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
119
return arm_spe_get_payload(buf, len, 0, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
123
struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
125
packet->type = ARM_SPE_CONTEXT;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
126
packet->index = SPE_CTX_PKT_HDR_INDEX(buf[0]);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
127
return arm_spe_get_payload(buf, len, 0, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
131
struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
133
packet->type = ARM_SPE_OP_TYPE;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
134
packet->index = SPE_OP_PKT_HDR_CLASS(buf[0]);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
135
return arm_spe_get_payload(buf, len, 0, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
139
const unsigned char ext_hdr, struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
141
packet->type = ARM_SPE_COUNTER;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
144
packet->index = SPE_HDR_EXTENDED_INDEX(buf[0], buf[1]);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
146
packet->index = SPE_HDR_SHORT_INDEX(buf[0]);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
148
return arm_spe_get_payload(buf, len, ext_hdr, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
152
const unsigned char ext_hdr, struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
154
packet->type = ARM_SPE_ADDRESS;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
157
packet->index = SPE_HDR_EXTENDED_INDEX(buf[0], buf[1]);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
159
packet->index = SPE_HDR_SHORT_INDEX(buf[0]);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
161
return arm_spe_get_payload(buf, len, ext_hdr, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
165
struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
170
memset(packet, 0, sizeof(struct arm_spe_pkt));
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
178
return arm_spe_get_pad(packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
181
return arm_spe_get_end(packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
184
return arm_spe_get_timestamp(buf, len, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
187
return arm_spe_get_events(buf, len, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
190
return arm_spe_get_data_source(buf, len, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
193
return arm_spe_get_context(buf, len, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
196
return arm_spe_get_op_type(buf, len, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
206
return arm_spe_get_alignment(buf, len, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
216
return arm_spe_get_addr(buf, len, ext_hdr, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
219
return arm_spe_get_counter(buf, len, ext_hdr, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
225
struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
229
ret = arm_spe_do_get_packet(buf, len, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
233
if (ret > 0 && packet->type == ARM_SPE_PAD) {
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
279
static int arm_spe_pkt_desc_event(const struct arm_spe_pkt *packet,
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
282
u64 payload = packet->payload;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
335
static int arm_spe_pkt_desc_op_type(const struct arm_spe_pkt *packet,
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
338
u64 payload = packet->payload;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
341
switch (packet->index) {
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
441
static int arm_spe_pkt_desc_addr(const struct arm_spe_pkt *packet,
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
444
int ns, el, idx = packet->index;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
446
u64 payload = packet->payload;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
483
static int arm_spe_pkt_desc_counter(const struct arm_spe_pkt *packet,
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
486
u64 payload = packet->payload;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
487
const char *name = arm_spe_pkt_name(packet->type);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
49
struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
493
switch (packet->index) {
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
510
int arm_spe_pkt_desc(const struct arm_spe_pkt *packet, char *buf,
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
513
int idx = packet->index;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
514
unsigned long long payload = packet->payload;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
515
const char *name = arm_spe_pkt_name(packet->type);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
520
switch (packet->type) {
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
527
err = arm_spe_pkt_desc_event(packet, buf, buf_len);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
530
err = arm_spe_pkt_desc_op_type(packet, buf, buf_len);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
537
err = arm_spe_pkt_desc_addr(packet, buf, buf_len);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
544
err = arm_spe_pkt_desc_counter(packet, buf, buf_len);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
556
name, payload, packet->index);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
59
case 1: packet->payload = *(uint8_t *)buf; break;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
60
case 2: packet->payload = get_unaligned_le16(buf); break;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
61
case 4: packet->payload = get_unaligned_le32(buf); break;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
62
case 8: packet->payload = get_unaligned_le64(buf); break;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
69
static int arm_spe_get_pad(struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
71
packet->type = ARM_SPE_PAD;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
76
struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
83
packet->type = ARM_SPE_PAD;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
87
static int arm_spe_get_end(struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
89
packet->type = ARM_SPE_END;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
94
struct arm_spe_pkt *packet)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
96
packet->type = ARM_SPE_TIMESTAMP;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
97
return arm_spe_get_payload(buf, len, 0, packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.h
187
struct arm_spe_pkt *packet);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.h
189
int arm_spe_pkt_desc(const struct arm_spe_pkt *packet, char *buf, size_t len);
tools/perf/util/arm-spe.c
140
struct arm_spe_pkt packet;
tools/perf/util/arm-spe.c
151
ret = arm_spe_get_packet(buf, len, &packet);
tools/perf/util/arm-spe.c
163
ret = arm_spe_pkt_desc(&packet, desc,
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
117
*packet = packet_queue->packet_buffer[packet_queue->head];
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
438
struct cs_etm_packet *packet;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
445
packet = &packet_queue->packet_buffer[packet_queue->tail];
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
449
packet->isa = CS_ETM_ISA_A64;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
452
packet->isa = CS_ETM_ISA_A32;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
455
packet->isa = CS_ETM_ISA_T32;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
462
packet->isa = CS_ETM_ISA_UNKNOWN;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
465
packet->start_addr = elem->st_addr;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
466
packet->end_addr = elem->en_addr;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
467
packet->instr_count = elem->num_instr_range;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
468
packet->last_instr_type = elem->last_i_type;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
469
packet->last_instr_subtype = elem->last_i_subtype;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
470
packet->last_instr_cond = elem->last_instr_cond;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
473
packet->last_instr_taken_branch = elem->last_instr_exec;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
475
packet->last_instr_taken_branch = false;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
477
packet->last_instr_size = elem->last_instr_sz;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
519
struct cs_etm_packet *packet;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
526
packet = &queue->packet_buffer[queue->tail];
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
527
packet->exception_number = elem->exception_number;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
97
struct cs_etm_packet *packet)
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
99
if (!packet_queue || !packet)
tools/perf/util/cs-etm-decoder/cs-etm-decoder.h
106
struct cs_etm_packet *packet);
tools/perf/util/cs-etm.c
1350
static inline u64 cs_etm__first_executed_instr(struct cs_etm_packet *packet)
tools/perf/util/cs-etm.c
1356
if (packet->sample_type == CS_ETM_DISCONTINUITY ||
tools/perf/util/cs-etm.c
1357
packet->sample_type == CS_ETM_EXCEPTION)
tools/perf/util/cs-etm.c
1360
return packet->start_addr;
tools/perf/util/cs-etm.c
1364
u64 cs_etm__last_executed_instr(const struct cs_etm_packet *packet)
tools/perf/util/cs-etm.c
1367
if (packet->sample_type == CS_ETM_DISCONTINUITY)
tools/perf/util/cs-etm.c
1370
return packet->end_addr - packet->last_instr_size;
tools/perf/util/cs-etm.c
1375
const struct cs_etm_packet *packet,
tools/perf/util/cs-etm.c
1378
if (packet->isa == CS_ETM_ISA_T32) {
tools/perf/util/cs-etm.c
1379
u64 addr = packet->start_addr;
tools/perf/util/cs-etm.c
1390
return packet->start_addr + offset * 4;
tools/perf/util/cs-etm.c
1412
be->to = cs_etm__first_executed_instr(tidq->packet);
tools/perf/util/cs-etm.c
1513
const struct cs_etm_packet *packet,
tools/perf/util/cs-etm.c
1520
if (packet->sample_type == CS_ETM_DISCONTINUITY) {
tools/perf/util/cs-etm.c
1529
if (packet->isa == CS_ETM_ISA_T32)
tools/perf/util/cs-etm.c
1585
sample.cpu = tidq->packet->cpu;
tools/perf/util/cs-etm.c
1589
cs_etm__copy_insn(etmq, tidq->trace_chan_id, tidq->packet, &sample);
tools/perf/util/cs-etm.c
1643
sample.addr = cs_etm__first_executed_instr(tidq->packet);
tools/perf/util/cs-etm.c
1647
sample.cpu = tidq->packet->cpu;
tools/perf/util/cs-etm.c
1779
tidq->period_instructions += tidq->packet->instr_count;
tools/perf/util/cs-etm.c
1860
tidq->packet, offset - 1);
tools/perf/util/cs-etm.c
2037
struct cs_etm_packet *packet,
tools/perf/util/cs-etm.c
2045
switch (packet->isa) {
tools/perf/util/cs-etm.c
2111
struct cs_etm_packet *packet = tidq->packet;
tools/perf/util/cs-etm.c
2115
if (packet->exception_number == CS_ETMV3_EXC_SVC)
tools/perf/util/cs-etm.c
2124
if (packet->exception_number == CS_ETMV4_EXC_CALL &&
tools/perf/util/cs-etm.c
2136
struct cs_etm_packet *packet = tidq->packet;
tools/perf/util/cs-etm.c
2139
if (packet->exception_number == CS_ETMV3_EXC_DEBUG_HALT ||
tools/perf/util/cs-etm.c
2140
packet->exception_number == CS_ETMV3_EXC_ASYNC_DATA_ABORT ||
tools/perf/util/cs-etm.c
2141
packet->exception_number == CS_ETMV3_EXC_PE_RESET ||
tools/perf/util/cs-etm.c
2142
packet->exception_number == CS_ETMV3_EXC_IRQ ||
tools/perf/util/cs-etm.c
2143
packet->exception_number == CS_ETMV3_EXC_FIQ)
tools/perf/util/cs-etm.c
2147
if (packet->exception_number == CS_ETMV4_EXC_RESET ||
tools/perf/util/cs-etm.c
2148
packet->exception_number == CS_ETMV4_EXC_DEBUG_HALT ||
tools/perf/util/cs-etm.c
2149
packet->exception_number == CS_ETMV4_EXC_SYSTEM_ERROR ||
tools/perf/util/cs-etm.c
2150
packet->exception_number == CS_ETMV4_EXC_INST_DEBUG ||
tools/perf/util/cs-etm.c
2151
packet->exception_number == CS_ETMV4_EXC_DATA_DEBUG ||
tools/perf/util/cs-etm.c
2152
packet->exception_number == CS_ETMV4_EXC_IRQ ||
tools/perf/util/cs-etm.c
2153
packet->exception_number == CS_ETMV4_EXC_FIQ)
tools/perf/util/cs-etm.c
2164
struct cs_etm_packet *packet = tidq->packet;
tools/perf/util/cs-etm.c
2168
if (packet->exception_number == CS_ETMV3_EXC_SMC ||
tools/perf/util/cs-etm.c
2169
packet->exception_number == CS_ETMV3_EXC_HYP ||
tools/perf/util/cs-etm.c
2170
packet->exception_number == CS_ETMV3_EXC_JAZELLE_THUMBEE ||
tools/perf/util/cs-etm.c
2171
packet->exception_number == CS_ETMV3_EXC_UNDEFINED_INSTR ||
tools/perf/util/cs-etm.c
2172
packet->exception_number == CS_ETMV3_EXC_PREFETCH_ABORT ||
tools/perf/util/cs-etm.c
2173
packet->exception_number == CS_ETMV3_EXC_DATA_FAULT ||
tools/perf/util/cs-etm.c
2174
packet->exception_number == CS_ETMV3_EXC_GENERIC)
tools/perf/util/cs-etm.c
2178
if (packet->exception_number == CS_ETMV4_EXC_TRAP ||
tools/perf/util/cs-etm.c
2179
packet->exception_number == CS_ETMV4_EXC_ALIGNMENT ||
tools/perf/util/cs-etm.c
2180
packet->exception_number == CS_ETMV4_EXC_INST_FAULT ||
tools/perf/util/cs-etm.c
2181
packet->exception_number == CS_ETMV4_EXC_DATA_FAULT)
tools/perf/util/cs-etm.c
2188
if (packet->exception_number == CS_ETMV4_EXC_CALL &&
tools/perf/util/cs-etm.c
2200
if (packet->exception_number > CS_ETMV4_EXC_FIQ &&
tools/perf/util/cs-etm.c
2201
packet->exception_number <= CS_ETMV4_EXC_END)
tools/perf/util/cs-etm.c
2211
struct cs_etm_packet *packet = tidq->packet;
tools/perf/util/cs-etm.c
2217
switch (packet->sample_type) {
tools/perf/util/cs-etm.c
2224
if (packet->last_instr_type == OCSD_INSTR_BR &&
tools/perf/util/cs-etm.c
2225
packet->last_instr_subtype == OCSD_S_INSTR_NONE) {
tools/perf/util/cs-etm.c
2226
packet->flags = PERF_IP_FLAG_BRANCH;
tools/perf/util/cs-etm.c
2228
if (packet->last_instr_cond)
tools/perf/util/cs-etm.c
2229
packet->flags |= PERF_IP_FLAG_CONDITIONAL;
tools/perf/util/cs-etm.c
2236
if (packet->last_instr_type == OCSD_INSTR_BR &&
tools/perf/util/cs-etm.c
2237
packet->last_instr_subtype == OCSD_S_INSTR_BR_LINK)
tools/perf/util/cs-etm.c
2238
packet->flags = PERF_IP_FLAG_BRANCH |
tools/perf/util/cs-etm.c
2245
if (packet->last_instr_type == OCSD_INSTR_BR_INDIRECT &&
tools/perf/util/cs-etm.c
2246
packet->last_instr_subtype == OCSD_S_INSTR_BR_LINK)
tools/perf/util/cs-etm.c
2247
packet->flags = PERF_IP_FLAG_BRANCH |
tools/perf/util/cs-etm.c
2255
if (packet->last_instr_type == OCSD_INSTR_BR_INDIRECT &&
tools/perf/util/cs-etm.c
2256
packet->last_instr_subtype == OCSD_S_INSTR_V7_IMPLIED_RET)
tools/perf/util/cs-etm.c
2257
packet->flags = PERF_IP_FLAG_BRANCH |
tools/perf/util/cs-etm.c
2265
if (packet->last_instr_type == OCSD_INSTR_BR_INDIRECT &&
tools/perf/util/cs-etm.c
2266
packet->last_instr_subtype == OCSD_S_INSTR_NONE)
tools/perf/util/cs-etm.c
2267
packet->flags = PERF_IP_FLAG_BRANCH |
tools/perf/util/cs-etm.c
2271
if (packet->last_instr_type == OCSD_INSTR_BR_INDIRECT &&
tools/perf/util/cs-etm.c
2272
packet->last_instr_subtype == OCSD_S_INSTR_V8_RET)
tools/perf/util/cs-etm.c
2273
packet->flags = PERF_IP_FLAG_BRANCH |
tools/perf/util/cs-etm.c
2295
packet, packet->start_addr))
tools/perf/util/cs-etm.c
2311
ret = cs_etm__get_magic(etmq, packet->trace_chan_id, &magic);
tools/perf/util/cs-etm.c
2317
packet->flags = PERF_IP_FLAG_BRANCH |
tools/perf/util/cs-etm.c
2325
packet->flags = PERF_IP_FLAG_BRANCH |
tools/perf/util/cs-etm.c
2334
packet->flags = PERF_IP_FLAG_BRANCH |
tools/perf/util/cs-etm.c
2346
prev_packet->flags = packet->flags;
tools/perf/util/cs-etm.c
2426
tidq->packet);
tools/perf/util/cs-etm.c
2445
switch (tidq->packet->sample_type) {
tools/perf/util/cs-etm.c
622
tidq->packet = zalloc(sizeof(struct cs_etm_packet));
tools/perf/util/cs-etm.c
623
if (!tidq->packet)
tools/perf/util/cs-etm.c
653
zfree(&tidq->packet);
tools/perf/util/cs-etm.c
762
tmp = tidq->packet;
tools/perf/util/cs-etm.c
763
tidq->packet = tidq->prev_packet;
tools/perf/util/cs-etm.c
946
zfree(&tidq->packet);
tools/perf/util/cs-etm.c
95
struct cs_etm_packet *packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1016
decoder->last_packet_type = decoder->packet.type;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1031
&decoder->packet, &decoder->pkt_ctx);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1044
} while (decoder->packet.type == INTEL_PT_PAD);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1269
bool iflag = decoder->packet.count & INTEL_PT_IFLAG;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1271
decoder->exec_mode = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1280
bool iflag = decoder->packet.count & INTEL_PT_IFLAG;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1282
decoder->exec_mode = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1498
if (decoder->packet.count == 0) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1508
if (decoder->packet.count == 0) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1554
switch (pkt_info->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1587
if (nr_bits > pkt_info->packet.count)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1588
nr_bits = pkt_info->packet.count;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1590
data->payload |= pkt_info->packet.payload >> (64 - nr_bits);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1683
if (decoder->packet.type != INTEL_PT_TIP ||
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1684
decoder->packet.count == 0) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1742
fup_tx_flags = decoder->packet.payload &
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1747
if (decoder->packet.type == INTEL_PT_FUP) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1767
.type = decoder->packet.count,
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1768
.payload = decoder->packet.payload,
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1810
timestamp = intel_pt_8b_tsc(decoder->packet.payload,
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1817
timestamp = decoder->packet.payload |
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
183
struct intel_pt_pkt packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1909
uint32_t ctc = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1910
uint32_t fc = decoder->packet.count;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1946
mtc = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1994
unsigned int cbr = decoder->packet.payload & 0xff;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
1996
decoder->cbr_payload = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2015
decoder->cycle_cnt += decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2017
decoder->tot_cyc_cnt += decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2047
decoder->blk_type = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2050
decoder->state.items.is_32_bit = decoder->packet.count;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2062
uint32_t id = decoder->packet.count;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2078
decoder->state.items.val[pos][id] = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2093
switch (decoder->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2150
if (decoder->packet.count) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2200
switch (decoder->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2238
if (decoder->packet.count == 0) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2255
if (decoder->packet.count == 0) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2268
if (decoder->packet.count == 0) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2331
switch (pkt_info->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2347
data->tma_packet = pkt_info->packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2352
data->pip_packet = pkt_info->packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2357
data->vmcs_packet = pkt_info->packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2404
if (pkt_info->packet.type == INTEL_PT_CYC ||
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2405
pkt_info->packet.type == INTEL_PT_MTC ||
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2406
pkt_info->packet.type == INTEL_PT_TSC)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2408
data->found = pkt_info->packet.type == INTEL_PT_FUP;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2428
if (pkt_info->packet.type == INTEL_PT_CYC ||
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2429
pkt_info->packet.type == INTEL_PT_MTC)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2432
if (pkt_info->packet.type == INTEL_PT_TMA) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2433
data->tma_packet = pkt_info->packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2502
uint64_t payload = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2505
decoder->packet.payload -= vmcs_info->tsc_offset;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2507
decoder->packet.payload &= SEVEN_BYTES;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2514
memcpy((void *)decoder->buf + 1, &decoder->packet.payload, 7);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2518
payload, decoder->packet.payload, vmcs_info->vmcs,
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2636
host_tsc = intel_pt_8b_tsc(decoder->packet.payload, ref_timestamp);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2751
uint64_t host_tsc = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2752
uint64_t guest_tsc = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2795
decoder->packet.payload = host_tsc;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2817
switch (decoder->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2855
decoder->pip_payload = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2887
if (decoder->packet.payload != NO_VMCS)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2888
decoder->vmcs = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2892
decoder->blk_type = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2897
decoder->packet.count == 2)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2942
if (decoder->leap && !decoder->in_psb && decoder->packet.type != INTEL_PT_PSB) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2948
switch (decoder->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2954
if (!decoder->packet.count) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2966
if (!decoder->packet.count) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
2979
if (!decoder->packet.count)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3065
switch (pkt_info->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3087
if (data->fup || pkt_info->packet.count == 0)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3089
data->fup_packet = pkt_info->packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3190
decoder->packet = data.fup_packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3214
last_packet_type = decoder->packet.type;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3230
switch (decoder->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3232
if (!decoder->packet.count)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3234
decoder->tnt = decoder->packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3242
if (decoder->packet.count != 0)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3252
if (decoder->packet.count == 0) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3275
if (decoder->packet.count != 0)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3281
if (decoder->packet.count == 0) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3376
if (decoder->packet.type == INTEL_PT_FUP) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3403
decoder->fup_ptw_payload = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3407
if (decoder->packet.type == INTEL_PT_FUP) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3420
decoder->state.ptw_payload = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3424
decoder->fup_mwait_payload = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3431
decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3438
decoder->state.pwrx_payload = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3445
if (decoder->packet.type == INTEL_PT_FUP) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3464
decoder->state.pwrx_payload = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3485
if (decoder->packet.type == INTEL_PT_FUP) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3495
decoder->fup_cfe_pkt = decoder->packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3504
decoder->fup_cfe_pkt = decoder->packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3508
if (decoder->packet.type == INTEL_PT_FUP) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3531
return decoder->packet.count &&
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3532
(decoder->have_last_ip || decoder->packet.count == 3 ||
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3533
decoder->packet.count == 6);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3548
switch (decoder->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
3668
switch (decoder->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
4178
struct intel_pt_pkt packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
4182
ret = intel_pt_get_packet(buf, len, &packet, &ctx);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
4185
if (packet.type == INTEL_PT_TSC) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
4186
*tsc = packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
4190
if (packet.type == INTEL_PT_PSBEND)
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
514
static uint64_t intel_pt_calc_ip(const struct intel_pt_pkt *packet,
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
519
switch (packet->count) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
522
packet->payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
526
packet->payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
529
ip = packet->payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
536
packet->payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
539
ip = packet->payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
550
decoder->last_ip = intel_pt_calc_ip(&decoder->packet, decoder->last_ip);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
562
intel_pt_log_packet(&decoder->packet, decoder->pkt_len, decoder->pos,
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
580
decoder->tx_flags = decoder->packet.payload & INTEL_PT_IN_TX;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
585
decoder->pip_payload = decoder->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
701
ret = intel_pt_get_packet(buf, len, &decoder->packet, &decoder->pkt_ctx);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
721
struct intel_pt_pkt packet;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
755
ret = intel_pt_get_packet(buf, len, &pkt_info.packet,
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
763
} while (pkt_info.packet.type == INTEL_PT_PAD);
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
769
pkt_info.last_packet_type = pkt_info.packet.type;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
816
switch (pkt_info->packet.type) {
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
844
mtc = pkt_info->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
884
timestamp = pkt_info->packet.payload |
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
907
ctc = pkt_info->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
908
fc = pkt_info->packet.count;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
929
data->cycle_cnt += pkt_info->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
933
cbr = pkt_info->packet.payload;
tools/perf/util/intel-pt-decoder/intel-pt-log.c
212
void __intel_pt_log_packet(const struct intel_pt_pkt *packet, int pkt_len,
tools/perf/util/intel-pt-decoder/intel-pt-log.c
221
intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX);
tools/perf/util/intel-pt-decoder/intel-pt-log.h
22
void __intel_pt_log_packet(const struct intel_pt_pkt *packet, int pkt_len,
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
104
packet->type = INTEL_PT_PIP;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
106
packet->payload = payload;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
111
static int intel_pt_get_tracestop(struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
113
packet->type = INTEL_PT_TRACESTOP;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
118
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
122
packet->type = INTEL_PT_CBR;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
123
packet->payload = get_unaligned_le16(buf + 2);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
128
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
133
packet->type = INTEL_PT_VMCS;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
134
packet->count = 5;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
135
memcpy_le64(&packet->payload, buf + 2, 5);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
140
static int intel_pt_get_ovf(struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
142
packet->type = INTEL_PT_OVF;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
147
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
159
packet->type = INTEL_PT_PSB;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
163
static int intel_pt_get_psbend(struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
165
packet->type = INTEL_PT_PSBEND;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
170
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
175
packet->type = INTEL_PT_TMA;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
176
packet->payload = buf[2] | (buf[3] << 8);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
177
packet->count = buf[5] | ((buf[6] & BIT(0)) << 8);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
181
static int intel_pt_get_pad(struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
183
packet->type = INTEL_PT_PAD;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
188
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
192
packet->type = INTEL_PT_MNT;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
193
packet->payload = get_unaligned_le64(buf + 3);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
198
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
205
return intel_pt_get_mnt(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
212
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
214
packet->count = (buf[1] >> 5) & 0x3;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
215
packet->type = buf[1] & BIT(7) ? INTEL_PT_PTWRITE_IP :
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
218
switch (packet->count) {
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
222
packet->payload = get_unaligned_le32(buf + 2);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
227
packet->payload = get_unaligned_le64(buf + 2);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
234
static int intel_pt_get_exstop(struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
236
packet->type = INTEL_PT_EXSTOP;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
240
static int intel_pt_get_exstop_ip(struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
242
packet->type = INTEL_PT_EXSTOP_IP;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
247
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
251
packet->type = INTEL_PT_MWAIT;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
252
packet->payload = get_unaligned_le64(buf + 2);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
257
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
261
packet->type = INTEL_PT_PWRE;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
262
memcpy_le64(&packet->payload, buf + 2, 2);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
267
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
271
packet->type = INTEL_PT_PWRX;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
272
memcpy_le64(&packet->payload, buf + 2, 5);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
277
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
281
packet->type = INTEL_PT_BBP;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
282
packet->count = buf[2] >> 7;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
283
packet->payload = buf[2] & 0x1f;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
288
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
292
packet->type = INTEL_PT_BIP;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
293
packet->count = buf[0] >> 3;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
294
memcpy_le64(&packet->payload, buf + 1, 4);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
299
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
303
packet->type = INTEL_PT_BIP;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
304
packet->count = buf[0] >> 3;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
305
packet->payload = get_unaligned_le64(buf + 1);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
309
static int intel_pt_get_bep(size_t len, struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
313
packet->type = INTEL_PT_BEP;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
317
static int intel_pt_get_bep_ip(size_t len, struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
321
packet->type = INTEL_PT_BEP_IP;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
326
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
330
packet->type = buf[2] & 0x80 ? INTEL_PT_CFE_IP : INTEL_PT_CFE;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
331
packet->count = buf[2] & 0x1f;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
332
packet->payload = buf[3];
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
337
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
341
packet->type = INTEL_PT_EVD;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
342
packet->count = buf[2] & 0x3f;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
343
packet->payload = buf[3];
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
344
packet->payload = get_unaligned_le64(buf + 3);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
349
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
355
return intel_pt_get_ptwrite(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
359
return intel_pt_get_long_tnt(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
361
return intel_pt_get_pip(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
363
return intel_pt_get_tracestop(packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
365
return intel_pt_get_cbr(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
367
return intel_pt_get_vmcs(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
369
return intel_pt_get_ovf(packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
371
return intel_pt_get_psb(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
373
return intel_pt_get_psbend(packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
375
return intel_pt_get_tma(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
377
return intel_pt_get_3byte(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
379
return intel_pt_get_exstop(packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
381
return intel_pt_get_exstop_ip(packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
383
return intel_pt_get_mwait(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
385
return intel_pt_get_pwre(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
387
return intel_pt_get_pwrx(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
389
return intel_pt_get_bbp(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
391
return intel_pt_get_bep(len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
393
return intel_pt_get_bep_ip(len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
395
return intel_pt_get_cfe(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
397
return intel_pt_get_evd(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
404
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
414
packet->type = INTEL_PT_TNT;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
415
packet->count = count;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
416
packet->payload = (uint64_t)byte << 57;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
422
size_t len, struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
438
packet->type = INTEL_PT_CYC;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
439
packet->payload = payload;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
445
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
449
packet->count = byte >> 5;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
451
switch (packet->count) {
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
459
packet->payload = get_unaligned_le16(buf + 1);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
465
packet->payload = get_unaligned_le32(buf + 1);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
472
memcpy_le64(&packet->payload, buf + 1, 6);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
478
packet->payload = get_unaligned_le64(buf + 1);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
484
packet->type = type;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
490
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
497
packet->type = INTEL_PT_MODE_EXEC;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
498
packet->count = buf[1];
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
501
packet->payload = 16;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
504
packet->payload = 64;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
507
packet->payload = 32;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
514
packet->type = INTEL_PT_MODE_TSX;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
517
packet->payload = buf[1] & 3;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
527
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
531
packet->type = INTEL_PT_TSC;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
532
memcpy_le64(&packet->payload, buf + 1, 7);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
537
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
541
packet->type = INTEL_PT_MTC;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
542
packet->payload = buf[1];
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
547
struct intel_pt_pkt *packet,
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
552
memset(packet, 0, sizeof(struct intel_pt_pkt));
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
564
return intel_pt_get_bip_4(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
568
return intel_pt_get_bip_8(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
576
return intel_pt_get_pad(packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
578
return intel_pt_get_ext(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
579
return intel_pt_get_short_tnt(byte, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
583
return intel_pt_get_cyc(byte, buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
587
return intel_pt_get_ip(INTEL_PT_TIP, byte, buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
590
packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
593
packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
595
return intel_pt_get_ip(INTEL_PT_FUP, byte, buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
599
return intel_pt_get_mode(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
601
return intel_pt_get_tsc(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
603
return intel_pt_get_mtc(buf, len, packet);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
612
void intel_pt_upd_pkt_ctx(const struct intel_pt_pkt *packet,
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
615
switch (packet->type) {
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
654
if (packet->count)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
665
struct intel_pt_pkt *packet, enum intel_pt_pkt_ctx *ctx)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
669
ret = intel_pt_do_get_packet(buf, len, packet, *ctx);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
673
intel_pt_upd_pkt_ctx(packet, ctx);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
678
int intel_pt_pkt_desc(const struct intel_pt_pkt *packet, char *buf,
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
682
unsigned long long payload = packet->payload;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
683
const char *name = intel_pt_pkt_name(packet->type);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
685
switch (packet->type) {
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
701
for (i = 0; i < packet->count; i++) {
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
712
ret = snprintf(buf, blen, " (%d)", packet->count);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
722
if (!(packet->count))
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
734
(unsigned)payload, packet->count);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
737
name, !!(packet->count & 4), payload);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
74
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
743
nr = packet->payload & INTEL_PT_VMX_NR_FLAG ? 1 : 0;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
775
name, packet->count ? "4" : "8", payload);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
778
name, packet->count, payload);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
782
name, packet->type == INTEL_PT_CFE_IP, packet->count, payload);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
785
name, packet->count, payload);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
790
name, payload, packet->count);
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
90
packet->type = INTEL_PT_TNT;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
91
packet->count = count;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
92
packet->payload = payload << 1;
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
97
struct intel_pt_pkt *packet)
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.h
84
struct intel_pt_pkt *packet,
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.h
87
void intel_pt_upd_pkt_ctx(const struct intel_pt_pkt *packet,
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.h
90
int intel_pt_pkt_desc(const struct intel_pt_pkt *packet, char *buf, size_t len);
tools/perf/util/intel-pt.c
236
struct intel_pt_pkt packet;
tools/perf/util/intel-pt.c
248
ret = intel_pt_get_packet(buf, len, &packet, &ctx);
tools/perf/util/intel-pt.c
260
ret = intel_pt_pkt_desc(&packet, desc,
tools/testing/selftests/bpf/network_helpers.c
1003
const u_char *packet, *payload;
tools/testing/selftests/bpf/network_helpers.c
1032
packet = pcap_next(pcap, &header);
tools/testing/selftests/bpf/network_helpers.c
1033
if (!packet)
tools/testing/selftests/bpf/network_helpers.c
1040
pcap_dump((u_char *)dumper, &header, packet);
tools/testing/selftests/bpf/network_helpers.c
1045
if (!is_ethernet(packet))
tools/testing/selftests/bpf/network_helpers.c
1055
payload = packet + 20;
tools/testing/selftests/bpf/network_helpers.c
1057
memcpy(&proto, packet, 2);
tools/testing/selftests/bpf/network_helpers.c
1059
memcpy(&ifindex, packet + 4, 4);
tools/testing/selftests/bpf/network_helpers.c
1061
ptype = packet[10];
tools/testing/selftests/bpf/network_helpers.c
861
static bool is_ethernet(const u_char *packet)
tools/testing/selftests/bpf/network_helpers.c
865
memcpy(&arphdr_type, packet + 8, 2);
tools/testing/selftests/bpf/network_helpers.c
900
static void show_transport(const u_char *packet, u16 len, u32 ifindex,
tools/testing/selftests/bpf/network_helpers.c
917
udp = (struct udphdr *)packet;
tools/testing/selftests/bpf/network_helpers.c
922
tcp = (struct tcphdr *)packet;
tools/testing/selftests/bpf/network_helpers.c
929
packet[0], packet[1]);
tools/testing/selftests/bpf/network_helpers.c
934
packet[0], packet[1]);
tools/testing/selftests/bpf/network_helpers.c
962
static void show_ipv6_packet(const u_char *packet, u32 ifindex, u8 pkt_type)
tools/testing/selftests/bpf/network_helpers.c
965
struct ipv6hdr *pkt = (struct ipv6hdr *)packet;
tools/testing/selftests/bpf/network_helpers.c
976
show_transport(packet + sizeof(struct ipv6hdr),
tools/testing/selftests/bpf/network_helpers.c
981
static void show_ipv4_packet(const u_char *packet, u32 ifindex, u8 pkt_type)
tools/testing/selftests/bpf/network_helpers.c
984
struct iphdr *pkt = (struct iphdr *)packet;
tools/testing/selftests/bpf/network_helpers.c
995
show_transport(packet + sizeof(struct iphdr),
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
13
static const char packet[STRP_PKT_FULL_LEN] = "head+body\0";
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
199
packet, STRP_PKT_FULL_LEN);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
252
xsend(c, packet, off, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
258
xsend(c, packet + off, STRP_PKT_FULL_LEN - off, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
265
xsend(c, packet, off, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
268
xsend(c, packet + off, STRP_PKT_FULL_LEN - off - 1, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
275
xsend(c, packet + off, STRP_PKT_FULL_LEN - off, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
310
sent = xsend(c, packet, pkt_size, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
329
sent = xsend(c, packet, pkt_size, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
336
!ASSERT_OK(memcmp(packet, rcv, pkt_size),
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
342
sent = xsend(c, packet, pkt_size, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
354
!ASSERT_OK(memcmp(packet, rcv, pkt_size),
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
397
sent = xsend(c0, packet, STRP_PKT_FULL_LEN, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
40
!ASSERT_OK(memcmp(packet, rcv, STRP_PKT_FULL_LEN),
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
404
!ASSERT_OK(memcmp(packet, rcv, STRP_PKT_FULL_LEN),
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
409
sent = xsend(c0, packet, STRP_PKT_FULL_LEN, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
421
!ASSERT_OK(memcmp(packet, rcv, STRP_PKT_FULL_LEN),
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
133
__u8 packet[sizeof(struct ethhdr) + TEST_PAYLOAD_LEN];
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
140
memcpy(packet, ð, sizeof(eth));
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
141
memcpy(packet + sizeof(eth), test_payload, TEST_PAYLOAD_LEN);
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
152
n = sendto(sock, packet, sizeof(packet), 0, (struct sockaddr *)&saddr,
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
154
if (!ASSERT_EQ(n, sizeof(packet), "sendto"))
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
168
__u8 packet[sizeof(struct ethhdr) + TEST_PAYLOAD_LEN];
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
180
memcpy(packet, ð, sizeof(eth));
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
181
memcpy(packet + sizeof(struct ethhdr), test_payload, TEST_PAYLOAD_LEN);
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
183
n = write(tap_fd, packet, sizeof(packet));
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
184
if (!ASSERT_EQ(n, sizeof(packet), "write packet"))
tools/testing/selftests/net/psock_tpacket.c
375
char packet[1024];
tools/testing/selftests/net/psock_tpacket.c
416
create_payload(packet, &packet_len);
tools/testing/selftests/net/psock_tpacket.c
431
sizeof(struct sockaddr_ll), packet,
tools/testing/selftests/net/psock_tpacket.c
441
sizeof(struct sockaddr_ll), packet,
tools/testing/selftests/net/psock_tpacket.c
453
sizeof(struct sockaddr_ll), packet,
tools/testing/selftests/net/psock_tpacket.c
479
while ((ret = recvfrom(rcv_sock, packet, sizeof(packet),
tools/testing/selftests/net/psock_tpacket.c
483
test_payload(packet, ret);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
192
} packet = {};
tools/testing/selftests/net/tcp_ao/icmps-accept.c
199
packet_len = sizeof(packet);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
200
set_ip4hdr(&packet.iph, packet_len, IPPROTO_ICMP, src, dst);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
202
packet.icmph.type = type;
tools/testing/selftests/net/tcp_ao/icmps-accept.c
203
packet.icmph.code = code;
tools/testing/selftests/net/tcp_ao/icmps-accept.c
205
randomize_buffer(&packet.icmph.un.frag.mtu,
tools/testing/selftests/net/tcp_ao/icmps-accept.c
206
sizeof(packet.icmph.un.frag.mtu));
tools/testing/selftests/net/tcp_ao/icmps-accept.c
209
packet_len = sizeof(packet.iphe) + sizeof(packet.tcph);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
210
set_ip4hdr(&packet.iphe, packet_len, IPPROTO_TCP, dst, src);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
212
packet.tcph.sport = dst->sin_port;
tools/testing/selftests/net/tcp_ao/icmps-accept.c
213
packet.tcph.dport = src->sin_port;
tools/testing/selftests/net/tcp_ao/icmps-accept.c
214
packet.tcph.seq = htonl(rcv_nxt);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
216
packet_len = sizeof(packet) - sizeof(packet.iph);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
217
packet.icmph.checksum = checksum4_fold((void *)&packet.icmph,
tools/testing/selftests/net/tcp_ao/icmps-accept.c
220
bytes = sendto(sk, &packet, sizeof(packet), 0,
tools/testing/selftests/net/tcp_ao/icmps-accept.c
222
if (bytes != sizeof(packet))
tools/testing/selftests/net/tcp_ao/icmps-accept.c
307
} packet = {};
tools/testing/selftests/net/tcp_ao/icmps-accept.c
315
packet_len = sizeof(packet) - sizeof(packet.iph);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
316
set_ip6hdr(&packet.iph, packet_len, IPPROTO_ICMPV6, src, dst);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
318
packet.icmph.icmp6_type = type;
tools/testing/selftests/net/tcp_ao/icmps-accept.c
319
packet.icmph.icmp6_code = code;
tools/testing/selftests/net/tcp_ao/icmps-accept.c
321
packet_len = sizeof(packet.iphe) + sizeof(packet.tcph);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
322
set_ip6hdr(&packet.iphe, packet_len, IPPROTO_TCP, dst, src);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
324
packet.tcph.sport = dst->sin6_port;
tools/testing/selftests/net/tcp_ao/icmps-accept.c
325
packet.tcph.dport = src->sin6_port;
tools/testing/selftests/net/tcp_ao/icmps-accept.c
326
packet.tcph.seq = htonl(rcv_nxt);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
328
packet_len = sizeof(packet) - sizeof(packet.iph);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
330
packet.icmph.icmp6_cksum = icmp6_checksum(src, dst,
tools/testing/selftests/net/tcp_ao/icmps-accept.c
331
(void *)&packet.icmph, packet_len, IPPROTO_ICMPV6);
tools/testing/selftests/net/tcp_ao/icmps-accept.c
334
bytes = sendto(sk, &packet, sizeof(packet), 0,
tools/testing/selftests/net/tcp_ao/icmps-accept.c
336
if (bytes != sizeof(packet))
tools/testing/selftests/net/tcp_ao/icmps-discard.c
192
} packet = {};
tools/testing/selftests/net/tcp_ao/icmps-discard.c
199
packet_len = sizeof(packet);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
200
set_ip4hdr(&packet.iph, packet_len, IPPROTO_ICMP, src, dst);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
202
packet.icmph.type = type;
tools/testing/selftests/net/tcp_ao/icmps-discard.c
203
packet.icmph.code = code;
tools/testing/selftests/net/tcp_ao/icmps-discard.c
205
randomize_buffer(&packet.icmph.un.frag.mtu,
tools/testing/selftests/net/tcp_ao/icmps-discard.c
206
sizeof(packet.icmph.un.frag.mtu));
tools/testing/selftests/net/tcp_ao/icmps-discard.c
209
packet_len = sizeof(packet.iphe) + sizeof(packet.tcph);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
210
set_ip4hdr(&packet.iphe, packet_len, IPPROTO_TCP, dst, src);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
212
packet.tcph.sport = dst->sin_port;
tools/testing/selftests/net/tcp_ao/icmps-discard.c
213
packet.tcph.dport = src->sin_port;
tools/testing/selftests/net/tcp_ao/icmps-discard.c
214
packet.tcph.seq = htonl(rcv_nxt);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
216
packet_len = sizeof(packet) - sizeof(packet.iph);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
217
packet.icmph.checksum = checksum4_fold((void *)&packet.icmph,
tools/testing/selftests/net/tcp_ao/icmps-discard.c
220
bytes = sendto(sk, &packet, sizeof(packet), 0,
tools/testing/selftests/net/tcp_ao/icmps-discard.c
222
if (bytes != sizeof(packet))
tools/testing/selftests/net/tcp_ao/icmps-discard.c
307
} packet = {};
tools/testing/selftests/net/tcp_ao/icmps-discard.c
315
packet_len = sizeof(packet) - sizeof(packet.iph);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
316
set_ip6hdr(&packet.iph, packet_len, IPPROTO_ICMPV6, src, dst);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
318
packet.icmph.icmp6_type = type;
tools/testing/selftests/net/tcp_ao/icmps-discard.c
319
packet.icmph.icmp6_code = code;
tools/testing/selftests/net/tcp_ao/icmps-discard.c
321
packet_len = sizeof(packet.iphe) + sizeof(packet.tcph);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
322
set_ip6hdr(&packet.iphe, packet_len, IPPROTO_TCP, dst, src);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
324
packet.tcph.sport = dst->sin6_port;
tools/testing/selftests/net/tcp_ao/icmps-discard.c
325
packet.tcph.dport = src->sin6_port;
tools/testing/selftests/net/tcp_ao/icmps-discard.c
326
packet.tcph.seq = htonl(rcv_nxt);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
328
packet_len = sizeof(packet) - sizeof(packet.iph);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
330
packet.icmph.icmp6_cksum = icmp6_checksum(src, dst,
tools/testing/selftests/net/tcp_ao/icmps-discard.c
331
(void *)&packet.icmph, packet_len, IPPROTO_ICMPV6);
tools/testing/selftests/net/tcp_ao/icmps-discard.c
334
bytes = sendto(sk, &packet, sizeof(packet), 0,
tools/testing/selftests/net/tcp_ao/icmps-discard.c
336
if (bytes != sizeof(packet))