| /drivers/bus/fsl-mc/ |
| A D | mc-io.c | 17 if (mc_io->dpmcp_dev) in fsl_mc_io_set_dpmcp() 20 if (dpmcp_dev->mc_io) in fsl_mc_io_set_dpmcp() 31 dpmcp_dev->mc_io = mc_io; in fsl_mc_io_set_dpmcp() 76 mc_io = devm_kzalloc(dev, sizeof(*mc_io), GFP_KERNEL); in fsl_create_mc_io() 77 if (!mc_io) in fsl_create_mc_io() 80 mc_io->dev = dev; in fsl_create_mc_io() 81 mc_io->flags = flags; in fsl_create_mc_io() 117 *new_mc_io = mc_io; in fsl_create_mc_io() 134 if (!mc_io) in fsl_destroy_mc_io() 142 devm_iounmap(mc_io->dev, mc_io->portal_virt_addr); in fsl_destroy_mc_io() [all …]
|
| A D | mc-sys.c | 183 dev_dbg(mc_io->dev, in mc_polling_wait_preemptible() 185 &mc_io->portal_phys_addr, in mc_polling_wait_preemptible() 223 dev_dbg(mc_io->dev, in mc_polling_wait_atomic() 225 &mc_io->portal_phys_addr, in mc_polling_wait_atomic() 254 if (mc_io->flags & FSL_MC_IO_ATOMIC_CONTEXT_PORTAL) in mc_send_command() 257 mutex_lock(&mc_io->mutex); in mc_send_command() 262 mc_write_command(mc_io->portal_virt_addr, cmd); in mc_send_command() 276 dev_dbg(mc_io->dev, in mc_send_command() 278 &mc_io->portal_phys_addr, in mc_send_command() 290 if (mc_io->flags & FSL_MC_IO_ATOMIC_CONTEXT_PORTAL) in mc_send_command() [all …]
|
| A 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() 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() 184 return mc_send_command(mc_io, &cmd); in dprc_set_irq() 219 return mc_send_command(mc_io, &cmd); in dprc_set_irq_enable() 289 err = mc_send_command(mc_io, &cmd); in dprc_get_irq_status() 356 err = mc_send_command(mc_io, &cmd); in dprc_get_attributes() [all …]
|
| A 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() 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() 178 err = mc_send_command(mc_io, &cmd); in dpcon_get_attributes() [all …]
|
| A 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 …]
|
| A D | dprc-driver.c | 255 error = dprc_get_obj_count(mc_bus_dev->mc_io, in dprc_scan_objects() 283 error = dprc_get_obj(mc_bus_dev->mc_io, in dprc_scan_objects() 407 struct fsl_mc_io *mc_io = mc_dev->mc_io; in dprc_irq0_handler_thread() local 472 struct fsl_mc_io *mc_io = mc_dev->mc_io; in disable_dprc_irq() local 637 if (!mc_dev->mc_io) { in dprc_setup() 654 &mc_dev->mc_io); in dprc_setup() 717 fsl_destroy_mc_io(mc_dev->mc_io); in dprc_setup() 718 mc_dev->mc_io = NULL; in dprc_setup() 812 if (!mc_dev->mc_io) { in dprc_cleanup() 822 fsl_destroy_mc_io(mc_dev->mc_io); in dprc_cleanup() [all …]
|
| A 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, 258 int dprc_open(struct fsl_mc_io *mc_io, 263 int dprc_close(struct fsl_mc_io *mc_io, 300 int dprc_set_irq(struct fsl_mc_io *mc_io, 306 int dprc_set_irq_enable(struct fsl_mc_io *mc_io, 312 int dprc_set_irq_mask(struct fsl_mc_io *mc_io, 349 int dprc_get_obj_count(struct fsl_mc_io *mc_io, 354 int dprc_get_obj(struct fsl_mc_io *mc_io, 360 int dprc_set_obj_irq(struct fsl_mc_io *mc_io, [all …]
|
| A D | fsl-mc-bus.c | 542 err = mc_send_command(mc_io, &cmd); in mc_get_version() 783 struct fsl_mc_io *mc_io, in fsl_mc_device_add() argument 817 mc_dev->mc_io = mc_io; in fsl_mc_device_add() 849 mc_io2 = parent_mc_dev->mc_io; in fsl_mc_device_add() 854 if (!mc_io) { in fsl_mc_device_add() 859 mc_io2 = mc_io; in fsl_mc_device_add() 1049 struct fsl_mc_io *mc_io = NULL; in fsl_mc_bus_probe() local 1164 fsl_destroy_mc_io(mc_io); in fsl_mc_bus_probe() 1175 struct fsl_mc_io *mc_io; in fsl_mc_bus_remove() local 1177 mc_io = mc->root_mc_bus_dev->mc_io; in fsl_mc_bus_remove() [all …]
|
| /drivers/net/ethernet/freescale/dpaa2/ |
| A D | dpni.h | 86 int dpni_open(struct fsl_mc_io *mc_io, 91 int dpni_close(struct fsl_mc_io *mc_io, 122 int dpni_set_pools(struct fsl_mc_io *mc_io, 127 int dpni_enable(struct fsl_mc_io *mc_io, 131 int dpni_disable(struct fsl_mc_io *mc_io, 135 int dpni_is_enabled(struct fsl_mc_io *mc_io, 140 int dpni_reset(struct fsl_mc_io *mc_io, 166 int dpni_set_irq_mask(struct fsl_mc_io *mc_io, 395 int dpni_get_qdid(struct fsl_mc_io *mc_io, 834 int dpni_set_queue(struct fsl_mc_io *mc_io, [all …]
|
| A 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, 184 int dpsw_ctrl_if_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, 433 int dpsw_vlan_add(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 592 int dpsw_get_api_version(struct fsl_mc_io *mc_io, u32 cmd_flags, [all …]
|
| A 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() 146 return mc_send_command(mc_io, &cmd); in dpni_close() 189 return mc_send_command(mc_io, &cmd); in dpni_set_pools() 212 return mc_send_command(mc_io, &cmd); in dpni_enable() 235 return mc_send_command(mc_io, &cmd); in dpni_disable() 262 err = mc_send_command(mc_io, &cmd); in dpni_is_enabled() 362 err = mc_send_command(mc_io, &cmd); in dpni_get_irq_enable() 442 err = mc_send_command(mc_io, &cmd); in dpni_get_irq_mask() 485 err = mc_send_command(mc_io, &cmd); in dpni_get_irq_status() [all …]
|
| A D | dpsw.c | 53 err = mc_send_command(mc_io, &cmd); in dpsw_open() 84 return mc_send_command(mc_io, &cmd); in dpsw_close() 105 return mc_send_command(mc_io, &cmd); in dpsw_enable() 126 return mc_send_command(mc_io, &cmd); in dpsw_disable() 147 return mc_send_command(mc_io, &cmd); in dpsw_reset() 180 return mc_send_command(mc_io, &cmd); in dpsw_set_irq_enable() 214 return mc_send_command(mc_io, &cmd); in dpsw_set_irq_mask() 246 err = mc_send_command(mc_io, &cmd); in dpsw_get_irq_status() 309 err = mc_send_command(mc_io, &cmd); in dpsw_get_attributes() 388 err = mc_send_command(mc_io, &cmd); in dpsw_if_get_link_state() [all …]
|
| A 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() 107 return mc_send_command(mc_io, &cmd); in dprtc_set_irq_enable() 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() 212 err = mc_send_command(mc_io, &cmd); in dprtc_get_irq_mask() 253 err = mc_send_command(mc_io, &cmd); in dprtc_get_irq_status() [all …]
|
| A 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() 175 err = mc_send_command(mc_io, &cmd); in dpmac_get_counter() 205 err = mc_send_command(mc_io, &cmd); in dpmac_get_api_version() [all …]
|
| A 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,
|
| A D | dpaa2-ptp.c | 50 err = dprtc_get_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 62 err = dprtc_set_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 100 err = dprtc_get_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread() 118 err = dprtc_clear_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread() 140 err = fsl_mc_portal_allocate(mc_dev, 0, &mc_dev->mc_io); in dpaa2_ptp_probe() 149 err = dprtc_open(mc_dev->mc_io, 0, mc_dev->obj_desc.id, in dpaa2_ptp_probe() 189 err = dprtc_set_irq_enable(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_probe() 215 dprtc_close(mc_dev->mc_io, 0, mc_dev->mc_handle); in dpaa2_ptp_probe() 217 fsl_mc_portal_free(mc_dev->mc_io); in dpaa2_ptp_probe() 233 dprtc_close(mc_dev->mc_io, 0, mc_dev->mc_handle); in dpaa2_ptp_remove() [all …]
|
| A 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,
|
| A D | dpaa2-switch.c | 198 err = dpsw_vlan_add(ethsw->mc_io, 0, in dpaa2_switch_add_vlan() 248 err = dpsw_if_disable(ethsw->mc_io, 0, in dpaa2_switch_port_set_pvid() 271 ret = dpsw_if_enable(ethsw->mc_io, 0, in dpaa2_switch_port_set_pvid() 312 err = dpsw_vlan_add_if_untagged(ethsw->mc_io, 0, in dpaa2_switch_port_add_vlan() 1466 mac->mc_io = port_priv->ethsw_data->mc_io; in dpaa2_switch_port_connect_mac() 2917 err = dpsw_ctrl_if_set_queue(ethsw->mc_io, 0, in dpaa2_switch_setup_dpio() 3027 err = dpsw_get_api_version(ethsw->mc_io, 0, in dpaa2_switch_init() 3132 dpsw_close(ethsw->mc_io, 0, ethsw->dpsw_handle); in dpaa2_switch_init() 3289 fsl_mc_portal_free(ethsw->mc_io); in dpaa2_switch_remove() 3388 ðsw->mc_io); in dpaa2_switch_probe() [all …]
|
| /drivers/soc/fsl/dpio/ |
| A 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() 124 return mc_send_command(mc_io, &cmd); in dpio_disable() 150 err = mc_send_command(mc_io, &cmd); in dpio_get_attributes() 183 return mc_send_command(mc_io, &cmd); in dpio_set_stashing_destination() 207 err = mc_send_command(mc_io, &cmd); in dpio_get_api_version() [all …]
|
| A 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,
|
| A D | dpio-driver.c | 144 err = dpio_open(dpio_dev->mc_io, 0, dpio_dev->obj_desc.id, in dpaa2_dpio_probe() 151 err = dpio_reset(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 166 err = dpio_enable(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 189 err = dpio_set_stashing_destination(dpio_dev->mc_io, 0, in dpaa2_dpio_probe() 247 dpio_close(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 256 dpio_disable(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 259 dpio_close(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_probe() 261 fsl_mc_portal_free(dpio_dev->mc_io); in dpaa2_dpio_probe() 296 dpio_disable(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_remove() 298 dpio_close(dpio_dev->mc_io, 0, dpio_dev->mc_handle); in dpaa2_dpio_remove() [all …]
|
| /drivers/crypto/caam/ |
| A D | dpseci.c | 39 err = mc_send_command(mc_io, &cmd); in dpseci_open() 66 return mc_send_command(mc_io, &cmd); in dpseci_close() 84 return mc_send_command(mc_io, &cmd); in dpseci_enable() 103 return mc_send_command(mc_io, &cmd); in dpseci_disable() 121 return mc_send_command(mc_io, &cmd); in dpseci_reset() 143 err = mc_send_command(mc_io, &cmd); in dpseci_is_enabled() 172 err = mc_send_command(mc_io, &cmd); in dpseci_get_attributes() 243 err = mc_send_command(mc_io, &cmd); in dpseci_get_rx_queue() 284 err = mc_send_command(mc_io, &cmd); in dpseci_get_tx_queue() 314 err = mc_send_command(mc_io, &cmd); in dpseci_get_sec_attr() [all …]
|
| A 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 …]
|
| /drivers/dma/fsl-dpaa2-qdma/ |
| A 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() 114 return mc_send_command(mc_io, &cmd); in dpdmai_close() 140 return mc_send_command(mc_io, &cmd); in dpdmai_destroy() 161 return mc_send_command(mc_io, &cmd); in dpdmai_enable() 182 return mc_send_command(mc_io, &cmd); in dpdmai_disable() 203 return mc_send_command(mc_io, &cmd); in dpdmai_reset() 228 err = mc_send_command(mc_io, &cmd); in dpdmai_get_attributes() 276 return mc_send_command(mc_io, &cmd); in dpdmai_set_rx_queue() 308 err = mc_send_command(mc_io, &cmd); in dpdmai_get_rx_queue() [all …]
|
| A D | dpdmai.h | 162 int dpdmai_open(struct fsl_mc_io *mc_io, u32 cmd_flags, 164 int dpdmai_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 165 int dpdmai_destroy(struct fsl_mc_io *mc_io, u32 cmd_flags, u32 dpdmai_id, u16 token); 166 int dpdmai_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 167 int dpdmai_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 168 int dpdmai_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); 169 int dpdmai_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, 171 int dpdmai_set_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 173 int dpdmai_get_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, 175 int dpdmai_get_tx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags,
|