/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 | 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 | 129 static void fq_ring_free(struct iommu_dma_cookie *cookie, struct iova_fq *fq) in fq_ring_free() argument 131 u64 counter = atomic64_read(&cookie->fq_flush_finish_cnt); in fq_ring_free() 142 free_iova_fast(&cookie->iovad, in fq_ring_free() 150 static void fq_flush_iotlb(struct iommu_dma_cookie *cookie) in fq_flush_iotlb() argument 152 atomic64_inc(&cookie->fq_flush_start_cnt); in fq_flush_iotlb() 153 cookie->fq_domain->ops->flush_iotlb_all(cookie->fq_domain); in fq_flush_iotlb() 154 atomic64_inc(&cookie->fq_flush_finish_cnt); in fq_flush_iotlb() 159 struct iommu_dma_cookie *cookie = from_timer(cookie, t, fq_timer); in fq_flush_timeout() local 162 atomic_set(&cookie->fq_timer_on, 0); in fq_flush_timeout() 163 fq_flush_iotlb(cookie); in fq_flush_timeout() [all …]
|
D | io-pgtable-arm.c | 92 arm_64_lpae_alloc_pgtable_s1(struct io_pgtable_cfg *cfg, void *cookie) in arm_64_lpae_alloc_pgtable_s1() argument 134 arm_64_lpae_alloc_pgtable_s2(struct io_pgtable_cfg *cfg, void *cookie) in arm_64_lpae_alloc_pgtable_s2() argument 176 arm_32_lpae_alloc_pgtable_s1(struct io_pgtable_cfg *cfg, void *cookie) in arm_32_lpae_alloc_pgtable_s1() argument 182 return arm_64_lpae_alloc_pgtable_s1(cfg, cookie); in arm_32_lpae_alloc_pgtable_s1() 186 arm_32_lpae_alloc_pgtable_s2(struct io_pgtable_cfg *cfg, void *cookie) in arm_32_lpae_alloc_pgtable_s2() argument 192 return arm_64_lpae_alloc_pgtable_s2(cfg, cookie); in arm_32_lpae_alloc_pgtable_s2() 196 arm_mali_lpae_alloc_pgtable(struct io_pgtable_cfg *cfg, void *cookie) in arm_mali_lpae_alloc_pgtable() argument 300 static void __init dummy_tlb_flush_all(void *cookie) in dummy_tlb_flush_all() argument 302 WARN_ON(cookie != cfg_cookie); in dummy_tlb_flush_all() 306 size_t granule, void *cookie) in dummy_tlb_flush() argument [all …]
|
D | io-pgtable.c | 39 void *cookie) in alloc_io_pgtable_ops() argument 51 iop = fns->alloc(cfg, cookie); in alloc_io_pgtable_ops() 56 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]; argument 45 void wg_cookie_init(struct cookie *cookie); argument
|
/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_tc_matchall.c | 21 f->cookie, ingress, in lan966x_tc_matchall_add() 24 return lan966x_mirror_port_add(port, act, f->cookie, in lan966x_tc_matchall_add() 28 act->chain_index, f->cookie, in lan966x_tc_matchall_add() 43 if (f->cookie == port->tc.police_id) { in lan966x_tc_matchall_del() 44 return lan966x_police_port_del(port, f->cookie, in lan966x_tc_matchall_del() 46 } else if (f->cookie == port->tc.ingress_mirror_id || in lan966x_tc_matchall_del() 47 f->cookie == port->tc.egress_mirror_id) { in lan966x_tc_matchall_del() 51 return lan966x_goto_port_del(port, f->cookie, f->common.extack); in lan966x_tc_matchall_del() 61 if (f->cookie == port->tc.police_id) { in lan966x_tc_matchall_stats() 63 } else if (f->cookie == port->tc.ingress_mirror_id || in lan966x_tc_matchall_stats() [all …]
|
/drivers/clocksource/ |
D | timer-ti-dm.c | 119 struct omap_dm_timer cookie; member 401 static struct dmtimer *to_dmtimer(struct omap_dm_timer *cookie) in to_dmtimer() argument 403 if (!cookie) in to_dmtimer() 406 return container_of(cookie, struct dmtimer, cookie); in to_dmtimer() 409 static int omap_dm_timer_set_source(struct omap_dm_timer *cookie, int source) in omap_dm_timer_set_source() argument 417 timer = to_dmtimer(cookie); in omap_dm_timer_set_source() 467 static void omap_dm_timer_enable(struct omap_dm_timer *cookie) in omap_dm_timer_enable() argument 469 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_enable() 478 static void omap_dm_timer_disable(struct omap_dm_timer *cookie) in omap_dm_timer_disable() argument 480 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_disable() [all …]
|
/drivers/media/platform/qcom/venus/ |
D | hfi_cmds.c | 71 u32 addr, void *cookie) in pkt_sys_set_resource() argument 75 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_set_resource() 98 u32 size, void *cookie) in pkt_sys_unset_resource() argument 102 pkt->resource_handle = hash32_ptr(cookie); in pkt_sys_unset_resource() 118 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie) in pkt_sys_ping() argument 122 pkt->client_data = cookie; in pkt_sys_ping() 162 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, in pkt_session_init() argument 165 if (!pkt || !cookie || !codec) in pkt_session_init() 170 pkt->shdr.session_id = hash32_ptr(cookie); in pkt_session_init() 177 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie) in pkt_session_cmd() argument [all …]
|
D | hfi_cmds.h | 261 u32 addr, void *cookie); 263 u32 size, void *cookie); 267 void pkt_sys_ping(struct hfi_sys_ping_pkt *pkt, u32 cookie); 270 int pkt_session_init(struct hfi_session_init_pkt *pkt, void *cookie, 272 void pkt_session_cmd(struct hfi_session_pkt *pkt, u32 pkt_type, void *cookie); 274 void *cookie, struct hfi_buffer_desc *bd); 276 void *cookie, struct hfi_buffer_desc *bd); 278 void *cookie, struct hfi_frame_data *input_frame); 281 void *cookie, struct hfi_frame_data *input_frame); 283 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 …]
|
/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 | qplib_rcfw.c | 112 u16 cookie) in bnxt_re_is_fw_stalled() argument 117 crsqe = &rcfw->crsqe_tbl[cookie]; in bnxt_re_is_fw_stalled() 124 __func__, cookie, crsqe->opcode, in bnxt_re_is_fw_stalled() 145 static int __wait_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __wait_for_resp() argument 152 crsqe = &rcfw->crsqe_tbl[cookie]; in __wait_for_resp() 173 ret = bnxt_re_is_fw_stalled(rcfw, cookie); in __wait_for_resp() 192 static int __block_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __block_for_resp() argument 199 crsqe = &rcfw->crsqe_tbl[cookie]; in __block_for_resp() 243 u16 cookie; in __send_message_no_waiter() local 247 cookie = cmdq->seq_num & RCFW_MAX_COOKIE_VALUE; in __send_message_no_waiter() [all …]
|
D | roce_hsi.h | 150 __le16 cookie; member 178 __le16 cookie; member 192 __le16 cookie; member 219 __le16 cookie; member 368 __le16 cookie; member 387 __le16 cookie; member 401 __le16 cookie; member 419 __le16 cookie; member 505 __le16 cookie; member 523 __le16 cookie; member [all …]
|
/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/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/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 | 166 adreno_smmu->set_ttbr0_cfg(adreno_smmu->cookie, NULL); in msm_iommu_pagetable_destroy() 204 static void msm_iommu_tlb_flush_all(void *cookie) in msm_iommu_tlb_flush_all() argument 206 struct msm_iommu_pagetable *pagetable = cookie; in msm_iommu_tlb_flush_all() 214 pagetable->tlb->tlb_flush_all((void *)adreno_smmu->cookie); in msm_iommu_tlb_flush_all() 220 size_t granule, void *cookie) in msm_iommu_tlb_flush_walk() argument 222 struct msm_iommu_pagetable *pagetable = cookie; in msm_iommu_tlb_flush_walk() 230 pagetable->tlb->tlb_flush_walk(iova, size, granule, (void *)adreno_smmu->cookie); in msm_iommu_tlb_flush_walk() 236 unsigned long iova, size_t granule, void *cookie) in msm_iommu_tlb_add_page() argument 259 if (adreno_smmu->cookie) in msm_iommu_pagetable_create() 260 ttbr1_cfg = adreno_smmu->get_ttbr1_cfg(adreno_smmu->cookie); in msm_iommu_pagetable_create() [all …]
|
/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/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/iommu/arm/arm-smmu/ |
D | arm-smmu-qcom.c | 59 static void qcom_adreno_smmu_get_fault_info(const void *cookie, in qcom_adreno_smmu_get_fault_info() argument 62 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_get_fault_info() 75 static void qcom_adreno_smmu_set_stall(const void *cookie, bool enabled) in qcom_adreno_smmu_set_stall() argument 77 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_set_stall() 87 static void qcom_adreno_smmu_resume_translation(const void *cookie, bool terminate) in qcom_adreno_smmu_resume_translation() argument 89 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_resume_translation() 122 const void *cookie) in qcom_adreno_smmu_get_ttbr1_cfg() argument 124 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_get_ttbr1_cfg() 136 static int qcom_adreno_smmu_set_ttbr0_cfg(const void *cookie, in qcom_adreno_smmu_set_ttbr0_cfg() argument 139 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_set_ttbr0_cfg() [all …]
|