• Home
  • Raw
  • Download

Lines Matching refs:e

378 	struct bus_reset_event *e;  in queue_bus_reset_event()  local
380 e = kzalloc(sizeof(*e), GFP_KERNEL); in queue_bus_reset_event()
381 if (e == NULL) in queue_bus_reset_event()
384 fill_bus_reset_event(&e->reset, client); in queue_bus_reset_event()
386 queue_event(client, &e->event, in queue_bus_reset_event()
387 &e->reset, sizeof(e->reset), NULL, 0); in queue_bus_reset_event()
539 struct outbound_transaction_event *e = data; in complete_transaction() local
540 struct fw_cdev_event_response *rsp = &e->response; in complete_transaction()
541 struct client *client = e->client; in complete_transaction()
550 idr_remove(&client->resource_idr, e->r.resource.handle); in complete_transaction()
566 queue_event(client, &e->event, rsp, sizeof(*rsp), in complete_transaction()
569 queue_event(client, &e->event, rsp, sizeof(*rsp) + rsp->length, in complete_transaction()
580 struct outbound_transaction_event *e; in init_request() local
591 e = kmalloc(sizeof(*e) + request->length, GFP_KERNEL); in init_request()
592 if (e == NULL) in init_request()
595 e->client = client; in init_request()
596 e->response.length = request->length; in init_request()
597 e->response.closure = request->closure; in init_request()
600 copy_from_user(e->response.data, in init_request()
606 e->r.resource.release = release_transaction; in init_request()
607 ret = add_client_resource(client, &e->r.resource, GFP_KERNEL); in init_request()
611 fw_send_request(client->device->card, &e->r.transaction, in init_request()
613 speed, request->offset, e->response.data, in init_request()
614 request->length, complete_transaction, e); in init_request()
618 kfree(e); in init_request()
673 struct inbound_transaction_event *e; in handle_request() local
682 e = kmalloc(sizeof(*e), GFP_ATOMIC); in handle_request()
683 if (r == NULL || e == NULL) in handle_request()
709 struct fw_cdev_event_request *req = &e->req.request; in handle_request()
722 struct fw_cdev_event_request2 *req = &e->req.request2; in handle_request()
737 queue_event(handler->client, &e->event, in handle_request()
738 &e->req, event_size0, r->data, length); in handle_request()
743 kfree(e); in handle_request()
918 struct iso_interrupt_event *e; in iso_callback() local
920 e = kmalloc(sizeof(*e) + header_length, GFP_ATOMIC); in iso_callback()
921 if (e == NULL) in iso_callback()
924 e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT; in iso_callback()
925 e->interrupt.closure = client->iso_closure; in iso_callback()
926 e->interrupt.cycle = cycle; in iso_callback()
927 e->interrupt.header_length = header_length; in iso_callback()
928 memcpy(e->interrupt.header, header, header_length); in iso_callback()
929 queue_event(client, &e->event, &e->interrupt, in iso_callback()
930 sizeof(e->interrupt) + header_length, NULL, 0); in iso_callback()
937 struct iso_interrupt_mc_event *e; in iso_mc_callback() local
939 e = kmalloc(sizeof(*e), GFP_ATOMIC); in iso_mc_callback()
940 if (e == NULL) in iso_mc_callback()
943 e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL; in iso_mc_callback()
944 e->interrupt.closure = client->iso_closure; in iso_mc_callback()
945 e->interrupt.completed = fw_iso_buffer_lookup(&client->buffer, in iso_mc_callback()
947 queue_event(client, &e->event, &e->interrupt, in iso_mc_callback()
948 sizeof(e->interrupt), NULL, 0); in iso_mc_callback()
1258 struct iso_resource_event *e; in iso_resource_work() local
1332 e = r->e_alloc; in iso_resource_work()
1335 e = r->e_dealloc; in iso_resource_work()
1338 e->iso_resource.handle = r->resource.handle; in iso_resource_work()
1339 e->iso_resource.channel = channel; in iso_resource_work()
1340 e->iso_resource.bandwidth = bandwidth; in iso_resource_work()
1342 queue_event(client, &e->event, in iso_resource_work()
1343 &e->iso_resource, sizeof(e->iso_resource), NULL, 0); in iso_resource_work()
1505 struct outbound_phy_packet_event *e = in outbound_phy_packet_callback() local
1511 case ACK_COMPLETE: e->phy_packet.rcode = RCODE_COMPLETE; break; in outbound_phy_packet_callback()
1513 case ACK_PENDING: e->phy_packet.rcode = RCODE_COMPLETE; break; in outbound_phy_packet_callback()
1516 case ACK_BUSY_B: e->phy_packet.rcode = RCODE_BUSY; break; in outbound_phy_packet_callback()
1517 case ACK_DATA_ERROR: e->phy_packet.rcode = RCODE_DATA_ERROR; break; in outbound_phy_packet_callback()
1518 case ACK_TYPE_ERROR: e->phy_packet.rcode = RCODE_TYPE_ERROR; break; in outbound_phy_packet_callback()
1520 default: e->phy_packet.rcode = status; break; in outbound_phy_packet_callback()
1522 e->phy_packet.data[0] = packet->timestamp; in outbound_phy_packet_callback()
1524 e_client = e->client; in outbound_phy_packet_callback()
1525 queue_event(e->client, &e->event, &e->phy_packet, in outbound_phy_packet_callback()
1526 sizeof(e->phy_packet) + e->phy_packet.length, NULL, 0); in outbound_phy_packet_callback()
1534 struct outbound_phy_packet_event *e; in ioctl_send_phy_packet() local
1540 e = kzalloc(sizeof(*e) + 4, GFP_KERNEL); in ioctl_send_phy_packet()
1541 if (e == NULL) in ioctl_send_phy_packet()
1545 e->client = client; in ioctl_send_phy_packet()
1546 e->p.speed = SCODE_100; in ioctl_send_phy_packet()
1547 e->p.generation = a->generation; in ioctl_send_phy_packet()
1548 e->p.header[0] = TCODE_LINK_INTERNAL << 4; in ioctl_send_phy_packet()
1549 e->p.header[1] = a->data[0]; in ioctl_send_phy_packet()
1550 e->p.header[2] = a->data[1]; in ioctl_send_phy_packet()
1551 e->p.header_length = 12; in ioctl_send_phy_packet()
1552 e->p.callback = outbound_phy_packet_callback; in ioctl_send_phy_packet()
1553 e->phy_packet.closure = a->closure; in ioctl_send_phy_packet()
1554 e->phy_packet.type = FW_CDEV_EVENT_PHY_PACKET_SENT; in ioctl_send_phy_packet()
1556 e->phy_packet.length = 4; in ioctl_send_phy_packet()
1558 card->driver->send_request(card, &e->p); in ioctl_send_phy_packet()
1585 struct inbound_phy_packet_event *e; in fw_cdev_handle_phy_packet() local
1591 e = kmalloc(sizeof(*e) + 8, GFP_ATOMIC); in fw_cdev_handle_phy_packet()
1592 if (e == NULL) in fw_cdev_handle_phy_packet()
1595 e->phy_packet.closure = client->phy_receiver_closure; in fw_cdev_handle_phy_packet()
1596 e->phy_packet.type = FW_CDEV_EVENT_PHY_PACKET_RECEIVED; in fw_cdev_handle_phy_packet()
1597 e->phy_packet.rcode = RCODE_COMPLETE; in fw_cdev_handle_phy_packet()
1598 e->phy_packet.length = 8; in fw_cdev_handle_phy_packet()
1599 e->phy_packet.data[0] = p->header[1]; in fw_cdev_handle_phy_packet()
1600 e->phy_packet.data[1] = p->header[2]; in fw_cdev_handle_phy_packet()
1601 queue_event(client, &e->event, in fw_cdev_handle_phy_packet()
1602 &e->phy_packet, sizeof(e->phy_packet) + 8, NULL, 0); in fw_cdev_handle_phy_packet()