| /Linux-v5.4/drivers/clk/ti/ |
| D | clk-dra7-atl.c | 64 struct dra7_atl_desc *cdesc; member 82 struct dra7_atl_desc *cdesc = to_atl_desc(hw); in atl_clk_enable() local 84 if (!cdesc->probed) in atl_clk_enable() 87 if (unlikely(!cdesc->valid)) in atl_clk_enable() 88 dev_warn(cdesc->cinfo->dev, "atl%d has not been configured\n", in atl_clk_enable() 89 cdesc->id); in atl_clk_enable() 90 pm_runtime_get_sync(cdesc->cinfo->dev); in atl_clk_enable() 92 atl_write(cdesc->cinfo, DRA7_ATL_ATLCR_REG(cdesc->id), in atl_clk_enable() 93 cdesc->divider - 1); in atl_clk_enable() 94 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), DRA7_ATL_SWEN); in atl_clk_enable() [all …]
|
| /Linux-v5.4/drivers/crypto/inside-secure/ |
| D | safexcel_ring.c | 121 struct safexcel_command_desc *cdesc; in safexcel_add_cdesc() local 124 cdesc = safexcel_ring_next_wptr(priv, &priv->ring[ring_id].cdr); in safexcel_add_cdesc() 125 if (IS_ERR(cdesc)) in safexcel_add_cdesc() 126 return cdesc; in safexcel_add_cdesc() 128 memset(cdesc, 0, sizeof(struct safexcel_command_desc)); in safexcel_add_cdesc() 130 cdesc->first_seg = first; in safexcel_add_cdesc() 131 cdesc->last_seg = last; in safexcel_add_cdesc() 132 cdesc->particle_size = data_len; in safexcel_add_cdesc() 133 cdesc->data_lo = lower_32_bits(data); in safexcel_add_cdesc() 134 cdesc->data_hi = upper_32_bits(data); in safexcel_add_cdesc() [all …]
|
| D | safexcel_cipher.c | 69 struct safexcel_command_desc *cdesc) in safexcel_cipher_token() argument 74 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_cipher_token() 77 cdesc->control_data.token[0] = ctx->nonce; in safexcel_cipher_token() 79 memcpy(&cdesc->control_data.token[1], iv, 8); in safexcel_cipher_token() 81 cdesc->control_data.token[3] = cpu_to_be32(1); in safexcel_cipher_token() 85 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_cipher_token() 88 memcpy(&cdesc->control_data.token[0], iv, 12); in safexcel_cipher_token() 90 cdesc->control_data.token[3] = cpu_to_be32(1); in safexcel_cipher_token() 94 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_cipher_token() 97 memcpy(&cdesc->control_data.token[0], iv, 15 - iv[0]); in safexcel_cipher_token() [all …]
|
| D | safexcel_hash.c | 59 static void safexcel_hash_token(struct safexcel_command_desc *cdesc, in safexcel_hash_token() argument 63 (struct safexcel_token *)cdesc->control_data.token; in safexcel_hash_token() 80 struct safexcel_command_desc *cdesc) in safexcel_context_control() argument 85 cdesc->control_data.control0 |= ctx->alg; in safexcel_context_control() 95 cdesc->control_data.control0 |= in safexcel_context_control() 101 cdesc->control_data.control0 |= in safexcel_context_control() 138 cdesc->control_data.control0 |= in safexcel_context_control() 144 cdesc->control_data.control0 |= in safexcel_context_control() 146 cdesc->control_data.control1 |= in safexcel_context_control() 160 cdesc->control_data.control0 |= in safexcel_context_control() [all …]
|
| D | safexcel.c | 773 int ret, nreq = 0, cdesc = 0, rdesc = 0, commands, results; in safexcel_dequeue() local 811 cdesc += commands; in safexcel_dequeue() 843 writel((cdesc * priv->config.cd_offset) << 2, in safexcel_dequeue() 904 struct safexcel_command_desc *cdesc; in safexcel_complete() local 908 cdesc = safexcel_ring_next_rptr(priv, &priv->ring[ring].cdr); in safexcel_complete() 909 if (IS_ERR(cdesc)) { in safexcel_complete() 914 } while (!cdesc->last_seg); in safexcel_complete() 932 struct safexcel_command_desc *cdesc; in safexcel_invalidate_cache() local 937 cdesc = safexcel_add_cdesc(priv, ring, true, true, 0, 0, 0, ctxr_dma); in safexcel_invalidate_cache() 938 if (IS_ERR(cdesc)) in safexcel_invalidate_cache() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/amazon/ena/ |
| D | ena_eth_com.c | 38 struct ena_eth_io_rx_cdesc_base *cdesc; in ena_com_get_next_rx_cdesc() local 45 cdesc = (struct ena_eth_io_rx_cdesc_base *)(io_cq->cdesc_addr.virt_addr in ena_com_get_next_rx_cdesc() 48 desc_phase = (READ_ONCE(cdesc->status) & ENA_ETH_IO_RX_CDESC_BASE_PHASE_MASK) >> in ena_com_get_next_rx_cdesc() 59 return cdesc; in ena_com_get_next_rx_cdesc() 254 struct ena_eth_io_rx_cdesc_base *cdesc; in ena_com_cdesc_rx_pkt_get() local 259 cdesc = ena_com_get_next_rx_cdesc(io_cq); in ena_com_cdesc_rx_pkt_get() 260 if (!cdesc) in ena_com_cdesc_rx_pkt_get() 265 last = (READ_ONCE(cdesc->status) & ENA_ETH_IO_RX_CDESC_BASE_LAST_MASK) >> in ena_com_cdesc_rx_pkt_get() 338 struct ena_eth_io_rx_cdesc_base *cdesc) in ena_com_rx_set_flags() argument 340 ena_rx_ctx->l3_proto = cdesc->status & in ena_com_rx_set_flags() [all …]
|
| D | ena_eth_com.h | 246 struct ena_eth_io_tx_cdesc *cdesc; in ena_com_tx_comp_req_id_get() local 252 cdesc = (struct ena_eth_io_tx_cdesc *) in ena_com_tx_comp_req_id_get() 260 cdesc_phase = READ_ONCE(cdesc->flags) & ENA_ETH_IO_TX_CDESC_PHASE_MASK; in ena_com_tx_comp_req_id_get() 266 *req_id = READ_ONCE(cdesc->req_id); in ena_com_tx_comp_req_id_get() 268 pr_err("Invalid req id %d\n", cdesc->req_id); in ena_com_tx_comp_req_id_get()
|
| /Linux-v5.4/drivers/usb/core/ |
| D | of.c | 60 struct usb_config_descriptor *cdesc; in usb_of_has_combined_node() local 69 cdesc = &udev->config->desc; in usb_of_has_combined_node() 70 if (cdesc->bNumInterfaces == 1) in usb_of_has_combined_node()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlxfw/ |
| D | mlxfw_mfa2.c | 188 const struct mlxfw_mfa2_tlv_component_descriptor *cdesc; in mlxfw_mfa2_file_comp_validate() local 210 cdesc = mlxfw_mfa2_tlv_component_descriptor_get(mfa2_file, tlv); in mlxfw_mfa2_file_comp_validate() 211 if (!cdesc) { in mlxfw_mfa2_file_comp_validate() 216 pr_debug(" -- Component type %d\n", be16_to_cpu(cdesc->identifier)); in mlxfw_mfa2_file_comp_validate() 218 ((u64) be32_to_cpu(cdesc->cb_offset_h) << 32) in mlxfw_mfa2_file_comp_validate() 219 | be32_to_cpu(cdesc->cb_offset_l), be32_to_cpu(cdesc->size)); in mlxfw_mfa2_file_comp_validate()
|
| /Linux-v5.4/drivers/net/ethernet/altera/ |
| D | altera_sgdma.c | 172 struct sgdma_descrip __iomem *cdesc = &descbase[0]; in sgdma_tx_buffer() local 179 sgdma_setup_descrip(cdesc, /* current descriptor */ in sgdma_tx_buffer() 189 sgdma_async_write(priv, cdesc); in sgdma_tx_buffer() 341 struct sgdma_descrip __iomem *cdesc = &descbase[0]; in sgdma_async_read() local 352 sgdma_setup_descrip(cdesc, /* current descriptor */ in sgdma_async_read() 367 csrwr32(lower_32_bits(sgdma_rxphysaddr(priv, cdesc)), in sgdma_async_read()
|
| /Linux-v5.4/drivers/net/ethernet/intel/ice/ |
| D | ice_txrx.c | 2167 struct ice_tx_ctx_desc *cdesc; in ice_xmit_frame_ring() local 2171 cdesc = ICE_TX_CTX_DESC(tx_ring, i); in ice_xmit_frame_ring() 2176 cdesc->tunneling_params = cpu_to_le32(offload.cd_tunnel_params); in ice_xmit_frame_ring() 2177 cdesc->l2tag2 = cpu_to_le16(offload.cd_l2tag2); in ice_xmit_frame_ring() 2178 cdesc->rsvd = cpu_to_le16(0); in ice_xmit_frame_ring() 2179 cdesc->qw1 = cpu_to_le64(offload.cd_qw1); in ice_xmit_frame_ring()
|