/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 | 53 struct iop_adma_chan *iop_chan, dma_cookie_t cookie) in iop_adma_run_tx_complete_actions() argument 57 BUG_ON(tx->cookie < 0); in iop_adma_run_tx_complete_actions() 58 if (tx->cookie > 0) { in iop_adma_run_tx_complete_actions() 59 cookie = tx->cookie; in iop_adma_run_tx_complete_actions() 60 tx->cookie = 0; in iop_adma_run_tx_complete_actions() 75 return cookie; in iop_adma_run_tx_complete_actions() 107 dma_cookie_t cookie = 0; in __iop_adma_slot_cleanup() local 120 iter->async_tx.cookie, iter->idx, busy, in __iop_adma_slot_cleanup() 192 cookie = iop_adma_run_tx_complete_actions( in __iop_adma_slot_cleanup() 193 grp_iter, iop_chan, cookie); in __iop_adma_slot_cleanup() [all …]
|
D | virt-dma.c | 24 dma_cookie_t cookie; in vchan_tx_submit() local 27 cookie = dma_cookie_assign(tx); in vchan_tx_submit() 33 vc, vd, cookie); in vchan_tx_submit() 35 return cookie; in vchan_tx_submit() 60 vc, vd, vd->tx.cookie); in vchan_tx_desc_free() 67 dma_cookie_t cookie) in vchan_find_desc() argument 72 if (vd->tx.cookie == cookie) in vchan_find_desc()
|
D | mv_xor.c | 194 dma_cookie_t cookie) in mv_desc_run_tx_complete_actions() argument 196 BUG_ON(desc->async_tx.cookie < 0); in mv_desc_run_tx_complete_actions() 198 if (desc->async_tx.cookie > 0) { in mv_desc_run_tx_complete_actions() 199 cookie = desc->async_tx.cookie; in mv_desc_run_tx_complete_actions() 211 return cookie; in mv_desc_run_tx_complete_actions() 266 dma_cookie_t cookie = 0; in mv_chan_slot_cleanup() local 286 cookie = mv_desc_run_tx_complete_actions(iter, mv_chan, in mv_chan_slot_cleanup() 287 cookie); in mv_chan_slot_cleanup() 335 if (cookie > 0) in mv_chan_slot_cleanup() 336 mv_chan->dmachan.completed_cookie = cookie; in mv_chan_slot_cleanup() [all …]
|
/drivers/iommu/ |
D | dma-iommu.c | 81 static inline size_t cookie_msi_granule(struct iommu_dma_cookie *cookie) in cookie_msi_granule() argument 83 if (cookie->type == IOMMU_DMA_IOVA_COOKIE) in cookie_msi_granule() 84 return cookie->iovad.granule; in cookie_msi_granule() 90 struct iommu_dma_cookie *cookie; in cookie_alloc() local 92 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in cookie_alloc() 93 if (cookie) { in cookie_alloc() 94 INIT_LIST_HEAD(&cookie->msi_page_list); in cookie_alloc() 95 cookie->type = type; in cookie_alloc() 97 return cookie; in cookie_alloc() 134 struct iommu_dma_cookie *cookie; in iommu_get_msi_cookie() local [all …]
|
D | io-pgtable.c | 35 void *cookie) in alloc_io_pgtable_ops() argument 47 iop = fns->alloc(cfg, cookie); in alloc_io_pgtable_ops() 52 iop->cookie = cookie; in alloc_io_pgtable_ops()
|
/drivers/net/wireguard/ |
D | cookie.c | 69 void wg_cookie_init(struct cookie *cookie) in wg_cookie_init() argument 71 memset(cookie, 0, sizeof(*cookie)); in wg_cookie_init() 72 init_rwsem(&cookie->lock); in wg_cookie_init() 84 const u8 cookie[COOKIE_LEN]) in compute_mac2() 88 blake2s(mac2, message, cookie, COOKIE_LEN, len, COOKIE_LEN); in compute_mac2() 91 static void make_cookie(u8 cookie[COOKIE_LEN], struct sk_buff *skb, in make_cookie() 114 blake2s_final(&state, cookie); in make_cookie() 127 u8 cookie[COOKIE_LEN]; in wg_cookie_validate_packet() local 140 make_cookie(cookie, skb, checker); in wg_cookie_validate_packet() 142 compute_mac2(computed_mac, skb->data, skb->len, cookie); in wg_cookie_validate_packet() [all …]
|
D | cookie.h | 23 struct cookie { struct 26 u8 cookie[COOKIE_LEN]; member 45 void wg_cookie_init(struct cookie *cookie); argument
|
/drivers/media/platform/qcom/venus/ |
D | hfi_cmds.c | 62 u32 addr, void *cookie) in pkt_sys_set_resource() argument 66 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_set_resource() 89 u32 size, void *cookie) in pkt_sys_unset_resource() argument 93 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_unset_resource() 109 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie) in pkt_sys_ping() argument 113 pkt->client_data = cookie; in pkt_sys_ping() 153 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, in pkt_session_init() argument 156 if (!pkt || !cookie || !codec) in pkt_session_init() 161 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_init() 168 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie) in pkt_session_cmd() argument [all …]
|
D | hfi_cmds.h | 260 u32 addr, void *cookie); 262 u32 size, void *cookie); 266 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie); 269 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, 271 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie); 273 void *cookie, struct hfi_buffer_desc *bd); 275 void *cookie, struct hfi_buffer_desc *bd); 277 void *cookie, struct hfi_frame_data *input_frame); 280 void *cookie, struct hfi_frame_data *input_frame); 282 void *cookie, struct hfi_frame_data *output_frame); [all …]
|
/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 148 struct net_device *rdma_ndev, void *cookie) in is_eth_port_of_netdev_filter() argument 157 real_dev = rdma_vlan_dev_real_dev(cookie); in is_eth_port_of_netdev_filter() 159 real_dev = cookie; in is_eth_port_of_netdev_filter() 161 res = ((rdma_is_upper_dev_rcu(rdma_ndev, cookie) && in is_eth_port_of_netdev_filter() 172 struct net_device *rdma_ndev, void *cookie) in is_eth_port_inactive_slave_filter() argument 202 struct net_device *rdma_ndev, void *cookie) in is_ndev_for_default_gid_filter() argument 204 struct net_device *cookie_ndev = cookie; in is_ndev_for_default_gid_filter() 228 struct net_device *rdma_ndev, void *cookie) in pass_all_filter() argument 234 struct net_device *rdma_ndev, void *cookie) in upper_device_filter() argument 241 if (rdma_ndev == cookie) in upper_device_filter() [all …]
|
/drivers/net/dsa/sja1105/ |
D | sja1105_flower.c | 8 unsigned long cookie) in sja1105_rule_find() argument 13 if (rule->cookie == cookie) in sja1105_rule_find() 32 unsigned long cookie, int port, in sja1105_setup_bcast_policer() argument 36 struct sja1105_rule *rule = sja1105_rule_find(priv, cookie); in sja1105_setup_bcast_policer() 48 rule->cookie = cookie; in sja1105_setup_bcast_policer() 104 unsigned long cookie, int port, int tc, in sja1105_setup_tc_policer() argument 108 struct sja1105_rule *rule = sja1105_rule_find(priv, cookie); in sja1105_setup_tc_policer() 119 rule->cookie = cookie; in sja1105_setup_tc_policer() 176 unsigned long cookie, in sja1105_flower_policer() argument 183 return sja1105_setup_bcast_policer(priv, extack, cookie, port, in sja1105_flower_policer() [all …]
|
D | sja1105_vl.h | 12 struct netlink_ext_ack *extack, unsigned long cookie, 21 struct netlink_ext_ack *extack, unsigned long cookie, 34 unsigned long cookie, in sja1105_vl_redirect() argument 53 unsigned long cookie, in sja1105_vl_gate() argument
|
/drivers/dma/sh/ |
D | shdma-base.c | 76 dma_cookie_t cookie; in shdma_tx_submit() local 83 cookie = dma_cookie_assign(tx); in shdma_tx_submit() 92 chunk->async_tx.cookie > 0 || in shdma_tx_submit() 93 chunk->async_tx.cookie == -EBUSY || in shdma_tx_submit() 104 chunk->cookie = cookie; in shdma_tx_submit() 108 tx->cookie, &chunk->async_tx, schan->id); in shdma_tx_submit() 153 return cookie; in shdma_tx_submit() 328 dma_cookie_t cookie = 0; in __ld_cleanup() local 339 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup() 350 desc->cookie != cookie) in __ld_cleanup() [all …]
|
/drivers/infiniband/hw/bnxt_re/ |
D | roce_hsi.h | 1107 __le16 cookie; member 1119 __le16 cookie; member 1193 __le16 cookie; member 1207 __le16 cookie; member 1319 __le16 cookie; member 1333 __le16 cookie; member 1368 __le16 cookie; member 1382 __le16 cookie; member 1396 __le16 cookie; member 1431 __le16 cookie; member [all …]
|
D | qplib_rcfw.c | 56 static int __wait_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __wait_for_resp() argument 63 cbit = cookie % rcfw->cmdq_depth; in __wait_for_resp() 70 static int __block_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __block_for_resp() argument 77 cbit = cookie % rcfw->cmdq_depth; in __block_for_resp() 99 u16 cookie, cbit; in __send_message() local 134 cookie = cmdq->seq_num & RCFW_MAX_COOKIE_VALUE; in __send_message() 135 cbit = cookie % rcfw->cmdq_depth; in __send_message() 137 cookie |= RCFW_CMD_IS_BLOCKING; in __send_message() 140 req->cookie = cpu_to_le16(cookie); in __send_message() 155 crsqe->resp->cookie = req->cookie; in __send_message() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | en_tc_tracepoint.h | 28 TP_STRUCT__entry(__field(void *, cookie) 33 TP_fast_assign(__entry->cookie = (void *)f->cookie; 42 __entry->cookie, __entry->num ? 61 TP_STRUCT__entry(__field(void *, cookie) 66 TP_fast_assign(__entry->cookie = (void *)f->cookie; 72 __entry->cookie, __entry->bytes,
|
/drivers/net/wireless/ath/wil6210/ |
D | p2p.c | 127 u64 *cookie) in wil_p2p_listen() argument 147 *cookie = ++p2p->cookie; in wil_p2p_listen() 169 cfg80211_ready_on_channel(wdev, *cookie, chan, duration, in wil_p2p_listen() 196 int wil_p2p_cancel_listen(struct wil6210_vif *vif, u64 cookie) in wil_p2p_cancel_listen() argument 204 if (cookie != p2p->cookie) { in wil_p2p_cancel_listen() 206 p2p->cookie, cookie); in wil_p2p_cancel_listen() 222 p2p->cookie, in wil_p2p_cancel_listen() 251 p2p->cookie, in wil_p2p_listen_expired() 319 p2p->cookie, in wil_p2p_delayed_listen_work() 325 cfg80211_ready_on_channel(p2p->pending_listen_wdev, p2p->cookie, in wil_p2p_delayed_listen_work() [all …]
|
D | interrupt.c | 285 static irqreturn_t wil6210_irq_rx(int irq, void *cookie) in wil6210_irq_rx() argument 287 struct wil6210_priv *wil = cookie; in wil6210_irq_rx() 347 static irqreturn_t wil6210_irq_rx_edma(int irq, void *cookie) in wil6210_irq_rx_edma() argument 349 struct wil6210_priv *wil = cookie; in wil6210_irq_rx_edma() 398 static irqreturn_t wil6210_irq_tx_edma(int irq, void *cookie) in wil6210_irq_tx_edma() argument 400 struct wil6210_priv *wil = cookie; in wil6210_irq_tx_edma() 444 static irqreturn_t wil6210_irq_tx(int irq, void *cookie) in wil6210_irq_tx() argument 446 struct wil6210_priv *wil = cookie; in wil6210_irq_tx() 533 static irqreturn_t wil6210_irq_misc(int irq, void *cookie) in wil6210_irq_misc() argument 535 struct wil6210_priv *wil = cookie; in wil6210_irq_misc() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_actions.c | 144 return jhash2((u32 *) fa_cookie->cookie, in mlxsw_afa_cookie_hash() 157 const struct mlxsw_afa_cookie *cookie = data; in mlxsw_afa_cookie_obj_hashfn() local 159 return mlxsw_afa_cookie_hash(&cookie->fa_cookie, seed); in mlxsw_afa_cookie_obj_hashfn() 166 const struct mlxsw_afa_cookie *cookie = obj; in mlxsw_afa_cookie_obj_cmpfn() local 168 if (cookie->fa_cookie.cookie_len == fa_cookie->cookie_len) in mlxsw_afa_cookie_obj_cmpfn() 169 return memcmp(cookie->fa_cookie.cookie, fa_cookie->cookie, in mlxsw_afa_cookie_obj_cmpfn() 732 struct mlxsw_afa_cookie *cookie; in mlxsw_afa_cookie_create() local 736 cookie = kzalloc(sizeof(*cookie) + fa_cookie->cookie_len, GFP_KERNEL); in mlxsw_afa_cookie_create() 737 if (!cookie) in mlxsw_afa_cookie_create() 739 refcount_set(&cookie->ref_count, 1); in mlxsw_afa_cookie_create() [all …]
|
/drivers/gpu/drm/msm/ |
D | msm_iommu.c | 94 adreno_smmu->set_ttbr0_cfg(adreno_smmu->cookie, NULL); in msm_iommu_pagetable_destroy() 125 static void msm_iommu_tlb_flush_all(void *cookie) in msm_iommu_tlb_flush_all() argument 130 size_t granule, void *cookie) in msm_iommu_tlb_flush_walk() argument 135 unsigned long iova, size_t granule, void *cookie) in msm_iommu_tlb_add_page() argument 158 if (adreno_smmu->cookie) in msm_iommu_pagetable_create() 159 ttbr1_cfg = adreno_smmu->get_ttbr1_cfg(adreno_smmu->cookie); in msm_iommu_pagetable_create() 203 adreno_smmu->set_stall(adreno_smmu->cookie, true); in msm_iommu_pagetable_create() 205 ret = adreno_smmu->set_ttbr0_cfg(adreno_smmu->cookie, &ttbr0_cfg); in msm_iommu_pagetable_create() 236 adreno_smmu->get_fault_info(adreno_smmu->cookie, &info); in msm_fault_handler() 251 adreno_smmu->resume_translation(adreno_smmu->cookie, true); in msm_iommu_resume_translation()
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-switch-flower.c | 287 unsigned long cookie) in dpaa2_switch_acl_tbl_find_entry_by_cookie() argument 292 if (tmp->cookie == cookie) in dpaa2_switch_acl_tbl_find_entry_by_cookie() 306 if (tmp->cookie == entry->cookie) in dpaa2_switch_acl_entry_get_index() 315 unsigned long cookie) in dpaa2_switch_mirror_find_entry_by_cookie() argument 320 if (tmp->cookie == cookie) in dpaa2_switch_mirror_find_entry_by_cookie() 520 acl_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_acl() 636 mirror_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_mirror() 676 cls->cookie); in dpaa2_switch_cls_flower_destroy() 682 cls->cookie); in dpaa2_switch_cls_flower_destroy() 716 acl_entry->cookie = cls->cookie; in dpaa2_switch_cls_matchall_replace_acl() [all …]
|
/drivers/iommu/arm/arm-smmu/ |
D | arm-smmu-qcom.c | 42 static void qcom_adreno_smmu_get_fault_info(const void *cookie, in qcom_adreno_smmu_get_fault_info() argument 45 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_get_fault_info() 58 static void qcom_adreno_smmu_set_stall(const void *cookie, bool enabled) in qcom_adreno_smmu_set_stall() argument 60 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_set_stall() 70 static void qcom_adreno_smmu_resume_translation(const void *cookie, bool terminate) in qcom_adreno_smmu_resume_translation() argument 72 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_resume_translation() 105 const void *cookie) in qcom_adreno_smmu_get_ttbr1_cfg() argument 107 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_get_ttbr1_cfg() 119 static int qcom_adreno_smmu_set_ttbr0_cfg(const void *cookie, in qcom_adreno_smmu_set_ttbr0_cfg() argument 122 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_set_ttbr0_cfg() [all …]
|
/drivers/staging/rtl8723bs/include/ |
D | ioctl_cfg80211.h | 113 …rtw_cfg80211_mgmt_tx_status(adapter, cookie, buf, len, ack, gfp) cfg80211_mgmt_tx_status((adapter)… argument 114 …1_ready_on_channel(adapter, cookie, chan, channel_type, duration, gfp) cfg80211_ready_on_channel(… argument 115 …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 | 71 mtk_gem->cookie = dma_alloc_attrs(priv->dma_dev, obj->size, in mtk_drm_gem_create() 74 if (!mtk_gem->cookie) { in mtk_drm_gem_create() 81 mtk_gem->kvaddr = mtk_gem->cookie; in mtk_drm_gem_create() 84 mtk_gem->cookie, &mtk_gem->dma_addr, in mtk_drm_gem_create() 103 dma_free_attrs(priv->dma_dev, obj->size, mtk_gem->cookie, in mtk_drm_gem_free_object() 165 ret = dma_mmap_attrs(priv->dma_dev, vma, mtk_gem->cookie, in mtk_drm_gem_object_mmap() 188 ret = dma_get_sgtable_attrs(priv->dma_dev, sgt, mtk_gem->cookie, in mtk_gem_prime_get_sg_table()
|