/kernel/linux/linux-6.6/drivers/xen/ |
H A D | privcmd-buf.c | 15 #include <linux/list.h> 26 struct list_head list; member 31 struct list_head list; member 46 INIT_LIST_HEAD(&file_priv->list); in privcmd_buf_open() 57 list_del(&vma_priv->list); in privcmd_buf_vmapriv_free() 72 while (!list_empty(&file_priv->list)) { in privcmd_buf_release() 73 vma_priv = list_first_entry(&file_priv->list, in privcmd_buf_release() 75 list); in privcmd_buf_release() 163 list_add(&vma_priv->list, &file_priv->list); in privcmd_buf_mmap() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_buffer_pool.c | 49 struct list_head *list = &pool->cache_list[n]; in pool_free_older_than() local 51 if (list_empty(list)) in pool_free_older_than() 58 list_for_each_prev(pos, list) { in pool_free_older_than() 74 if (!list_is_last(pos, list)) in pool_free_older_than() 75 __list_del_many(pos, list); in pool_free_older_than() 80 active |= !list_empty(list); in pool_free_older_than() 129 struct list_head *list = bucket_for_size(pool, node->obj->base.size); in pool_retire() local 139 list_add_rcu(&node->link, list); in pool_retire() 181 struct list_head *list; in intel_gt_get_buffer_pool() local 185 list in intel_gt_get_buffer_pool() [all...] |
/kernel/linux/linux-5.10/drivers/s390/char/ |
H A D | sclp_con.c | 58 list_del(&buffer->list); in sclp_conbuf_callback() 65 struct sclp_buffer, list); in sclp_conbuf_callback() 86 list_add_tail(&sclp_conbuf->list, &sclp_con_outqueue); in sclp_conbuf_emit() 93 list); in sclp_conbuf_emit() 139 struct list_head *list; in sclp_console_drop_buffer() local 145 list = sclp_con_outqueue.next; in sclp_console_drop_buffer() 148 list = list->next; in sclp_console_drop_buffer() 149 if (list == &sclp_con_outqueue) in sclp_console_drop_buffer() 151 list_del(list); in sclp_console_drop_buffer() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/ |
H A D | vpdma.h | 218 /* vpdma descriptor list funcs */ 219 int vpdma_create_desc_list(struct vpdma_desc_list *list, size_t size, int type); 220 void vpdma_reset_desc_list(struct vpdma_desc_list *list); 221 void vpdma_free_desc_list(struct vpdma_desc_list *list); 222 int vpdma_submit_descs(struct vpdma_data *vpdma, struct vpdma_desc_list *list, 226 struct vpdma_desc_list *list, dma_addr_t dma_addr, 229 /* VPDMA hardware list funcs */ 235 void vpdma_add_cfd_block(struct vpdma_desc_list *list, int client, 237 void vpdma_add_cfd_adb(struct vpdma_desc_list *list, int client, 239 void vpdma_add_sync_on_channel_ctd(struct vpdma_desc_list *list, [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/ti/vpe/ |
H A D | vpdma.h | 218 /* vpdma descriptor list funcs */ 219 int vpdma_create_desc_list(struct vpdma_desc_list *list, size_t size, int type); 220 void vpdma_reset_desc_list(struct vpdma_desc_list *list); 221 void vpdma_free_desc_list(struct vpdma_desc_list *list); 222 int vpdma_submit_descs(struct vpdma_data *vpdma, struct vpdma_desc_list *list, 226 struct vpdma_desc_list *list, dma_addr_t dma_addr, 229 /* VPDMA hardware list funcs */ 235 void vpdma_add_cfd_block(struct vpdma_desc_list *list, int client, 237 void vpdma_add_cfd_adb(struct vpdma_desc_list *list, int client, 239 void vpdma_add_sync_on_channel_ctd(struct vpdma_desc_list *list, [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_buffer_pool.c | 45 struct list_head *list = &pool->cache_list[n]; in pool_free_older_than() local 47 if (list_empty(list)) in pool_free_older_than() 54 list_for_each_prev(pos, list) { in pool_free_older_than() 70 if (!list_is_last(pos, list)) in pool_free_older_than() 71 __list_del_many(pos, list); in pool_free_older_than() 76 active |= !list_empty(list); in pool_free_older_than() 104 struct list_head *list = bucket_for_size(pool, node->obj->base.size); in pool_retire() local 117 list_add_rcu(&node->link, list); in pool_retire() 176 struct list_head *list; in intel_gt_get_buffer_pool() local 180 list in intel_gt_get_buffer_pool() [all...] |
/kernel/linux/linux-6.6/tools/testing/radix-tree/ |
H A D | linux.c | 121 void kmem_cache_free_bulk(struct kmem_cache *cachep, size_t size, void **list) in kmem_cache_free_bulk() argument 124 pr_debug("Bulk free %p[0-%lu]\n", list, size - 1); in kmem_cache_free_bulk() 128 kmem_cache_free_locked(cachep, list[i]); in kmem_cache_free_bulk() 214 void *list[12]; in test_kmem_cache_bulk() local 224 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM); in test_kmem_cache_bulk() 227 kmem_cache_free(test_cache, list[i]); in test_kmem_cache_bulk() 230 kmem_cache_alloc_bulk(test_cache, __GFP_DIRECT_RECLAIM, 5, list); in test_kmem_cache_bulk() 231 kmem_cache_free_bulk(test_cache, 5, list); in test_kmem_cache_bulk() 234 list[i] = kmem_cache_alloc(test_cache, __GFP_DIRECT_RECLAIM); in test_kmem_cache_bulk() 237 kmem_cache_free(test_cache, list[ in test_kmem_cache_bulk() [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
H A D | f_printer.c | 25 #include <linux/list.h> 267 list_del_init(&req->list); /* Remode from Active List */ in rx_complete() 274 list_add_tail(&req->list, &dev->rx_buffers); in rx_complete() 277 list_add(&req->list, &dev->rx_reqs); in rx_complete() 285 list_add(&req->list, &dev->rx_reqs); in rx_complete() 291 list_add(&req->list, &dev->rx_reqs); in rx_complete() 300 list_add(&req->list, &dev->rx_reqs); in rx_complete() 324 /* Take the request struct off the active list and put it on the in tx_complete() 325 * free list. in tx_complete() 327 list_del_init(&req->list); in tx_complete() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/ |
H A D | nft_nat.sh | 86 ip netns exec $ns nft list counter inet filter $counter 1>&2 94 cnt=$(ip netns exec $ns nft list counter inet filter ns0in | grep -q "packets 1 bytes 84") 99 cnt=$(ip netns exec $ns nft list counter inet filter ns0out | grep -q "packets 1 bytes 84") 106 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect") 111 cnt=$(ip netns exec $ns nft list counter inet filter ns0out6 | grep -q "$expect") 125 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in | grep -q "packets 0 bytes 0") 131 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in6 | grep -q "packets 0 bytes 0") 137 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0out | grep -q "packets 0 bytes 0") 142 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0out6 | grep -q "packets 0 bytes 0") 150 cnt=$(ip netns exec "$ns0" nft list counte [all...] |
/drivers/peripheral/usb/hdi_service/src/ |
H A D | usbd_dispatcher.cpp | 626 int32_t UsbdDispatcher::UsbdBulkASyncReqRelease(UsbdBulkASyncReqList *list)
in UsbdBulkASyncReqRelease() argument 629 UsbFreeRequest(list->node[i].request);
in UsbdBulkASyncReqRelease() 630 list->node[i].request = nullptr;
in UsbdBulkASyncReqRelease() 632 DListHeadInit(&list->eList);
in UsbdBulkASyncReqRelease() 633 DListHeadInit(&list->uList);
in UsbdBulkASyncReqRelease() 634 OsalMutexDestroy(&list->elock);
in UsbdBulkASyncReqRelease() 635 OsalMutexDestroy(&list->ulock);
in UsbdBulkASyncReqRelease() 639 int32_t UsbdDispatcher::UsbdBulkASyncListRelease(UsbdBulkASyncList *list)
in UsbdBulkASyncListRelease() argument 641 UsbdBulkASyncReqRelease(&list->rList);
in UsbdBulkASyncListRelease() 642 OsalMutexDestroy(&list in UsbdBulkASyncListRelease() 1044 UsbdBulkASyncReqInit(UsbdBulkASyncReqList *list, UsbdBulkASyncList *pList) UsbdBulkASyncReqInit() argument 1131 UsbdBulkASyncReqGetENode(UsbdBulkASyncReqList *list) UsbdBulkASyncReqGetENode() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/phy/ |
H A D | mii_timestamper.c | 13 struct list_head list; member 35 INIT_LIST_HEAD(&desc->list); in register_mii_tstamp_controller() 40 list_add_tail(&mii_timestamping_devices, &desc->list); in register_mii_tstamp_controller() 59 desc = list_entry(this, struct mii_timestamping_desc, list); in unregister_mii_tstamp_controller() 61 list_del_init(&desc->list); in unregister_mii_tstamp_controller() 87 desc = list_entry(this, struct mii_timestamping_desc, list); in register_mii_timestamper() 123 desc = list_entry(this, struct mii_timestamping_desc, list); in unregister_mii_timestamper()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/ |
H A D | base.c | 9 #include <linux/list.h> 56 list_add_tail(&dssdev->list, &omapdss_devices_list); in omapdss_device_register() 64 list_del(&dssdev->list); in omapdss_device_unregister() 76 list_for_each_entry(dssdev, &omapdss_devices_list, list) { in omapdss_device_is_registered() 112 list_for_each_entry(dssdev, &omapdss_devices_list, list) { in omapdss_find_device_by_node() 127 struct list_head *list; in omapdss_device_next_output() local 140 list = from ? &from->list : &omapdss_devices_list; in omapdss_device_next_output() 142 list_for_each_entry(dssdev, list, list) { in omapdss_device_next_output() 270 struct list_head list; global() member [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | rhashtable.h | 10 * Rewritten with rehash code from br_multicast plus single list 37 * of the right list. 465 * This hash chain list-traversal primitive allows for the looped code to 466 * remove the loop cursor from the list. 484 * This hash chain list-traversal primitive may safely run concurrently with 500 * This hash chain list-traversal primitive may safely run concurrently with 519 * This hash chain list-traversal primitive may safely run concurrently with 537 * This hash chain list-traversal primitive may safely run concurrently with 547 * rhl_for_each_rcu - iterate over rcu hash table list 549 * @list 734 struct rhlist_head *list; __rhashtable_insert_fast() local 781 struct rhlist_head *list; __rhashtable_insert_fast() local 848 rhltable_insert_key( struct rhltable *hlt, const void *key, struct rhlist_head *list, const struct rhashtable_params params) rhltable_insert_key() argument 871 rhltable_insert( struct rhltable *hlt, struct rhlist_head *list, const struct rhashtable_params params) rhltable_insert() argument 1005 struct rhlist_head *list; __rhashtable_remove_fast_one() local 1130 rhltable_remove( struct rhltable *hlt, struct rhlist_head *list, const struct rhashtable_params params) rhltable_remove() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | rhashtable.h | 10 * Rewritten with rehash code from br_multicast plus single list 37 * of the right list. 473 * This hash chain list-traversal primitive allows for the looped code to 474 * remove the loop cursor from the list. 492 * This hash chain list-traversal primitive may safely run concurrently with 508 * This hash chain list-traversal primitive may safely run concurrently with 527 * This hash chain list-traversal primitive may safely run concurrently with 545 * This hash chain list-traversal primitive may safely run concurrently with 555 * rhl_for_each_rcu - iterate over rcu hash table list 557 * @list 743 struct rhlist_head *list; __rhashtable_insert_fast() local 790 struct rhlist_head *list; __rhashtable_insert_fast() local 857 rhltable_insert_key( struct rhltable *hlt, const void *key, struct rhlist_head *list, const struct rhashtable_params params) rhltable_insert_key() argument 880 rhltable_insert( struct rhltable *hlt, struct rhlist_head *list, const struct rhashtable_params params) rhltable_insert() argument 1015 struct rhlist_head *list; __rhashtable_remove_fast_one() local 1140 rhltable_remove( struct rhltable *hlt, struct rhlist_head *list, const struct rhashtable_params params) rhltable_remove() argument [all...] |
/kernel/liteos_a/kernel/extended/plimit/ |
H A D | los_devicelimit.c | 7 * 1. Redistributions of source code must retain the above copyright notice, this list of 10 * 2. Redistributions in binary form must reproduce the above copyright notice, this list 68 LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(delItem, tmpItem, &devLimit->accessList, DevAccessItem, list) { in DevAccessListDelete() 69 LOS_ListDelete(&delItem->list); in DevAccessListDelete() 90 LOS_DL_LIST_FOR_EACH_ENTRY(tmpItem, &devLimitSrc->accessList, DevAccessItem, list) { in DevLimitCopyAccess() 96 LOS_ListTailInsert(&devLimitDest->accessList, &newItem->list); in DevLimitCopyAccess() 234 STATIC BOOL DevLimitMatchItemPartial(LOS_DL_LIST *list, DevAccessItem *item) in DevLimitMatchItemPartial() argument 236 if ((list == NULL) || (item == NULL)) { in DevLimitMatchItemPartial() 239 if (LOS_ListEmpty(list)) { in DevLimitMatchItemPartial() 243 LOS_DL_LIST_FOR_EACH_ENTRY(walk, list, DevAccessIte in DevLimitMatchItemPartial() 267 DevLimitMatchItem(LOS_DL_LIST *list, DevAccessItem *item) DevLimitMatchItem() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | f_printer.c | 25 #include <linux/list.h> 272 list_del_init(&req->list); /* Remode from Active List */ in rx_complete() 279 list_add_tail(&req->list, &dev->rx_buffers); in rx_complete() 282 list_add(&req->list, &dev->rx_reqs); in rx_complete() 290 list_add(&req->list, &dev->rx_reqs); in rx_complete() 296 list_add(&req->list, &dev->rx_reqs); in rx_complete() 305 list_add(&req->list, &dev->rx_reqs); in rx_complete() 329 /* Take the request struct off the active list and put it on the in tx_complete() 330 * free list. in tx_complete() 332 list_del_init(&req->list); in tx_complete() [all...] |
/kernel/linux/linux-5.10/net/tipc/ |
H A D | msg.c | 12 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer in the 123 /* tipc_buf_append(): Append a buffer to the fragment list of another buffer 301 * tipc_msg_fragment - build a fragment skb list for TIPC message 306 * @frags: returned fragment skb list 365 * @list: Buffer or chain of buffers to be returned to caller 373 int dsz, int pktmax, struct sk_buff_head *list) in tipc_msg_build() 397 one_page_mtu, list); in tipc_msg_build() 400 if (tipc_msg_assemble(list)) in tipc_msg_build() 405 __skb_queue_tail(list, sk in tipc_msg_build() 372 tipc_msg_build(struct tipc_msg *mhdr, struct msghdr *m, int offset, int dsz, int pktmax, struct sk_buff_head *list) tipc_msg_build() argument 735 tipc_msg_assemble(struct sk_buff_head *list) tipc_msg_assemble() argument 760 tipc_msg_reassemble(struct sk_buff_head *list, struct sk_buff_head *rcvq) tipc_msg_reassemble() argument 819 __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno, struct sk_buff *skb) __tipc_skb_queue_sorted() argument [all...] |
/kernel/linux/linux-6.6/net/tipc/ |
H A D | msg.c | 12 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer in the 117 /* tipc_buf_append(): Append a buffer to the fragment list of another buffer 296 * tipc_msg_fragment - build a fragment skb list for TIPC message 301 * @frags: returned fragment skb list 361 * @list: Buffer or chain of buffers to be returned to caller 369 int dsz, int pktmax, struct sk_buff_head *list) in tipc_msg_build() 393 one_page_mtu, list); in tipc_msg_build() 396 if (tipc_msg_assemble(list)) in tipc_msg_build() 401 __skb_queue_tail(list, sk in tipc_msg_build() 368 tipc_msg_build(struct tipc_msg *mhdr, struct msghdr *m, int offset, int dsz, int pktmax, struct sk_buff_head *list) tipc_msg_build() argument 735 tipc_msg_assemble(struct sk_buff_head *list) tipc_msg_assemble() argument 760 tipc_msg_reassemble(struct sk_buff_head *list, struct sk_buff_head *rcvq) tipc_msg_reassemble() argument 819 __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno, struct sk_buff *skb) __tipc_skb_queue_sorted() argument [all...] |
/kernel/linux/linux-6.6/net/bluetooth/ |
H A D | hci_core.c | 55 /* HCI device list */ 59 /* HCI callback list */ 122 list_for_each_entry(d, &hci_dev_list, list) { in hci_dev_get() 216 list_for_each_entry(e, &cache->unknown, list) { in hci_inquiry_cache_lookup_unknown() 233 list_for_each_entry(e, &cache->resolve, list) { in hci_inquiry_cache_lookup_resolve() 250 list_del(&ie->list); in hci_inquiry_cache_update_resolve() 252 list_for_each_entry(p, &cache->resolve, list) { in hci_inquiry_cache_update_resolve() 256 pos = &p->list; in hci_inquiry_cache_update_resolve() 259 list_add(&ie->list, pos); in hci_inquiry_cache_update_resolve() 303 list_add(&ie->list, in hci_inquiry_cache_update() 2106 hci_bdaddr_list_add(struct list_head *list, bdaddr_t *bdaddr, u8 type) hci_bdaddr_list_add() argument 2128 hci_bdaddr_list_add_with_irk(struct list_head *list, bdaddr_t *bdaddr, u8 type, u8 *peer_irk, u8 *local_irk) hci_bdaddr_list_add_with_irk() argument 2157 hci_bdaddr_list_add_with_flags(struct list_head *list, bdaddr_t *bdaddr, u8 type, u32 flags) hci_bdaddr_list_add_with_flags() argument 2181 hci_bdaddr_list_del(struct list_head *list, bdaddr_t *bdaddr, u8 type) hci_bdaddr_list_del() argument 2200 hci_bdaddr_list_del_with_irk(struct list_head *list, bdaddr_t *bdaddr, u8 type) hci_bdaddr_list_del_with_irk() argument 2220 hci_bdaddr_list_del_with_flags(struct list_head *list, bdaddr_t *bdaddr, u8 type) hci_bdaddr_list_del_with_flags() argument 2257 hci_pend_le_action_lookup(struct list_head *list, bdaddr_t *addr, u8 addr_type) hci_pend_le_action_lookup() argument 2289 hci_pend_le_list_add(struct hci_conn_params *param, struct list_head *list) hci_pend_le_list_add() argument 3207 struct sk_buff *list; hci_queue_acl() local 3313 struct sk_buff *list; hci_queue_iso() local [all...] |
/kernel/linux/linux-5.10/net/dsa/ |
H A D | dsa2.c | 11 #include <linux/list.h> 29 list_for_each_entry(dst, &dsa_tree_list, list) { in dsa_switch_find() 33 list_for_each_entry(dp, &dst->ports, list) { in dsa_switch_find() 49 list_for_each_entry(dst, &dsa_tree_list, list) in dsa_tree_find() 70 INIT_LIST_HEAD(&dst->list); in dsa_tree_alloc() 71 list_add_tail(&dst->list, &dsa_tree_list); in dsa_tree_alloc() 80 list_del(&dst->list); in dsa_tree_free() 138 list_for_each_entry(dp, &dst->ports, list) in dsa_tree_find_port_by_node() 154 list_for_each_entry(dl, &dst->rtable, list) in dsa_link_touch() 165 INIT_LIST_HEAD(&dl->list); in dsa_link_touch() [all...] |
/kernel/linux/linux-5.10/drivers/acpi/apei/ |
H A D | apei-base.c | 284 struct list_head list; member 304 list_for_each_entry_safe(res, resn, res_list, list) { in apei_res_add() 311 list_del(&res->list); in apei_res_add() 320 list_add(&res_ins->list, res_list); in apei_res_add() 327 list_add(&res_ins->list, res_list); in apei_res_add() 337 res1 = list_entry(res_list1->next, struct apei_res, list); in apei_res_sub() 338 resn1 = list_entry(res1->list.next, struct apei_res, list); in apei_res_sub() 339 while (&res1->list != res_list1) { in apei_res_sub() 340 list_for_each_entry(res2, res_list2, list) { in apei_res_sub() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/ |
H A D | cptvf_reqmanager.c | 44 static int setup_sgio_components(struct cpt_vf *cptvf, struct buf_ptr *list, in setup_sgio_components() argument 52 if (unlikely(!list)) { in setup_sgio_components() 58 if (likely(list[i].vptr)) { in setup_sgio_components() 59 list[i].dma_addr = dma_map_single(&pdev->dev, in setup_sgio_components() 60 list[i].vptr, in setup_sgio_components() 61 list[i].size, in setup_sgio_components() 64 list[i].dma_addr))) { in setup_sgio_components() 76 sg_ptr->u.s.len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components() 77 sg_ptr->u.s.len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components() 78 sg_ptr->u.s.len2 = cpu_to_be16(list[ in setup_sgio_components() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_reqmgr.c | 18 /* SG list header size in bytes */ 35 pr_debug("Gather list size %d\n", req->incnt); in otx_cpt_dump_sg_list() 46 pr_debug("Scatter list size %d\n", req->outcnt); in otx_cpt_dump_sg_list() 97 struct otx_cpt_buf_ptr *list, in setup_sgio_components() 104 if (unlikely(!list)) { in setup_sgio_components() 105 dev_err(&pdev->dev, "Input list pointer is NULL\n"); in setup_sgio_components() 110 if (likely(list[i].vptr)) { in setup_sgio_components() 111 list[i].dma_addr = dma_map_single(&pdev->dev, in setup_sgio_components() 112 list[i].vptr, in setup_sgio_components() 113 list[ in setup_sgio_components() 96 setup_sgio_components(struct pci_dev *pdev, struct otx_cpt_buf_ptr *list, int buf_count, u8 *buffer) setup_sgio_components() argument [all...] |
/kernel/linux/linux-6.6/drivers/acpi/apei/ |
H A D | apei-base.c | 281 struct list_head list; member 301 list_for_each_entry_safe(res, resn, res_list, list) { in apei_res_add() 308 list_del(&res->list); in apei_res_add() 317 list_add(&res_ins->list, res_list); in apei_res_add() 324 list_add(&res_ins->list, res_list); in apei_res_add() 334 res1 = list_entry(res_list1->next, struct apei_res, list); in apei_res_sub() 335 resn1 = list_entry(res1->list.next, struct apei_res, list); in apei_res_sub() 336 while (&res1->list != res_list1) { in apei_res_sub() 337 list_for_each_entry(res2, res_list2, list) { in apei_res_sub() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/cavium/cpt/ |
H A D | cptvf_reqmanager.c | 44 static int setup_sgio_components(struct cpt_vf *cptvf, struct buf_ptr *list, in setup_sgio_components() argument 52 if (unlikely(!list)) { in setup_sgio_components() 58 if (likely(list[i].vptr)) { in setup_sgio_components() 59 list[i].dma_addr = dma_map_single(&pdev->dev, in setup_sgio_components() 60 list[i].vptr, in setup_sgio_components() 61 list[i].size, in setup_sgio_components() 64 list[i].dma_addr))) { in setup_sgio_components() 76 sg_ptr->u.s.len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components() 77 sg_ptr->u.s.len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components() 78 sg_ptr->u.s.len2 = cpu_to_be16(list[ in setup_sgio_components() [all...] |