ipoctal            55 drivers/ipack/devices/ipoctal.c static inline struct ipoctal *chan_to_ipoctal(struct ipoctal_channel *chan,
ipoctal            58 drivers/ipack/devices/ipoctal.c 	return container_of(chan, struct ipoctal, channel[index]);
ipoctal            89 drivers/ipack/devices/ipoctal.c 	struct ipoctal *ipoctal = chan_to_ipoctal(channel, tty->index);
ipoctal            94 drivers/ipack/devices/ipoctal.c 	if (!ipack_get_carrier(ipoctal->dev))
ipoctal            99 drivers/ipack/devices/ipoctal.c 		ipack_put_carrier(ipoctal->dev);
ipoctal           245 drivers/ipack/devices/ipoctal.c 	struct ipoctal *ipoctal = (struct ipoctal *) arg;
ipoctal           248 drivers/ipack/devices/ipoctal.c 	readw(ipoctal->int_space + ACK_INT_REQ0);
ipoctal           249 drivers/ipack/devices/ipoctal.c 	readw(ipoctal->int_space + ACK_INT_REQ1);
ipoctal           253 drivers/ipack/devices/ipoctal.c 		ipoctal_irq_channel(&ipoctal->channel[i]);
ipoctal           263 drivers/ipack/devices/ipoctal.c static int ipoctal_inst_slot(struct ipoctal *ipoctal, unsigned int bus_nr,
ipoctal           276 drivers/ipack/devices/ipoctal.c 	ipoctal->board_id = ipoctal->dev->id_device;
ipoctal           278 drivers/ipack/devices/ipoctal.c 	region = &ipoctal->dev->region[IPACK_IO_SPACE];
ipoctal           279 drivers/ipack/devices/ipoctal.c 	addr = devm_ioremap_nocache(&ipoctal->dev->dev,
ipoctal           282 drivers/ipack/devices/ipoctal.c 		dev_err(&ipoctal->dev->dev,
ipoctal           293 drivers/ipack/devices/ipoctal.c 	region = &ipoctal->dev->region[IPACK_INT_SPACE];
ipoctal           294 drivers/ipack/devices/ipoctal.c 	ipoctal->int_space =
ipoctal           295 drivers/ipack/devices/ipoctal.c 		devm_ioremap_nocache(&ipoctal->dev->dev,
ipoctal           297 drivers/ipack/devices/ipoctal.c 	if (!ipoctal->int_space) {
ipoctal           298 drivers/ipack/devices/ipoctal.c 		dev_err(&ipoctal->dev->dev,
ipoctal           304 drivers/ipack/devices/ipoctal.c 	region = &ipoctal->dev->region[IPACK_MEM8_SPACE];
ipoctal           305 drivers/ipack/devices/ipoctal.c 	ipoctal->mem8_space =
ipoctal           306 drivers/ipack/devices/ipoctal.c 		devm_ioremap_nocache(&ipoctal->dev->dev,
ipoctal           308 drivers/ipack/devices/ipoctal.c 	if (!ipoctal->mem8_space) {
ipoctal           309 drivers/ipack/devices/ipoctal.c 		dev_err(&ipoctal->dev->dev,
ipoctal           318 drivers/ipack/devices/ipoctal.c 		struct ipoctal_channel *channel = &ipoctal->channel[i];
ipoctal           321 drivers/ipack/devices/ipoctal.c 		channel->board_id = ipoctal->board_id;
ipoctal           347 drivers/ipack/devices/ipoctal.c 	iowrite8(1, ipoctal->mem8_space + 1);
ipoctal           376 drivers/ipack/devices/ipoctal.c 		dev_err(&ipoctal->dev->dev, "Can't register tty driver.\n");
ipoctal           382 drivers/ipack/devices/ipoctal.c 	ipoctal->tty_drv = tty;
ipoctal           387 drivers/ipack/devices/ipoctal.c 		channel = &ipoctal->channel[i];
ipoctal           399 drivers/ipack/devices/ipoctal.c 			dev_err(&ipoctal->dev->dev, "Failed to register tty device.\n");
ipoctal           411 drivers/ipack/devices/ipoctal.c 	ipoctal->dev->bus->ops->request_irq(ipoctal->dev,
ipoctal           412 drivers/ipack/devices/ipoctal.c 				       ipoctal_irq_handler, ipoctal);
ipoctal           647 drivers/ipack/devices/ipoctal.c 	struct ipoctal *ipoctal = chan_to_ipoctal(channel, tty->index);
ipoctal           650 drivers/ipack/devices/ipoctal.c 	ipack_put_carrier(ipoctal->dev);
ipoctal           670 drivers/ipack/devices/ipoctal.c 	struct ipoctal *ipoctal;
ipoctal           672 drivers/ipack/devices/ipoctal.c 	ipoctal = kzalloc(sizeof(struct ipoctal), GFP_KERNEL);
ipoctal           673 drivers/ipack/devices/ipoctal.c 	if (ipoctal == NULL)
ipoctal           676 drivers/ipack/devices/ipoctal.c 	ipoctal->dev = dev;
ipoctal           677 drivers/ipack/devices/ipoctal.c 	res = ipoctal_inst_slot(ipoctal, dev->bus->bus_nr, dev->slot);
ipoctal           681 drivers/ipack/devices/ipoctal.c 	dev_set_drvdata(&dev->dev, ipoctal);
ipoctal           685 drivers/ipack/devices/ipoctal.c 	kfree(ipoctal);
ipoctal           689 drivers/ipack/devices/ipoctal.c static void __ipoctal_remove(struct ipoctal *ipoctal)
ipoctal           693 drivers/ipack/devices/ipoctal.c 	ipoctal->dev->bus->ops->free_irq(ipoctal->dev);
ipoctal           696 drivers/ipack/devices/ipoctal.c 		struct ipoctal_channel *channel = &ipoctal->channel[i];
ipoctal           697 drivers/ipack/devices/ipoctal.c 		tty_unregister_device(ipoctal->tty_drv, i);
ipoctal           702 drivers/ipack/devices/ipoctal.c 	tty_unregister_driver(ipoctal->tty_drv);
ipoctal           703 drivers/ipack/devices/ipoctal.c 	put_tty_driver(ipoctal->tty_drv);
ipoctal           704 drivers/ipack/devices/ipoctal.c 	kfree(ipoctal);