/drivers/iommu/ |
D | dma-iommu.c | 59 static inline size_t cookie_msi_granule(struct iommu_dma_cookie *cookie) in cookie_msi_granule() argument 61 if (cookie->type == IOMMU_DMA_IOVA_COOKIE) in cookie_msi_granule() 62 return cookie->iovad.granule; in cookie_msi_granule() 68 struct iommu_dma_cookie *cookie; in cookie_alloc() local 70 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in cookie_alloc() 71 if (cookie) { in cookie_alloc() 72 spin_lock_init(&cookie->msi_lock); in cookie_alloc() 73 INIT_LIST_HEAD(&cookie->msi_page_list); in cookie_alloc() 74 cookie->type = type; in cookie_alloc() 76 return cookie; in cookie_alloc() [all …]
|
D | io-pgtable.h | 31 void (*tlb_flush_all)(void *cookie); 33 bool leaf, void *cookie); 34 void (*tlb_sync)(void *cookie); 140 void *cookie); 167 void *cookie; member 176 iop->cfg.tlb->tlb_flush_all(iop->cookie); in io_pgtable_tlb_flush_all() 182 iop->cfg.tlb->tlb_add_flush(iova, size, granule, leaf, iop->cookie); in io_pgtable_tlb_add_flush() 187 iop->cfg.tlb->tlb_sync(iop->cookie); in io_pgtable_tlb_sync() 198 struct io_pgtable *(*alloc)(struct io_pgtable_cfg *cfg, void *cookie);
|
D | io-pgtable.c | 42 void *cookie) in alloc_io_pgtable_ops() argument 54 iop = fns->alloc(cfg, cookie); in alloc_io_pgtable_ops() 59 iop->cookie = cookie; in alloc_io_pgtable_ops()
|
/drivers/dma/ |
D | dmaengine.h | 18 chan->cookie = DMA_MIN_COOKIE; in dma_cookie_init() 32 dma_cookie_t cookie; in dma_cookie_assign() local 34 cookie = chan->cookie + 1; in dma_cookie_assign() 35 if (cookie < DMA_MIN_COOKIE) in dma_cookie_assign() 36 cookie = DMA_MIN_COOKIE; in dma_cookie_assign() 37 tx->cookie = chan->cookie = cookie; in dma_cookie_assign() 39 return cookie; in dma_cookie_assign() 54 BUG_ON(tx->cookie < DMA_MIN_COOKIE); in dma_cookie_complete() 55 tx->chan->completed_cookie = tx->cookie; in dma_cookie_complete() 56 tx->cookie = 0; in dma_cookie_complete() [all …]
|
D | iop-adma.c | 62 struct iop_adma_chan *iop_chan, dma_cookie_t cookie) in iop_adma_run_tx_complete_actions() argument 66 BUG_ON(tx->cookie < 0); in iop_adma_run_tx_complete_actions() 67 if (tx->cookie > 0) { in iop_adma_run_tx_complete_actions() 68 cookie = tx->cookie; in iop_adma_run_tx_complete_actions() 69 tx->cookie = 0; in iop_adma_run_tx_complete_actions() 84 return cookie; in iop_adma_run_tx_complete_actions() 116 dma_cookie_t cookie = 0; in __iop_adma_slot_cleanup() local 129 iter->async_tx.cookie, iter->idx, busy, in __iop_adma_slot_cleanup() 201 cookie = iop_adma_run_tx_complete_actions( in __iop_adma_slot_cleanup() 202 grp_iter, iop_chan, cookie); in __iop_adma_slot_cleanup() [all …]
|
D | virt-dma.c | 27 dma_cookie_t cookie; in vchan_tx_submit() local 30 cookie = dma_cookie_assign(tx); in vchan_tx_submit() 36 vc, vd, cookie); in vchan_tx_submit() 38 return cookie; in vchan_tx_submit() 63 vc, vd, vd->tx.cookie); in vchan_tx_desc_free() 70 dma_cookie_t cookie) in vchan_find_desc() argument 75 if (vd->tx.cookie == cookie) in vchan_find_desc()
|
D | mic_x100_dma.c | 105 if (tx->cookie) { in mic_dma_cleanup() 252 dma_cookie_t cookie; in mic_dma_tx_submit_unlock() local 255 cookie = tx->cookie; in mic_dma_tx_submit_unlock() 265 return cookie; in mic_dma_tx_submit_unlock() 347 mic_dma_tx_status(struct dma_chan *ch, dma_cookie_t cookie, in mic_dma_tx_status() argument 352 if (DMA_COMPLETE != dma_cookie_status(ch, cookie, txstate)) in mic_dma_tx_status() 355 return dma_cookie_status(ch, cookie, txstate); in mic_dma_tx_status() 479 ch->cookie = in mic_dma_setup_irq() 483 if (IS_ERR(ch->cookie)) in mic_dma_setup_irq() 484 return PTR_ERR(ch->cookie); in mic_dma_setup_irq() [all …]
|
D | mv_xor.c | 202 dma_cookie_t cookie) in mv_desc_run_tx_complete_actions() argument 204 BUG_ON(desc->async_tx.cookie < 0); in mv_desc_run_tx_complete_actions() 206 if (desc->async_tx.cookie > 0) { in mv_desc_run_tx_complete_actions() 207 cookie = desc->async_tx.cookie; in mv_desc_run_tx_complete_actions() 219 return cookie; in mv_desc_run_tx_complete_actions() 274 dma_cookie_t cookie = 0; in mv_chan_slot_cleanup() local 294 cookie = mv_desc_run_tx_complete_actions(iter, mv_chan, in mv_chan_slot_cleanup() 295 cookie); in mv_chan_slot_cleanup() 343 if (cookie > 0) in mv_chan_slot_cleanup() 344 mv_chan->dmachan.completed_cookie = cookie; in mv_chan_slot_cleanup() [all …]
|
/drivers/oprofile/ |
D | buffer_sync.c | 213 unsigned long cookie; in fast_get_dcookie() local 217 get_dcookie(path, &cookie); in fast_get_dcookie() 218 return cookie; in fast_get_dcookie() 229 unsigned long cookie = NO_COOKIE; in get_exec_dcookie() local 239 cookie = fast_get_dcookie(&exe_file->f_path); in get_exec_dcookie() 242 return cookie; in get_exec_dcookie() 256 unsigned long cookie = NO_COOKIE; in lookup_dcookie() local 266 cookie = fast_get_dcookie(&vma->vm_file->f_path); in lookup_dcookie() 278 cookie = INVALID_COOKIE; in lookup_dcookie() 281 return cookie; in lookup_dcookie() [all …]
|
/drivers/media/platform/qcom/venus/ |
D | hfi_cmds.h | 269 u32 addr, void *cookie); 271 u32 size, void *cookie); 275 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie); 278 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, 280 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie); 282 void *cookie, struct hfi_buffer_desc *bd); 284 void *cookie, struct hfi_buffer_desc *bd); 286 void *cookie, struct hfi_frame_data *input_frame); 289 void *cookie, struct hfi_frame_data *input_frame); 291 void *cookie, struct hfi_frame_data *output_frame); [all …]
|
D | hfi_cmds.c | 70 u32 addr, void *cookie) in pkt_sys_set_resource() argument 74 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_set_resource() 97 u32 size, void *cookie) in pkt_sys_unset_resource() argument 101 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_unset_resource() 117 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie) in pkt_sys_ping() argument 121 pkt->client_data = cookie; in pkt_sys_ping() 161 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, in pkt_session_init() argument 164 if (!pkt || !cookie || !codec) in pkt_session_init() 169 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_init() 176 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie) in pkt_session_cmd() argument [all …]
|
/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 149 struct net_device *rdma_ndev, void *cookie) in is_eth_port_of_netdev() argument 158 real_dev = rdma_vlan_dev_real_dev(cookie); in is_eth_port_of_netdev() 160 real_dev = cookie; in is_eth_port_of_netdev() 162 res = ((rdma_is_upper_dev_rcu(rdma_ndev, cookie) && in is_eth_port_of_netdev() 172 struct net_device *rdma_ndev, void *cookie) in is_eth_port_inactive_slave() argument 190 struct net_device *rdma_ndev, void *cookie) in pass_all_filter() argument 196 struct net_device *rdma_ndev, void *cookie) in upper_device_filter() argument 203 if (rdma_ndev == cookie) in upper_device_filter() 207 res = rdma_is_upper_dev_rcu(rdma_ndev, cookie); in upper_device_filter() 382 struct net_device *rdma_ndev, void *cookie) in add_netdev_ips() argument [all …]
|
/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_proto.c | 70 struct ksock_tx *tx_ack, __u64 cookie) in ksocknal_queue_tx_zcack_v2() argument 105 cookie = tx_ack->tx_msg.ksm_zc_cookies[1]; in ksocknal_queue_tx_zcack_v2() 108 tx->tx_msg.ksm_zc_cookies[1] = cookie; in ksocknal_queue_tx_zcack_v2() 153 struct ksock_tx *tx_ack, __u64 cookie) in ksocknal_queue_tx_zcack_v3() argument 158 return ksocknal_queue_tx_zcack_v2(conn, tx_ack, cookie); in ksocknal_queue_tx_zcack_v3() 177 cookie = tx_ack->tx_msg.ksm_zc_cookies[1]; in ksocknal_queue_tx_zcack_v3() 179 if (cookie == SOCKNAL_KEEPALIVE_PING) /* ignore keepalive PING */ in ksocknal_queue_tx_zcack_v3() 185 tx->tx_msg.ksm_zc_cookies[1] = cookie; in ksocknal_queue_tx_zcack_v3() 189 if (cookie == tx->tx_msg.ksm_zc_cookies[0] || in ksocknal_queue_tx_zcack_v3() 190 cookie == tx->tx_msg.ksm_zc_cookies[1]) { in ksocknal_queue_tx_zcack_v3() [all …]
|
/drivers/dma/sh/ |
D | shdma-base.c | 79 dma_cookie_t cookie; in shdma_tx_submit() local 86 cookie = dma_cookie_assign(tx); in shdma_tx_submit() 95 chunk->async_tx.cookie > 0 || in shdma_tx_submit() 96 chunk->async_tx.cookie == -EBUSY || in shdma_tx_submit() 107 chunk->cookie = cookie; in shdma_tx_submit() 111 tx->cookie, &chunk->async_tx, schan->id); in shdma_tx_submit() 156 return cookie; in shdma_tx_submit() 331 dma_cookie_t cookie = 0; in __ld_cleanup() local 342 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup() 353 desc->cookie != cookie) in __ld_cleanup() [all …]
|
/drivers/infiniband/hw/bnxt_re/ |
D | roce_hsi.h | 959 __le16 cookie; member 971 __le16 cookie; member 1043 __le16 cookie; member 1057 __le16 cookie; member 1169 __le16 cookie; member 1183 __le16 cookie; member 1218 __le16 cookie; member 1232 __le16 cookie; member 1246 __le16 cookie; member 1281 __le16 cookie; member [all …]
|
D | qplib_rcfw.c | 53 static int __wait_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __wait_for_resp() argument 58 cbit = cookie % RCFW_MAX_OUTSTANDING_CMD; in __wait_for_resp() 65 static int __block_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __block_for_resp() argument 70 cbit = cookie % RCFW_MAX_OUTSTANDING_CMD; in __block_for_resp() 90 u16 cookie, cbit; in __send_message() local 124 cookie = rcfw->seq_num & RCFW_MAX_COOKIE_VALUE; in __send_message() 125 cbit = cookie % RCFW_MAX_OUTSTANDING_CMD; in __send_message() 127 cookie |= RCFW_CMD_IS_BLOCKING; in __send_message() 130 req->cookie = cpu_to_le16(cookie); in __send_message() 138 crsqe->resp->cookie = req->cookie; in __send_message() [all …]
|
/drivers/net/wireless/ath/wil6210/ |
D | p2p.c | 144 u64 *cookie) in wil_p2p_listen() argument 163 *cookie = ++p2p->cookie; in wil_p2p_listen() 184 cfg80211_ready_on_channel(wdev, *cookie, chan, duration, in wil_p2p_listen() 211 int wil_p2p_cancel_listen(struct wil6210_priv *wil, u64 cookie) in wil_p2p_cancel_listen() argument 218 if (cookie != p2p->cookie) { in wil_p2p_cancel_listen() 220 p2p->cookie, cookie); in wil_p2p_cancel_listen() 236 p2p->cookie, in wil_p2p_cancel_listen() 261 p2p->cookie, in wil_p2p_listen_expired() 326 p2p->cookie, in wil_p2p_delayed_listen_work() 331 cfg80211_ready_on_channel(p2p->pending_listen_wdev, p2p->cookie, in wil_p2p_delayed_listen_work() [all …]
|
D | interrupt.c | 235 static irqreturn_t wil6210_irq_rx(int irq, void *cookie) in wil6210_irq_rx() argument 237 struct wil6210_priv *wil = cookie; in wil6210_irq_rx() 294 static irqreturn_t wil6210_irq_tx(int irq, void *cookie) in wil6210_irq_tx() argument 296 struct wil6210_priv *wil = cookie; in wil6210_irq_tx() 361 static irqreturn_t wil6210_irq_misc(int irq, void *cookie) in wil6210_irq_misc() argument 363 struct wil6210_priv *wil = cookie; in wil6210_irq_misc() 421 static irqreturn_t wil6210_irq_misc_thread(int irq, void *cookie) in wil6210_irq_misc_thread() argument 423 struct wil6210_priv *wil = cookie; in wil6210_irq_misc_thread() 461 static irqreturn_t wil6210_thread_irq(int irq, void *cookie) in wil6210_thread_irq() argument 463 struct wil6210_priv *wil = cookie; in wil6210_thread_irq() [all …]
|
/drivers/staging/lustre/lustre/obdclass/ |
D | cl_lock.c | 242 void cl_lock_descr_print(const struct lu_env *env, void *cookie, in cl_lock_descr_print() argument 249 (*printer)(env, cookie, DDESCR "@" DFID, PDESCR(descr), PFID(fid)); in cl_lock_descr_print() 256 void cl_lock_print(const struct lu_env *env, void *cookie, in cl_lock_print() argument 261 (*printer)(env, cookie, "lock@%p", lock); in cl_lock_print() 262 cl_lock_descr_print(env, cookie, printer, &lock->cll_descr); in cl_lock_print() 263 (*printer)(env, cookie, " {\n"); in cl_lock_print() 266 (*printer)(env, cookie, " %s@%p: ", in cl_lock_print() 270 slice->cls_ops->clo_print(env, cookie, printer, slice); in cl_lock_print() 271 (*printer)(env, cookie, "\n"); in cl_lock_print() 273 (*printer)(env, cookie, "} lock@%p\n", lock); in cl_lock_print()
|
/drivers/staging/lustre/include/uapi/linux/lnet/ |
D | lnet-types.h | 283 u64 cookie; member 291 h->cookie = LNET_WIRE_HANDLE_COOKIE_NONE; in LNetInvalidateEQHandle() 301 return (LNET_WIRE_HANDLE_COOKIE_NONE == h.cookie); in LNetEQHandleIsInvalid() 305 u64 cookie; member 313 h->cookie = LNET_WIRE_HANDLE_COOKIE_NONE; in LNetInvalidateMDHandle() 323 return (LNET_WIRE_HANDLE_COOKIE_NONE == h.cookie); in LNetMDHandleIsInvalid() 327 u64 cookie; member
|
/drivers/staging/rtl8723bs/include/ |
D | ioctl_cfg80211.h | 124 …rtw_cfg80211_mgmt_tx_status(adapter, cookie, buf, len, ack, gfp) cfg80211_mgmt_tx_status((adapter)… argument 125 …1_ready_on_channel(adapter, cookie, chan, channel_type, duration, gfp) cfg80211_ready_on_channel(… argument 126 …n_on_channel_expired(adapter, cookie, chan, chan_type, gfp) cfg80211_remain_on_channel_expired((ad… argument
|
/drivers/gpu/drm/mediatek/ |
D | mtk_drm_gem.c | 62 mtk_gem->cookie = dma_alloc_attrs(priv->dma_dev, obj->size, in mtk_drm_gem_create() 65 if (!mtk_gem->cookie) { in mtk_drm_gem_create() 72 mtk_gem->kvaddr = mtk_gem->cookie; in mtk_drm_gem_create() 75 mtk_gem->cookie, &mtk_gem->dma_addr, in mtk_drm_gem_create() 94 dma_free_attrs(priv->dma_dev, obj->size, mtk_gem->cookie, in mtk_drm_gem_free_object() 149 ret = dma_mmap_attrs(priv->dma_dev, vma, mtk_gem->cookie, in mtk_drm_gem_object_mmap() 199 ret = dma_get_sgtable_attrs(priv->dma_dev, sgt, mtk_gem->cookie, in mtk_gem_prime_get_sg_table()
|
/drivers/misc/mic/card/ |
D | mic_device.c | 95 unsigned long cookie; in mic_request_card_irq() local 105 cookie = index; in mic_request_card_irq() 106 return (struct mic_irq *)cookie; in mic_request_card_irq() 120 void mic_free_card_irq(struct mic_irq *cookie, void *data) in mic_free_card_irq() argument 125 index = (unsigned long)cookie & 0xFFFFU; in mic_free_card_irq() 195 struct mic_irq *cookie, void *data) in ___mic_free_irq() argument 197 return mic_free_card_irq(cookie, data); in ___mic_free_irq() 266 struct mic_irq *cookie, void *data) in __mic_free_irq() argument 268 return mic_free_card_irq(cookie, data); in __mic_free_irq()
|
/drivers/misc/mic/scif/ |
D | scif_dma.c | 37 void (*dma_completion_func)(void *cookie); 426 dma_cookie_t cookie; in scif_sync_dma() local 444 cookie = tx->tx_submit(tx); in scif_sync_dma() 446 if (dma_submit_error(cookie)) { in scif_sync_dma() 455 if (dma_sync_wait(chan, cookie) == DMA_COMPLETE) { in scif_sync_dma() 493 dma_cookie_t cookie; in scif_async_dma() local 514 cookie = tx->tx_submit(tx); in scif_async_dma() 516 if (dma_submit_error(cookie)) { in scif_async_dma() 532 status = dma_async_is_tx_complete(chan, cookie, NULL, NULL); in scif_async_dma() 893 dma_cookie_t cookie; in scif_rma_list_dma_copy_unaligned() local [all …]
|
D | scif_fence.c | 213 dma_cookie_t cookie; in _scif_prog_signal() local 223 cookie = tx->tx_submit(tx); in _scif_prog_signal() 224 if (dma_submit_error(cookie)) { in _scif_prog_signal() 225 err = (int)cookie; in _scif_prog_signal() 263 cookie = tx->tx_submit(tx); in _scif_prog_signal() 264 if (dma_submit_error(cookie)) { in _scif_prog_signal() 339 dma_cookie_t cookie = mark & ~SCIF_REMOTE_FENCE; in _scif_fence_wait() local 346 cookie, NULL, NULL) == in _scif_fence_wait() 589 dma_cookie_t cookie; in _scif_fence_mark() local 599 cookie = tx->tx_submit(tx); in _scif_fence_mark() [all …]
|