/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 | 131 static void fq_ring_free(struct iommu_dma_cookie *cookie, struct iova_fq *fq) in fq_ring_free() argument 133 u64 counter = atomic64_read(&cookie->fq_flush_finish_cnt); in fq_ring_free() 144 free_iova_fast(&cookie->iovad, in fq_ring_free() 152 static void fq_flush_iotlb(struct iommu_dma_cookie *cookie) in fq_flush_iotlb() argument 154 atomic64_inc(&cookie->fq_flush_start_cnt); in fq_flush_iotlb() 155 cookie->fq_domain->ops->flush_iotlb_all(cookie->fq_domain); in fq_flush_iotlb() 156 atomic64_inc(&cookie->fq_flush_finish_cnt); in fq_flush_iotlb() 161 struct iommu_dma_cookie *cookie = from_timer(cookie, t, fq_timer); in fq_flush_timeout() local 164 atomic_set(&cookie->fq_timer_on, 0); in fq_flush_timeout() 165 fq_flush_iotlb(cookie); in fq_flush_timeout() [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]; member 45 void wg_cookie_init(struct cookie *cookie); argument
|
/drivers/clocksource/ |
D | timer-ti-dm.c | 120 struct omap_dm_timer cookie; member 402 static struct dmtimer *to_dmtimer(struct omap_dm_timer *cookie) in to_dmtimer() argument 404 if (!cookie) in to_dmtimer() 407 return container_of(cookie, struct dmtimer, cookie); in to_dmtimer() 410 static int omap_dm_timer_set_source(struct omap_dm_timer *cookie, int source) in omap_dm_timer_set_source() argument 418 timer = to_dmtimer(cookie); in omap_dm_timer_set_source() 468 static void omap_dm_timer_enable(struct omap_dm_timer *cookie) in omap_dm_timer_enable() argument 470 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_enable() 479 static void omap_dm_timer_disable(struct omap_dm_timer *cookie) in omap_dm_timer_disable() argument 481 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/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() 39 if (f->cookie == port->tc.police_id) { in lan966x_tc_matchall_del() 40 return lan966x_police_port_del(port, f->cookie, in lan966x_tc_matchall_del() 42 } else if (f->cookie == port->tc.ingress_mirror_id || in lan966x_tc_matchall_del() 43 f->cookie == port->tc.egress_mirror_id) { in lan966x_tc_matchall_del() 59 if (f->cookie == port->tc.police_id) { in lan966x_tc_matchall_stats() 61 } else if (f->cookie == port->tc.ingress_mirror_id || in lan966x_tc_matchall_stats() 62 f->cookie == port->tc.egress_mirror_id) { in lan966x_tc_matchall_stats()
|
/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 | roce_hsi.h | 1108 __le16 cookie; member 1120 __le16 cookie; member 1198 __le16 cookie; member 1212 __le16 cookie; member 1324 __le16 cookie; member 1338 __le16 cookie; member 1373 __le16 cookie; member 1387 __le16 cookie; member 1401 __le16 cookie; member 1436 __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/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() 197 static void msm_iommu_tlb_flush_all(void *cookie) in msm_iommu_tlb_flush_all() argument 199 struct msm_iommu_pagetable *pagetable = cookie; in msm_iommu_tlb_flush_all() 207 pagetable->tlb->tlb_flush_all((void *)adreno_smmu->cookie); in msm_iommu_tlb_flush_all() 213 size_t granule, void *cookie) in msm_iommu_tlb_flush_walk() argument 215 struct msm_iommu_pagetable *pagetable = cookie; in msm_iommu_tlb_flush_walk() 223 pagetable->tlb->tlb_flush_walk(iova, size, granule, (void *)adreno_smmu->cookie); in msm_iommu_tlb_flush_walk() 229 unsigned long iova, size_t granule, void *cookie) in msm_iommu_tlb_add_page() argument 252 if (adreno_smmu->cookie) in msm_iommu_pagetable_create() 253 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/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 …]
|
/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
|