sim                22 arch/arm/mach-imx/mach-imx7ulp.c 	struct regmap *sim;
sim                25 arch/arm/mach-imx/mach-imx7ulp.c 	sim = syscon_regmap_lookup_by_compatible("fsl,imx7ulp-sim");
sim                26 arch/arm/mach-imx/mach-imx7ulp.c 	if (IS_ERR(sim)) {
sim                31 arch/arm/mach-imx/mach-imx7ulp.c 	if (regmap_read(sim, SIM_JTAG_ID_REG, &revision)) {
sim               234 drivers/gpio/gpio-mockup.c 	struct irq_sim *sim;
sim               250 drivers/gpio/gpio-mockup.c 	sim = &chip->irqsim;
sim               260 drivers/gpio/gpio-mockup.c 		irq = irq_sim_irqnum(sim, priv->offset);
sim               265 drivers/gpio/gpio-mockup.c 			irq_sim_fire(sim, priv->offset);
sim               173 drivers/iio/accel/st_accel_core.c 		.sim = {
sim               255 drivers/iio/accel/st_accel_core.c 		.sim = {
sim               345 drivers/iio/accel/st_accel_core.c 		.sim = {
sim               417 drivers/iio/accel/st_accel_core.c 		.sim = {
sim               489 drivers/iio/accel/st_accel_core.c 		.sim = {
sim               560 drivers/iio/accel/st_accel_core.c 		.sim = {
sim               617 drivers/iio/accel/st_accel_core.c 		.sim = {
sim               692 drivers/iio/accel/st_accel_core.c 		.sim = {
sim               773 drivers/iio/accel/st_accel_core.c 		.sim = {
sim               901 drivers/iio/accel/st_accel_core.c 		.sim = {
sim                62 drivers/iio/common/st_sensors/st_sensors_spi.c 	if (settings->sim.addr) {
sim                64 drivers/iio/common/st_sensors/st_sensors_spi.c 			settings->sim.addr,
sim                65 drivers/iio/common/st_sensors/st_sensors_spi.c 			settings->sim.value
sim               126 drivers/iio/gyro/st_gyro_core.c 		.sim = {
sim               204 drivers/iio/gyro/st_gyro_core.c 		.sim = {
sim               278 drivers/iio/gyro/st_gyro_core.c 		.sim = {
sim               352 drivers/iio/gyro/st_gyro_core.c 		.sim = {
sim               328 drivers/iio/magnetometer/st_magn_core.c 		.sim = {
sim               300 drivers/iio/pressure/st_pressure_core.c 		.sim = {
sim               350 drivers/iio/pressure/st_pressure_core.c 		.sim = {
sim               417 drivers/iio/pressure/st_pressure_core.c 		.sim = {
sim               486 drivers/iio/pressure/st_pressure_core.c 		.sim = {
sim               555 drivers/iio/pressure/st_pressure_core.c 		.sim = {
sim               220 drivers/pci/pcie/aer_inject.c 	u32 *sim;
sim               236 drivers/pci/pcie/aer_inject.c 	sim = find_pci_config_dword(err, where, NULL);
sim               237 drivers/pci/pcie/aer_inject.c 	if (sim) {
sim               238 drivers/pci/pcie/aer_inject.c 		*val = *sim;
sim               251 drivers/pci/pcie/aer_inject.c 	u32 *sim;
sim               268 drivers/pci/pcie/aer_inject.c 	sim = find_pci_config_dword(err, where, &rw1cs);
sim               269 drivers/pci/pcie/aer_inject.c 	if (sim) {
sim               271 drivers/pci/pcie/aer_inject.c 			*sim ^= val;
sim               273 drivers/pci/pcie/aer_inject.c 			*sim = val;
sim              1427 drivers/scsi/aic7xxx/aic79xx.h 				  struct cam_sim *sim, union ccb *ccb);
sim              1429 drivers/scsi/aic7xxx/aic79xx.h 				    struct cam_sim *sim, union ccb *ccb,
sim              10226 drivers/scsi/aic7xxx/aic79xx_core.c ahd_find_tmode_devs(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb,
sim              10267 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_en_lun(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb)
sim              10280 drivers/scsi/aic7xxx/aic79xx_core.c 	status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate, &lstate,
sim              10348 drivers/scsi/aic7xxx/aic79xx_core.c 	channel = SIM_CHANNEL(ahd, sim);
sim              10425 drivers/scsi/aic7xxx/aic79xx_core.c 				channel = SIM_CHANNEL(ahd, sim);
sim              10426 drivers/scsi/aic7xxx/aic79xx_core.c 				our_id = SIM_SCSI_ID(ahd, sim);
sim              1238 drivers/scsi/aic7xxx/aic7xxx.h 				  struct cam_sim *sim, union ccb *ccb);
sim              1240 drivers/scsi/aic7xxx/aic7xxx.h 				    struct cam_sim *sim, union ccb *ccb,
sim              7319 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_find_tmode_devs(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb,
sim              7360 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_handle_en_lun(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb)
sim              7374 drivers/scsi/aic7xxx/aic7xxx_core.c 	status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate,
sim              7382 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (cam_sim_bus(sim) == 0)
sim              7486 drivers/scsi/aic7xxx/aic7xxx_core.c 	channel = SIM_CHANNEL(ahc, sim);
sim              7567 drivers/scsi/aic7xxx/aic7xxx_core.c 				channel = SIM_CHANNEL(ahc, sim);
sim              7568 drivers/scsi/aic7xxx/aic7xxx_core.c 				our_id = SIM_SCSI_ID(ahc, sim);
sim               207 include/linux/iio/common/st_sensors.h 	struct st_sensor_sim sim;
sim                34 include/linux/irq_sim.h int irq_sim_init(struct irq_sim *sim, unsigned int num_irqs);
sim                35 include/linux/irq_sim.h int devm_irq_sim_init(struct device *dev, struct irq_sim *sim,
sim                37 include/linux/irq_sim.h void irq_sim_fini(struct irq_sim *sim);
sim                38 include/linux/irq_sim.h void irq_sim_fire(struct irq_sim *sim, unsigned int offset);
sim                39 include/linux/irq_sim.h int irq_sim_irqnum(struct irq_sim *sim, unsigned int offset);
sim                11 kernel/irq/irq_sim.c 	struct irq_sim		*sim;
sim                50 kernel/irq/irq_sim.c 	struct irq_sim *sim;
sim                54 kernel/irq/irq_sim.c 	sim = container_of(work_ctx, struct irq_sim, work_ctx);
sim                56 kernel/irq/irq_sim.c 	while (!bitmap_empty(work_ctx->pending, sim->irq_count)) {
sim                58 kernel/irq/irq_sim.c 				       sim->irq_count, offset);
sim                60 kernel/irq/irq_sim.c 		irqnum = irq_sim_irqnum(sim, offset);
sim                75 kernel/irq/irq_sim.c int irq_sim_init(struct irq_sim *sim, unsigned int num_irqs)
sim                79 kernel/irq/irq_sim.c 	sim->irqs = kmalloc_array(num_irqs, sizeof(*sim->irqs), GFP_KERNEL);
sim                80 kernel/irq/irq_sim.c 	if (!sim->irqs)
sim                83 kernel/irq/irq_sim.c 	sim->irq_base = irq_alloc_descs(-1, 0, num_irqs, 0);
sim                84 kernel/irq/irq_sim.c 	if (sim->irq_base < 0) {
sim                85 kernel/irq/irq_sim.c 		kfree(sim->irqs);
sim                86 kernel/irq/irq_sim.c 		return sim->irq_base;
sim                89 kernel/irq/irq_sim.c 	sim->work_ctx.pending = bitmap_zalloc(num_irqs, GFP_KERNEL);
sim                90 kernel/irq/irq_sim.c 	if (!sim->work_ctx.pending) {
sim                91 kernel/irq/irq_sim.c 		kfree(sim->irqs);
sim                92 kernel/irq/irq_sim.c 		irq_free_descs(sim->irq_base, num_irqs);
sim                97 kernel/irq/irq_sim.c 		sim->irqs[i].irqnum = sim->irq_base + i;
sim                98 kernel/irq/irq_sim.c 		sim->irqs[i].enabled = false;
sim                99 kernel/irq/irq_sim.c 		irq_set_chip(sim->irq_base + i, &irq_sim_irqchip);
sim               100 kernel/irq/irq_sim.c 		irq_set_chip_data(sim->irq_base + i, &sim->irqs[i]);
sim               101 kernel/irq/irq_sim.c 		irq_set_handler(sim->irq_base + i, &handle_simple_irq);
sim               102 kernel/irq/irq_sim.c 		irq_modify_status(sim->irq_base + i,
sim               106 kernel/irq/irq_sim.c 	init_irq_work(&sim->work_ctx.work, irq_sim_handle_irq);
sim               107 kernel/irq/irq_sim.c 	sim->irq_count = num_irqs;
sim               109 kernel/irq/irq_sim.c 	return sim->irq_base;
sim               119 kernel/irq/irq_sim.c void irq_sim_fini(struct irq_sim *sim)
sim               121 kernel/irq/irq_sim.c 	irq_work_sync(&sim->work_ctx.work);
sim               122 kernel/irq/irq_sim.c 	bitmap_free(sim->work_ctx.pending);
sim               123 kernel/irq/irq_sim.c 	irq_free_descs(sim->irq_base, sim->irq_count);
sim               124 kernel/irq/irq_sim.c 	kfree(sim->irqs);
sim               132 kernel/irq/irq_sim.c 	irq_sim_fini(this->sim);
sim               145 kernel/irq/irq_sim.c int devm_irq_sim_init(struct device *dev, struct irq_sim *sim,
sim               155 kernel/irq/irq_sim.c 	rv = irq_sim_init(sim, num_irqs);
sim               161 kernel/irq/irq_sim.c 	dr->sim = sim;
sim               174 kernel/irq/irq_sim.c void irq_sim_fire(struct irq_sim *sim, unsigned int offset)
sim               176 kernel/irq/irq_sim.c 	if (sim->irqs[offset].enabled) {
sim               177 kernel/irq/irq_sim.c 		set_bit(offset, sim->work_ctx.pending);
sim               178 kernel/irq/irq_sim.c 		irq_work_queue(&sim->work_ctx.work);
sim               190 kernel/irq/irq_sim.c int irq_sim_irqnum(struct irq_sim *sim, unsigned int offset)
sim               192 kernel/irq/irq_sim.c 	return sim->irqs[offset].irqnum;