• Home
  • Raw
  • Download

Lines Matching refs:e

390 	struct bus_reset_event *e;  in queue_bus_reset_event()  local
392 e = kzalloc(sizeof(*e), GFP_KERNEL); in queue_bus_reset_event()
393 if (e == NULL) in queue_bus_reset_event()
396 fill_bus_reset_event(&e->reset, client); in queue_bus_reset_event()
398 queue_event(client, &e->event, in queue_bus_reset_event()
399 &e->reset, sizeof(e->reset), NULL, 0); in queue_bus_reset_event()
551 struct outbound_transaction_event *e = data; in complete_transaction() local
552 struct fw_cdev_event_response *rsp = &e->response; in complete_transaction()
553 struct client *client = e->client; in complete_transaction()
562 idr_remove(&client->resource_idr, e->r.resource.handle); in complete_transaction()
578 queue_event(client, &e->event, rsp, sizeof(*rsp), in complete_transaction()
581 queue_event(client, &e->event, rsp, sizeof(*rsp) + rsp->length, in complete_transaction()
592 struct outbound_transaction_event *e; in init_request() local
603 e = kmalloc(sizeof(*e) + request->length, GFP_KERNEL); in init_request()
604 if (e == NULL) in init_request()
607 e->client = client; in init_request()
608 e->response.length = request->length; in init_request()
609 e->response.closure = request->closure; in init_request()
612 copy_from_user(e->response.data, in init_request()
618 e->r.resource.release = release_transaction; in init_request()
619 ret = add_client_resource(client, &e->r.resource, GFP_KERNEL); in init_request()
623 fw_send_request(client->device->card, &e->r.transaction, in init_request()
625 speed, request->offset, e->response.data, in init_request()
626 request->length, complete_transaction, e); in init_request()
630 kfree(e); in init_request()
685 struct inbound_transaction_event *e; in handle_request() local
694 e = kmalloc(sizeof(*e), GFP_ATOMIC); in handle_request()
695 if (r == NULL || e == NULL) in handle_request()
721 struct fw_cdev_event_request *req = &e->req.request; in handle_request()
734 struct fw_cdev_event_request2 *req = &e->req.request2; in handle_request()
749 queue_event(handler->client, &e->event, in handle_request()
750 &e->req, event_size0, r->data, length); in handle_request()
755 kfree(e); in handle_request()
928 struct iso_interrupt_event *e; in iso_callback() local
930 e = kmalloc(sizeof(*e) + header_length, GFP_ATOMIC); in iso_callback()
931 if (e == NULL) in iso_callback()
934 e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT; in iso_callback()
935 e->interrupt.closure = client->iso_closure; in iso_callback()
936 e->interrupt.cycle = cycle; in iso_callback()
937 e->interrupt.header_length = header_length; in iso_callback()
938 memcpy(e->interrupt.header, header, header_length); in iso_callback()
939 queue_event(client, &e->event, &e->interrupt, in iso_callback()
940 sizeof(e->interrupt) + header_length, NULL, 0); in iso_callback()
947 struct iso_interrupt_mc_event *e; in iso_mc_callback() local
949 e = kmalloc(sizeof(*e), GFP_ATOMIC); in iso_mc_callback()
950 if (e == NULL) in iso_mc_callback()
953 e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL; in iso_mc_callback()
954 e->interrupt.closure = client->iso_closure; in iso_mc_callback()
955 e->interrupt.completed = fw_iso_buffer_lookup(&client->buffer, in iso_mc_callback()
957 queue_event(client, &e->event, &e->interrupt, in iso_mc_callback()
958 sizeof(e->interrupt), NULL, 0); in iso_mc_callback()
1249 struct iso_resource_event *e; in iso_resource_work() local
1323 e = r->e_alloc; in iso_resource_work()
1326 e = r->e_dealloc; in iso_resource_work()
1329 e->iso_resource.handle = r->resource.handle; in iso_resource_work()
1330 e->iso_resource.channel = channel; in iso_resource_work()
1331 e->iso_resource.bandwidth = bandwidth; in iso_resource_work()
1333 queue_event(client, &e->event, in iso_resource_work()
1334 &e->iso_resource, sizeof(e->iso_resource), NULL, 0); in iso_resource_work()
1496 struct outbound_phy_packet_event *e = in outbound_phy_packet_callback() local
1501 case ACK_COMPLETE: e->phy_packet.rcode = RCODE_COMPLETE; break; in outbound_phy_packet_callback()
1503 case ACK_PENDING: e->phy_packet.rcode = RCODE_COMPLETE; break; in outbound_phy_packet_callback()
1506 case ACK_BUSY_B: e->phy_packet.rcode = RCODE_BUSY; break; in outbound_phy_packet_callback()
1507 case ACK_DATA_ERROR: e->phy_packet.rcode = RCODE_DATA_ERROR; break; in outbound_phy_packet_callback()
1508 case ACK_TYPE_ERROR: e->phy_packet.rcode = RCODE_TYPE_ERROR; break; in outbound_phy_packet_callback()
1510 default: e->phy_packet.rcode = status; break; in outbound_phy_packet_callback()
1512 e->phy_packet.data[0] = packet->timestamp; in outbound_phy_packet_callback()
1514 queue_event(e->client, &e->event, &e->phy_packet, in outbound_phy_packet_callback()
1515 sizeof(e->phy_packet) + e->phy_packet.length, NULL, 0); in outbound_phy_packet_callback()
1516 client_put(e->client); in outbound_phy_packet_callback()
1523 struct outbound_phy_packet_event *e; in ioctl_send_phy_packet() local
1529 e = kzalloc(sizeof(*e) + 4, GFP_KERNEL); in ioctl_send_phy_packet()
1530 if (e == NULL) in ioctl_send_phy_packet()
1534 e->client = client; in ioctl_send_phy_packet()
1535 e->p.speed = SCODE_100; in ioctl_send_phy_packet()
1536 e->p.generation = a->generation; in ioctl_send_phy_packet()
1537 e->p.header[0] = TCODE_LINK_INTERNAL << 4; in ioctl_send_phy_packet()
1538 e->p.header[1] = a->data[0]; in ioctl_send_phy_packet()
1539 e->p.header[2] = a->data[1]; in ioctl_send_phy_packet()
1540 e->p.header_length = 12; in ioctl_send_phy_packet()
1541 e->p.callback = outbound_phy_packet_callback; in ioctl_send_phy_packet()
1542 e->phy_packet.closure = a->closure; in ioctl_send_phy_packet()
1543 e->phy_packet.type = FW_CDEV_EVENT_PHY_PACKET_SENT; in ioctl_send_phy_packet()
1545 e->phy_packet.length = 4; in ioctl_send_phy_packet()
1547 card->driver->send_request(card, &e->p); in ioctl_send_phy_packet()
1574 struct inbound_phy_packet_event *e; in fw_cdev_handle_phy_packet() local
1580 e = kmalloc(sizeof(*e) + 8, GFP_ATOMIC); in fw_cdev_handle_phy_packet()
1581 if (e == NULL) in fw_cdev_handle_phy_packet()
1584 e->phy_packet.closure = client->phy_receiver_closure; in fw_cdev_handle_phy_packet()
1585 e->phy_packet.type = FW_CDEV_EVENT_PHY_PACKET_RECEIVED; in fw_cdev_handle_phy_packet()
1586 e->phy_packet.rcode = RCODE_COMPLETE; in fw_cdev_handle_phy_packet()
1587 e->phy_packet.length = 8; in fw_cdev_handle_phy_packet()
1588 e->phy_packet.data[0] = p->header[1]; in fw_cdev_handle_phy_packet()
1589 e->phy_packet.data[1] = p->header[2]; in fw_cdev_handle_phy_packet()
1590 queue_event(client, &e->event, in fw_cdev_handle_phy_packet()
1591 &e->phy_packet, sizeof(e->phy_packet) + 8, NULL, 0); in fw_cdev_handle_phy_packet()