/linux-6.1.9/drivers/bus/fsl-mc/ |
D | mc-io.c | 12 static int fsl_mc_io_set_dpmcp(struct fsl_mc_io *mc_io, in fsl_mc_io_set_dpmcp() argument 17 if (mc_io->dpmcp_dev) in fsl_mc_io_set_dpmcp() 20 if (dpmcp_dev->mc_io) in fsl_mc_io_set_dpmcp() 23 error = dpmcp_open(mc_io, in fsl_mc_io_set_dpmcp() 30 mc_io->dpmcp_dev = dpmcp_dev; in fsl_mc_io_set_dpmcp() 31 dpmcp_dev->mc_io = mc_io; in fsl_mc_io_set_dpmcp() 35 static void fsl_mc_io_unset_dpmcp(struct fsl_mc_io *mc_io) in fsl_mc_io_unset_dpmcp() argument 38 struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev; in fsl_mc_io_unset_dpmcp() 40 error = dpmcp_close(mc_io, in fsl_mc_io_unset_dpmcp() 48 mc_io->dpmcp_dev = NULL; in fsl_mc_io_unset_dpmcp() [all …]
|
D | mc-sys.c | 159 static int mc_polling_wait_preemptible(struct fsl_mc_io *mc_io, in mc_polling_wait_preemptible() argument 171 status = mc_read_response(mc_io->portal_virt_addr, cmd); in mc_polling_wait_preemptible() 183 dev_dbg(mc_io->dev, in mc_polling_wait_preemptible() 185 &mc_io->portal_phys_addr, in mc_polling_wait_preemptible() 205 static int mc_polling_wait_atomic(struct fsl_mc_io *mc_io, in mc_polling_wait_atomic() argument 216 status = mc_read_response(mc_io->portal_virt_addr, cmd); in mc_polling_wait_atomic() 223 dev_dbg(mc_io->dev, in mc_polling_wait_atomic() 225 &mc_io->portal_phys_addr, in mc_polling_wait_atomic() 245 int mc_send_command(struct fsl_mc_io *mc_io, struct fsl_mc_command *cmd) in mc_send_command() argument 251 if (in_irq() && !(mc_io->flags & FSL_MC_IO_ATOMIC_CONTEXT_PORTAL)) in mc_send_command() [all …]
|
D | dprc.c | 30 int dprc_open(struct fsl_mc_io *mc_io, in dprc_open() argument 46 err = mc_send_command(mc_io, &cmd); in dprc_open() 68 int dprc_close(struct fsl_mc_io *mc_io, in dprc_close() argument 79 return mc_send_command(mc_io, &cmd); in dprc_close() 112 int dprc_reset_container(struct fsl_mc_io *mc_io, in dprc_reset_container() argument 128 err = dprc_get_api_version(mc_io, 0, in dprc_reset_container() 150 return mc_send_command(mc_io, &cmd); in dprc_reset_container() 164 int dprc_set_irq(struct fsl_mc_io *mc_io, in dprc_set_irq() argument 184 return mc_send_command(mc_io, &cmd); in dprc_set_irq() 202 int dprc_set_irq_enable(struct fsl_mc_io *mc_io, in dprc_set_irq_enable() argument [all …]
|
D | dpcon.c | 28 int dpcon_open(struct fsl_mc_io *mc_io, in dpcon_open() argument 45 err = mc_send_command(mc_io, &cmd); in dpcon_open() 67 int dpcon_close(struct fsl_mc_io *mc_io, in dpcon_close() argument 79 return mc_send_command(mc_io, &cmd); in dpcon_close() 91 int dpcon_enable(struct fsl_mc_io *mc_io, in dpcon_enable() argument 103 return mc_send_command(mc_io, &cmd); in dpcon_enable() 115 int dpcon_disable(struct fsl_mc_io *mc_io, in dpcon_disable() argument 127 return mc_send_command(mc_io, &cmd); in dpcon_disable() 139 int dpcon_reset(struct fsl_mc_io *mc_io, in dpcon_reset() argument 150 return mc_send_command(mc_io, &cmd); in dpcon_reset() [all …]
|
D | dpbp.c | 28 int dpbp_open(struct fsl_mc_io *mc_io, in dpbp_open() argument 44 err = mc_send_command(mc_io, &cmd); in dpbp_open() 66 int dpbp_close(struct fsl_mc_io *mc_io, in dpbp_close() argument 77 return mc_send_command(mc_io, &cmd); in dpbp_close() 89 int dpbp_enable(struct fsl_mc_io *mc_io, in dpbp_enable() argument 100 return mc_send_command(mc_io, &cmd); in dpbp_enable() 112 int dpbp_disable(struct fsl_mc_io *mc_io, in dpbp_disable() argument 123 return mc_send_command(mc_io, &cmd); in dpbp_disable() 135 int dpbp_reset(struct fsl_mc_io *mc_io, in dpbp_reset() argument 146 return mc_send_command(mc_io, &cmd); in dpbp_reset() [all …]
|
D | dprc-driver.c | 250 error = dprc_get_obj_count(mc_bus_dev->mc_io, in dprc_scan_objects() 278 error = dprc_get_obj(mc_bus_dev->mc_io, in dprc_scan_objects() 402 struct fsl_mc_io *mc_io = mc_dev->mc_io; in dprc_irq0_handler_thread() local 416 error = dprc_get_irq_status(mc_io, 0, mc_dev->mc_handle, 0, in dprc_irq0_handler_thread() 424 error = dprc_clear_irq_status(mc_io, 0, mc_dev->mc_handle, 0, in dprc_irq0_handler_thread() 467 struct fsl_mc_io *mc_io = mc_dev->mc_io; in disable_dprc_irq() local 472 error = dprc_set_irq_enable(mc_io, 0, mc_dev->mc_handle, 0, 0); in disable_dprc_irq() 483 error = dprc_set_irq_mask(mc_io, 0, mc_dev->mc_handle, 0, 0x0); in disable_dprc_irq() 494 error = dprc_clear_irq_status(mc_io, 0, mc_dev->mc_handle, 0, ~0x0U); in disable_dprc_irq() 548 error = dprc_set_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, 0, in enable_dprc_irq() [all …]
|
D | fsl-mc-private.h | 60 int dpmcp_open(struct fsl_mc_io *mc_io, 65 int dpmcp_close(struct fsl_mc_io *mc_io, 69 int dpmcp_reset(struct fsl_mc_io *mc_io, 262 int dprc_open(struct fsl_mc_io *mc_io, 267 int dprc_close(struct fsl_mc_io *mc_io, 304 int dprc_set_irq(struct fsl_mc_io *mc_io, 310 int dprc_set_irq_enable(struct fsl_mc_io *mc_io, 316 int dprc_set_irq_mask(struct fsl_mc_io *mc_io, 322 int dprc_get_irq_status(struct fsl_mc_io *mc_io, 328 int dprc_clear_irq_status(struct fsl_mc_io *mc_io, [all …]
|
D | dpmcp.c | 28 int dpmcp_open(struct fsl_mc_io *mc_io, in dpmcp_open() argument 44 err = mc_send_command(mc_io, &cmd); in dpmcp_open() 65 int dpmcp_close(struct fsl_mc_io *mc_io, in dpmcp_close() argument 76 return mc_send_command(mc_io, &cmd); in dpmcp_close() 87 int dpmcp_reset(struct fsl_mc_io *mc_io, in dpmcp_reset() argument 98 return mc_send_command(mc_io, &cmd); in dpmcp_reset()
|
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/ |
D | dpni.h | 86 int dpni_open(struct fsl_mc_io *mc_io, 91 int dpni_close(struct fsl_mc_io *mc_io, 113 int dpni_set_pools(struct fsl_mc_io *mc_io, 118 int dpni_enable(struct fsl_mc_io *mc_io, 122 int dpni_disable(struct fsl_mc_io *mc_io, 126 int dpni_is_enabled(struct fsl_mc_io *mc_io, 131 int dpni_reset(struct fsl_mc_io *mc_io, 145 int dpni_set_irq_enable(struct fsl_mc_io *mc_io, 151 int dpni_get_irq_enable(struct fsl_mc_io *mc_io, 157 int dpni_set_irq_mask(struct fsl_mc_io *mc_io, [all …]
|
D | dpsw.h | 23 int dpsw_open(struct fsl_mc_io *mc_io, u32 cmd_flags, int dpsw_id, u16 *token); 25 int dpsw_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 85 int dpsw_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 87 int dpsw_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 89 int dpsw_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 118 int dpsw_set_irq_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 121 int dpsw_set_irq_mask(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 124 int dpsw_get_irq_status(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 127 int dpsw_clear_irq_status(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 169 int dpsw_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, [all …]
|
D | dpni.c | 95 int dpni_open(struct fsl_mc_io *mc_io, in dpni_open() argument 113 err = mc_send_command(mc_io, &cmd); in dpni_open() 134 int dpni_close(struct fsl_mc_io *mc_io, in dpni_close() argument 146 return mc_send_command(mc_io, &cmd); in dpni_close() 161 int dpni_set_pools(struct fsl_mc_io *mc_io, in dpni_set_pools() argument 185 return mc_send_command(mc_io, &cmd); in dpni_set_pools() 196 int dpni_enable(struct fsl_mc_io *mc_io, in dpni_enable() argument 208 return mc_send_command(mc_io, &cmd); in dpni_enable() 219 int dpni_disable(struct fsl_mc_io *mc_io, in dpni_disable() argument 231 return mc_send_command(mc_io, &cmd); in dpni_disable() [all …]
|
D | dpsw.c | 39 int dpsw_open(struct fsl_mc_io *mc_io, u32 cmd_flags, int dpsw_id, u16 *token) in dpsw_open() argument 53 err = mc_send_command(mc_io, &cmd); in dpsw_open() 74 int dpsw_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpsw_close() argument 84 return mc_send_command(mc_io, &cmd); in dpsw_close() 95 int dpsw_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpsw_enable() argument 105 return mc_send_command(mc_io, &cmd); in dpsw_enable() 116 int dpsw_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpsw_disable() argument 126 return mc_send_command(mc_io, &cmd); in dpsw_disable() 137 int dpsw_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpsw_reset() argument 147 return mc_send_command(mc_io, &cmd); in dpsw_reset() [all …]
|
D | dprtc.c | 29 int dprtc_open(struct fsl_mc_io *mc_io, in dprtc_open() argument 44 err = mc_send_command(mc_io, &cmd); in dprtc_open() 64 int dprtc_close(struct fsl_mc_io *mc_io, in dprtc_close() argument 73 return mc_send_command(mc_io, &cmd); in dprtc_close() 91 int dprtc_set_irq_enable(struct fsl_mc_io *mc_io, in dprtc_set_irq_enable() argument 107 return mc_send_command(mc_io, &cmd); in dprtc_set_irq_enable() 120 int dprtc_get_irq_enable(struct fsl_mc_io *mc_io, in dprtc_get_irq_enable() argument 137 err = mc_send_command(mc_io, &cmd); in dprtc_get_irq_enable() 163 int dprtc_set_irq_mask(struct fsl_mc_io *mc_io, in dprtc_set_irq_mask() argument 179 return mc_send_command(mc_io, &cmd); in dprtc_set_irq_mask() [all …]
|
D | dpmac.c | 26 int dpmac_open(struct fsl_mc_io *mc_io, in dpmac_open() argument 43 err = mc_send_command(mc_io, &cmd); in dpmac_open() 64 int dpmac_close(struct fsl_mc_io *mc_io, in dpmac_close() argument 75 return mc_send_command(mc_io, &cmd); in dpmac_close() 88 int dpmac_get_attributes(struct fsl_mc_io *mc_io, in dpmac_get_attributes() argument 103 err = mc_send_command(mc_io, &cmd); in dpmac_get_attributes() 126 int dpmac_set_link_state(struct fsl_mc_io *mc_io, in dpmac_set_link_state() argument 148 return mc_send_command(mc_io, &cmd); in dpmac_set_link_state() 161 int dpmac_get_counter(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, in dpmac_get_counter() argument 175 err = mc_send_command(mc_io, &cmd); in dpmac_get_counter() [all …]
|
D | dprtc.h | 23 int dprtc_open(struct fsl_mc_io *mc_io, 28 int dprtc_close(struct fsl_mc_io *mc_io, 32 int dprtc_set_irq_enable(struct fsl_mc_io *mc_io, 38 int dprtc_get_irq_enable(struct fsl_mc_io *mc_io, 44 int dprtc_set_irq_mask(struct fsl_mc_io *mc_io, 50 int dprtc_get_irq_mask(struct fsl_mc_io *mc_io, 56 int dprtc_get_irq_status(struct fsl_mc_io *mc_io, 62 int dprtc_clear_irq_status(struct fsl_mc_io *mc_io,
|
D | dpaa2-ptp.c | 51 err = dprtc_get_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 63 err = dprtc_set_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 101 err = dprtc_get_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread() 119 err = dprtc_clear_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread() 141 err = fsl_mc_portal_allocate(mc_dev, 0, &mc_dev->mc_io); in dpaa2_ptp_probe() 150 err = dprtc_open(mc_dev->mc_io, 0, mc_dev->obj_desc.id, in dpaa2_ptp_probe() 190 err = dprtc_set_irq_enable(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_probe() 216 dprtc_close(mc_dev->mc_io, 0, mc_dev->mc_handle); in dpaa2_ptp_probe() 218 fsl_mc_portal_free(mc_dev->mc_io); in dpaa2_ptp_probe() 234 dprtc_close(mc_dev->mc_io, 0, mc_dev->mc_handle); in dpaa2_ptp_remove() [all …]
|
D | dpmac.h | 14 int dpmac_open(struct fsl_mc_io *mc_io, 19 int dpmac_close(struct fsl_mc_io *mc_io, 81 int dpmac_get_attributes(struct fsl_mc_io *mc_io, 121 int dpmac_set_link_state(struct fsl_mc_io *mc_io, 205 int dpmac_get_counter(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 208 int dpmac_get_api_version(struct fsl_mc_io *mc_io, u32 cmd_flags, 211 int dpmac_set_protocol(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
|
/linux-6.1.9/drivers/soc/fsl/dpio/ |
D | dpio.c | 35 int dpio_open(struct fsl_mc_io *mc_io, in dpio_open() argument 51 err = mc_send_command(mc_io, &cmd); in dpio_open() 69 int dpio_close(struct fsl_mc_io *mc_io, in dpio_close() argument 80 return mc_send_command(mc_io, &cmd); in dpio_close() 91 int dpio_enable(struct fsl_mc_io *mc_io, in dpio_enable() argument 102 return mc_send_command(mc_io, &cmd); in dpio_enable() 113 int dpio_disable(struct fsl_mc_io *mc_io, in dpio_disable() argument 124 return mc_send_command(mc_io, &cmd); in dpio_disable() 136 int dpio_get_attributes(struct fsl_mc_io *mc_io, in dpio_get_attributes() argument 150 err = mc_send_command(mc_io, &cmd); in dpio_get_attributes() [all …]
|
D | dpio.h | 12 int dpio_open(struct fsl_mc_io *mc_io, 17 int dpio_close(struct fsl_mc_io *mc_io, 44 int dpio_enable(struct fsl_mc_io *mc_io, 48 int dpio_disable(struct fsl_mc_io *mc_io, 75 int dpio_get_attributes(struct fsl_mc_io *mc_io, 80 int dpio_set_stashing_destination(struct fsl_mc_io *mc_io, 85 int dpio_get_api_version(struct fsl_mc_io *mc_io, 90 int dpio_reset(struct fsl_mc_io *mc_io,
|
D | dpio-driver.c | 138 err = fsl_mc_portal_allocate(dpio_dev, 0, &dpio_dev->mc_io); in dpaa2_dpio_probe() 145 err = dpio_open(dpio_dev->mc_io, 0, dpio_dev->obj_desc.id, in dpaa2_dpio_probe() 152 err = dpio_reset(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 158 err = dpio_get_attributes(dpio_dev->mc_io, 0, dpio_dev->mc_handle, in dpaa2_dpio_probe() 167 err = dpio_enable(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 190 err = dpio_set_stashing_destination(dpio_dev->mc_io, 0, in dpaa2_dpio_probe() 248 dpio_close(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 257 dpio_disable(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 260 dpio_close(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 262 fsl_mc_portal_free(dpio_dev->mc_io); in dpaa2_dpio_probe() [all …]
|
/linux-6.1.9/drivers/dma/fsl-dpaa2-qdma/ |
D | dpdmai.c | 68 int dpdmai_open(struct fsl_mc_io *mc_io, u32 cmd_flags, in dpdmai_open() argument 83 err = mc_send_command(mc_io, &cmd); in dpdmai_open() 105 int dpdmai_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpdmai_close() argument 114 return mc_send_command(mc_io, &cmd); in dpdmai_close() 140 int dpdmai_create(struct fsl_mc_io *mc_io, u32 cmd_flags, in dpdmai_create() argument 152 err = mc_send_command(mc_io, &cmd); in dpdmai_create() 170 int dpdmai_destroy(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpdmai_destroy() argument 179 return mc_send_command(mc_io, &cmd); in dpdmai_destroy() 191 int dpdmai_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpdmai_enable() argument 200 return mc_send_command(mc_io, &cmd); in dpdmai_enable() [all …]
|
D | dpdmai.h | 161 int dpdmai_open(struct fsl_mc_io *mc_io, u32 cmd_flags, 163 int dpdmai_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 164 int dpdmai_destroy(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 165 int dpdmai_create(struct fsl_mc_io *mc_io, u32 cmd_flags, 167 int dpdmai_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 168 int dpdmai_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 169 int dpdmai_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 170 int dpdmai_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, 172 int dpdmai_set_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 174 int dpdmai_get_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, [all …]
|
/linux-6.1.9/drivers/crypto/caam/ |
D | dpseci.c | 27 int dpseci_open(struct fsl_mc_io *mc_io, u32 cmd_flags, int dpseci_id, in dpseci_open() argument 39 err = mc_send_command(mc_io, &cmd); in dpseci_open() 59 int dpseci_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpseci_close() argument 66 return mc_send_command(mc_io, &cmd); in dpseci_close() 77 int dpseci_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpseci_enable() argument 84 return mc_send_command(mc_io, &cmd); in dpseci_enable() 95 int dpseci_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpseci_disable() argument 103 return mc_send_command(mc_io, &cmd); in dpseci_disable() 114 int dpseci_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token) in dpseci_reset() argument 121 return mc_send_command(mc_io, &cmd); in dpseci_reset() [all …]
|
D | dpseci.h | 30 int dpseci_open(struct fsl_mc_io *mc_io, u32 cmd_flags, int dpseci_id, 33 int dpseci_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 58 int dpseci_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 60 int dpseci_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 62 int dpseci_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 64 int dpseci_is_enabled(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 82 int dpseci_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 155 int dpseci_set_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 174 int dpseci_get_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 187 int dpseci_get_tx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, [all …]
|
/linux-6.1.9/include/linux/fsl/ |
D | mc.h | 211 struct fsl_mc_io *mc_io; member 360 int mc_send_command(struct fsl_mc_io *mc_io, struct fsl_mc_command *cmd); 418 void fsl_mc_portal_free(struct fsl_mc_io *mc_io); 420 int fsl_mc_portal_reset(struct fsl_mc_io *mc_io); 533 int dprc_reset_container(struct fsl_mc_io *mc_io, 566 int dpbp_open(struct fsl_mc_io *mc_io, 571 int dpbp_close(struct fsl_mc_io *mc_io, 575 int dpbp_enable(struct fsl_mc_io *mc_io, 579 int dpbp_disable(struct fsl_mc_io *mc_io, 583 int dpbp_reset(struct fsl_mc_io *mc_io, [all …]
|