Lines Matching refs:create
587 struct msgbuf_tx_flowring_create_req *create; in brcmf_msgbuf_flowring_create_worker() local
621 create = (struct msgbuf_tx_flowring_create_req *)ret_ptr; in brcmf_msgbuf_flowring_create_worker()
622 create->msg.msgtype = MSGBUF_TYPE_FLOW_RING_CREATE; in brcmf_msgbuf_flowring_create_worker()
623 create->msg.ifidx = work->ifidx; in brcmf_msgbuf_flowring_create_worker()
624 create->msg.request_id = 0; in brcmf_msgbuf_flowring_create_worker()
625 create->tid = brcmf_flowring_tid(msgbuf->flow, flowid); in brcmf_msgbuf_flowring_create_worker()
626 create->flow_ring_id = cpu_to_le16(flowid + in brcmf_msgbuf_flowring_create_worker()
628 memcpy(create->sa, work->sa, ETH_ALEN); in brcmf_msgbuf_flowring_create_worker()
629 memcpy(create->da, work->da, ETH_ALEN); in brcmf_msgbuf_flowring_create_worker()
631 create->flow_ring_addr.high_addr = cpu_to_le32(address >> 32); in brcmf_msgbuf_flowring_create_worker()
632 create->flow_ring_addr.low_addr = cpu_to_le32(address & 0xffffffff); in brcmf_msgbuf_flowring_create_worker()
633 create->max_items = cpu_to_le16(BRCMF_H2D_TXFLOWRING_MAX_ITEM); in brcmf_msgbuf_flowring_create_worker()
634 create->len_item = cpu_to_le16(BRCMF_H2D_TXFLOWRING_ITEMSIZE); in brcmf_msgbuf_flowring_create_worker()
637 flowid, work->da, create->tid, work->ifidx); in brcmf_msgbuf_flowring_create_worker()
654 struct brcmf_msgbuf_work_item *create; in brcmf_msgbuf_flowring_worker() local
658 while ((create = brcmf_msgbuf_dequeue_work(msgbuf))) { in brcmf_msgbuf_flowring_worker()
659 brcmf_msgbuf_flowring_create_worker(msgbuf, create); in brcmf_msgbuf_flowring_worker()
660 kfree(create); in brcmf_msgbuf_flowring_worker()
668 struct brcmf_msgbuf_work_item *create; in brcmf_msgbuf_flowring_create() local
673 create = kzalloc(sizeof(*create), GFP_ATOMIC); in brcmf_msgbuf_flowring_create()
674 if (create == NULL) in brcmf_msgbuf_flowring_create()
680 kfree(create); in brcmf_msgbuf_flowring_create()
684 create->flowid = flowid; in brcmf_msgbuf_flowring_create()
685 create->ifidx = ifidx; in brcmf_msgbuf_flowring_create()
686 memcpy(create->sa, eh->h_source, ETH_ALEN); in brcmf_msgbuf_flowring_create()
687 memcpy(create->da, eh->h_dest, ETH_ALEN); in brcmf_msgbuf_flowring_create()
690 list_add_tail(&create->queue, &msgbuf->work_queue); in brcmf_msgbuf_flowring_create()