Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: fsl-dpaa2-qdma: Remove unused function dpdmai_create()

Remove unused function dpdmai_create();

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240320-dpaa2-v1-2-eb56e47c94ec@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Frank Li and committed by
Vinod Koul
26a4d2ae 06db9ee8

-56
-54
drivers/dma/fsl-dpaa2-qdma/dpdmai.c
··· 33 33 __le32 fqid; 34 34 }; 35 35 36 - #define MC_CMD_OP(_cmd, _param, _offset, _width, _type, _arg) \ 37 - ((_cmd).params[_param] |= mc_enc((_offset), (_width), _arg)) 38 - 39 - /* cmd, param, offset, width, type, arg_name */ 40 - #define DPDMAI_CMD_CREATE(cmd, cfg) \ 41 - do { \ 42 - MC_CMD_OP(cmd, 0, 8, 8, u8, (cfg)->priorities[0]);\ 43 - MC_CMD_OP(cmd, 0, 16, 8, u8, (cfg)->priorities[1]);\ 44 - } while (0) 45 - 46 36 static inline u64 mc_enc(int lsoffset, int width, u64 val) 47 37 { 48 38 return (val & MAKE_UMASK64(width)) << lsoffset; ··· 104 114 return mc_send_command(mc_io, &cmd); 105 115 } 106 116 EXPORT_SYMBOL_GPL(dpdmai_close); 107 - 108 - /** 109 - * dpdmai_create() - Create the DPDMAI object 110 - * @mc_io: Pointer to MC portal's I/O object 111 - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' 112 - * @cfg: Configuration structure 113 - * @token: Returned token; use in subsequent API calls 114 - * 115 - * Create the DPDMAI object, allocate required resources and 116 - * perform required initialization. 117 - * 118 - * The object can be created either by declaring it in the 119 - * DPL file, or by calling this function. 120 - * 121 - * This function returns a unique authentication token, 122 - * associated with the specific object ID and the specific MC 123 - * portal; this token must be used in all subsequent calls to 124 - * this specific object. For objects that are created using the 125 - * DPL file, call dpdmai_open() function to get an authentication 126 - * token first. 127 - * 128 - * Return: '0' on Success; Error code otherwise. 129 - */ 130 - int dpdmai_create(struct fsl_mc_io *mc_io, u32 cmd_flags, 131 - const struct dpdmai_cfg *cfg, u16 *token) 132 - { 133 - struct fsl_mc_command cmd = { 0 }; 134 - int err; 135 - 136 - /* prepare command */ 137 - cmd.header = mc_encode_cmd_header(DPDMAI_CMDID_CREATE, 138 - cmd_flags, 0); 139 - DPDMAI_CMD_CREATE(cmd, cfg); 140 - 141 - /* send command to mc*/ 142 - err = mc_send_command(mc_io, &cmd); 143 - if (err) 144 - return err; 145 - 146 - /* retrieve response parameters */ 147 - *token = mc_cmd_hdr_read_token(&cmd); 148 - 149 - return 0; 150 - } 151 117 152 118 /** 153 119 * dpdmai_destroy() - Destroy the DPDMAI object and release all its resources.
-2
drivers/dma/fsl-dpaa2-qdma/dpdmai.h
··· 153 153 int dpdmai_id, u16 *token); 154 154 int dpdmai_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 155 155 int dpdmai_destroy(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 156 - int dpdmai_create(struct fsl_mc_io *mc_io, u32 cmd_flags, 157 - const struct dpdmai_cfg *cfg, u16 *token); 158 156 int dpdmai_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 159 157 int dpdmai_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 160 158 int dpdmai_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token);