devinfo 267 arch/arm/mach-omap2/pm33xx-core.c struct platform_device_info devinfo; devinfo 271 arch/arm/mach-omap2/pm33xx-core.c memset(&devinfo, 0, sizeof(devinfo)); devinfo 272 arch/arm/mach-omap2/pm33xx-core.c devinfo.name = "pm33xx"; devinfo 273 arch/arm/mach-omap2/pm33xx-core.c devinfo.data = pdata; devinfo 274 arch/arm/mach-omap2/pm33xx-core.c devinfo.size_data = sizeof(*pdata); devinfo 275 arch/arm/mach-omap2/pm33xx-core.c devinfo.id = -1; devinfo 276 arch/arm/mach-omap2/pm33xx-core.c platform_device_register_full(&devinfo); devinfo 60 drivers/cpufreq/highbank-cpufreq.c struct platform_device_info devinfo = { .name = "cpufreq-dt", }; devinfo 96 drivers/cpufreq/highbank-cpufreq.c platform_device_register_full(&devinfo); devinfo 63 drivers/i2c/i2c-boardinfo.c struct i2c_devinfo *devinfo; devinfo 65 drivers/i2c/i2c-boardinfo.c devinfo = kzalloc(sizeof(*devinfo), GFP_KERNEL); devinfo 66 drivers/i2c/i2c-boardinfo.c if (!devinfo) { devinfo 72 drivers/i2c/i2c-boardinfo.c devinfo->busnum = busnum; devinfo 73 drivers/i2c/i2c-boardinfo.c devinfo->board_info = *info; devinfo 76 drivers/i2c/i2c-boardinfo.c devinfo->board_info.properties = devinfo 78 drivers/i2c/i2c-boardinfo.c if (IS_ERR(devinfo->board_info.properties)) { devinfo 79 drivers/i2c/i2c-boardinfo.c status = PTR_ERR(devinfo->board_info.properties); devinfo 80 drivers/i2c/i2c-boardinfo.c kfree(devinfo); devinfo 86 drivers/i2c/i2c-boardinfo.c devinfo->board_info.resources = devinfo 91 drivers/i2c/i2c-boardinfo.c if (!devinfo->board_info.resources) { devinfo 93 drivers/i2c/i2c-boardinfo.c kfree(devinfo); devinfo 98 drivers/i2c/i2c-boardinfo.c list_add_tail(&devinfo->list, &__i2c_board_list); devinfo 1210 drivers/i2c/i2c-core-base.c struct i2c_devinfo *devinfo; devinfo 1213 drivers/i2c/i2c-core-base.c list_for_each_entry(devinfo, &__i2c_board_list, list) { devinfo 1214 drivers/i2c/i2c-core-base.c if (devinfo->busnum == adapter->nr devinfo 1216 drivers/i2c/i2c-core-base.c &devinfo->board_info)) devinfo 1219 drivers/i2c/i2c-core-base.c devinfo->board_info.addr); devinfo 214 drivers/i3c/device.c struct i3c_device_info devinfo; devinfo 217 drivers/i3c/device.c i3c_device_get_info(i3cdev, &devinfo); devinfo 223 drivers/i3c/device.c if (!I3C_PID_RND_LOWER_32BITS(devinfo.pid)) { devinfo 224 drivers/i3c/device.c u16 manuf = I3C_PID_MANUF_ID(devinfo.pid); devinfo 225 drivers/i3c/device.c u16 part = I3C_PID_PART_ID(devinfo.pid); devinfo 226 drivers/i3c/device.c u16 ext_info = I3C_PID_EXTRA_INFO(devinfo.pid); devinfo 248 drivers/i3c/device.c id->dcr == devinfo.dcr) devinfo 257 drivers/i3c/master.c struct i3c_device_info devinfo; devinfo 260 drivers/i3c/master.c i3c_device_get_info(i3cdev, &devinfo); devinfo 261 drivers/i3c/master.c manuf = I3C_PID_MANUF_ID(devinfo.pid); devinfo 262 drivers/i3c/master.c part = I3C_PID_PART_ID(devinfo.pid); devinfo 263 drivers/i3c/master.c ext = I3C_PID_EXTRA_INFO(devinfo.pid); devinfo 265 drivers/i3c/master.c if (I3C_PID_RND_LOWER_32BITS(devinfo.pid)) devinfo 267 drivers/i3c/master.c devinfo.dcr, manuf); devinfo 271 drivers/i3c/master.c devinfo.dcr, manuf, part, ext); devinfo 833 drivers/ide/ide-cd.c cd->devinfo.media_written = 1; devinfo 969 drivers/ide/ide-cd.c cdi = &info->devinfo; devinfo 1062 drivers/ide/ide-cd.c struct cdrom_device_info *cdi = &info->devinfo; devinfo 1227 drivers/ide/ide-cd.c struct cdrom_device_info *cdi = &info->devinfo; devinfo 1294 drivers/ide/ide-cd.c struct cdrom_device_info *devinfo = &info->devinfo; devinfo 1298 drivers/ide/ide-cd.c devinfo->ops = &ide_cdrom_dops; devinfo 1299 drivers/ide/ide-cd.c devinfo->speed = info->current_speed; devinfo 1300 drivers/ide/ide-cd.c devinfo->capacity = nslots; devinfo 1301 drivers/ide/ide-cd.c devinfo->handle = drive; devinfo 1302 drivers/ide/ide-cd.c strcpy(devinfo->name, drive->name); devinfo 1305 drivers/ide/ide-cd.c devinfo->mask |= CDC_SELECT_SPEED; devinfo 1307 drivers/ide/ide-cd.c devinfo->disk = info->disk; devinfo 1308 drivers/ide/ide-cd.c return register_cdrom(devinfo); devinfo 1314 drivers/ide/ide-cd.c struct cdrom_device_info *cdi = &cd->devinfo; devinfo 1516 drivers/ide/ide-cd.c struct cdrom_device_info *cdi = &cd->devinfo; devinfo 1549 drivers/ide/ide-cd.c cd->devinfo.handle = NULL; devinfo 1575 drivers/ide/ide-cd.c struct cdrom_device_info *devinfo = &info->devinfo; devinfo 1582 drivers/ide/ide-cd.c if (devinfo->handle == drive) devinfo 1583 drivers/ide/ide-cd.c unregister_cdrom(devinfo); devinfo 1621 drivers/ide/ide-cd.c rc = cdrom_open(&info->devinfo, bdev, mode); devinfo 1634 drivers/ide/ide-cd.c cdrom_release(&info->devinfo, mode); devinfo 1687 drivers/ide/ide-cd.c return idecd_set_spindown(&info->devinfo, arg); devinfo 1689 drivers/ide/ide-cd.c return idecd_get_spindown(&info->devinfo, arg); devinfo 1696 drivers/ide/ide-cd.c err = cdrom_ioctl(&info->devinfo, bdev, mode, cmd, arg); devinfo 1718 drivers/ide/ide-cd.c return cdrom_check_events(&info->devinfo, clearing); devinfo 91 drivers/ide/ide-cd.h struct cdrom_device_info devinfo; devinfo 112 drivers/ide/ide-cd_ioctl.c struct cdrom_device_info *cdi = &cd->devinfo; devinfo 103 drivers/input/joystick/maplecontrol.c unsigned long data = be32_to_cpu(mdev->devinfo.function_data[0]); devinfo 604 drivers/mtd/maps/vmu-flash.c test_flash_data = be32_to_cpu(mdev->devinfo.function); devinfo 610 drivers/mtd/maps/vmu-flash.c basic_flash_data = be32_to_cpu(mdev->devinfo.function_data[c - 1]); devinfo 268 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c u16 (*read_ptr)(struct brcmf_pciedev_info *devinfo, u32 mem_offset); devinfo 269 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void (*write_ptr)(struct brcmf_pciedev_info *devinfo, u32 mem_offset, devinfo 279 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo; devinfo 341 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_prepare_fw_request(struct brcmf_pciedev_info *devinfo); devinfo 344 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_read_reg32(struct brcmf_pciedev_info *devinfo, u32 reg_offset) devinfo 346 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *address = devinfo->regs + reg_offset; devinfo 353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(struct brcmf_pciedev_info *devinfo, u32 reg_offset, devinfo 356 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *address = devinfo->regs + reg_offset; devinfo 363 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_read_tcm8(struct brcmf_pciedev_info *devinfo, u32 mem_offset) devinfo 365 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *address = devinfo->tcm + mem_offset; devinfo 372 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_read_tcm16(struct brcmf_pciedev_info *devinfo, u32 mem_offset) devinfo 374 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *address = devinfo->tcm + mem_offset; devinfo 381 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm16(struct brcmf_pciedev_info *devinfo, u32 mem_offset, devinfo 384 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *address = devinfo->tcm + mem_offset; devinfo 391 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_read_idx(struct brcmf_pciedev_info *devinfo, u32 mem_offset) devinfo 393 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c u16 *address = devinfo->idxbuf + mem_offset; devinfo 400 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_idx(struct brcmf_pciedev_info *devinfo, u32 mem_offset, devinfo 403 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c u16 *address = devinfo->idxbuf + mem_offset; devinfo 410 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_read_tcm32(struct brcmf_pciedev_info *devinfo, u32 mem_offset) devinfo 412 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *address = devinfo->tcm + mem_offset; devinfo 419 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(struct brcmf_pciedev_info *devinfo, u32 mem_offset, devinfo 422 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *address = devinfo->tcm + mem_offset; devinfo 429 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_read_ram32(struct brcmf_pciedev_info *devinfo, u32 mem_offset) devinfo 431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *addr = devinfo->tcm + devinfo->ci->rambase + mem_offset; devinfo 438 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_ram32(struct brcmf_pciedev_info *devinfo, u32 mem_offset, devinfo 441 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *addr = devinfo->tcm + devinfo->ci->rambase + mem_offset; devinfo 448 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_copy_mem_todev(struct brcmf_pciedev_info *devinfo, u32 mem_offset, devinfo 451 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *address = devinfo->tcm + mem_offset; devinfo 489 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_copy_dev_tomem(struct brcmf_pciedev_info *devinfo, u32 mem_offset, devinfo 492 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c void __iomem *address = devinfo->tcm + mem_offset; devinfo 529 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c #define WRITECC32(devinfo, reg, value) brcmf_pcie_write_reg32(devinfo, \ devinfo 534 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_select_core(struct brcmf_pciedev_info *devinfo, u16 coreid) devinfo 536 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c const struct pci_dev *pdev = devinfo->pdev; devinfo 541 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c core = brcmf_chip_get_core(devinfo->ci, coreid); devinfo 560 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_reset_device(struct brcmf_pciedev_info *devinfo) devinfo 578 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!devinfo->ci) devinfo 582 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_select_core(devinfo, BCMA_CORE_PCIE2); devinfo 583 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pci_read_config_dword(devinfo->pdev, BRCMF_PCIE_REG_LINK_STATUS_CTRL, devinfo 586 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_LINK_STATUS_CTRL, devinfo 590 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_select_core(devinfo, BCMA_CORE_CHIPCOMMON); devinfo 591 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c WRITECC32(devinfo, watchdog, 4); devinfo 595 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_select_core(devinfo, BCMA_CORE_PCIE2); devinfo 596 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_LINK_STATUS_CTRL, devinfo 599 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_PCIE2); devinfo 602 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, devinfo 605 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c val = brcmf_pcie_read_reg32(devinfo, devinfo 609 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, devinfo 617 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_attach(struct brcmf_pciedev_info *devinfo) devinfo 622 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_select_core(devinfo, BCMA_CORE_PCIE2); devinfo 623 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_PCIE2REG_CONFIGADDR, 0x4e0); devinfo 624 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c config = brcmf_pcie_read_reg32(devinfo, BRCMF_PCIE_PCIE2REG_CONFIGDATA); devinfo 625 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_PCIE2REG_CONFIGDATA, config); devinfo 627 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c device_wakeup_enable(&devinfo->pdev->dev); devinfo 631 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static int brcmf_pcie_enter_download_state(struct brcmf_pciedev_info *devinfo) devinfo 633 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci->chip == BRCM_CC_43602_CHIP_ID) { devinfo 634 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_select_core(devinfo, BCMA_CORE_ARM_CR4); devinfo 635 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_ARMCR4REG_BANKIDX, devinfo 637 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_ARMCR4REG_BANKPDA, devinfo 639 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_ARMCR4REG_BANKIDX, devinfo 641 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_ARMCR4REG_BANKPDA, devinfo 648 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static int brcmf_pcie_exit_download_state(struct brcmf_pciedev_info *devinfo, devinfo 653 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci->chip == BRCM_CC_43602_CHIP_ID) { devinfo 654 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_INTERNAL_MEM); devinfo 658 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!brcmf_chip_set_active(devinfo->ci, resetintr)) devinfo 665 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_send_mb_data(struct brcmf_pciedev_info *devinfo, u32 htod_mb_data) devinfo 673 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared = &devinfo->shared; devinfo 675 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c cur_htod_mb_data = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 687 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c cur_htod_mb_data = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 690 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, addr, htod_mb_data); devinfo 691 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_SBMBX, 1); devinfo 694 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_PCIE2); devinfo 696 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_SBMBX, 1); devinfo 702 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_handle_mb_data(struct brcmf_pciedev_info *devinfo) devinfo 708 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared = &devinfo->shared; devinfo 710 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dtoh_mb_data = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 715 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, addr, 0); devinfo 720 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_send_mb_data(devinfo, BRCMF_H2D_HOST_DS_ACK); devinfo 727 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->mbdata_completed = true; devinfo 728 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c wake_up(&devinfo->mbdata_resp_wait); devinfo 732 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_fw_crashed(&devinfo->pdev->dev); devinfo 737 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_bus_console_init(struct brcmf_pciedev_info *devinfo) devinfo 743 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared = &devinfo->shared; devinfo 746 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c console->base_addr = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 749 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c console->buf_addr = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 751 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c console->bufsize = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 762 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_bus_console_read(struct brcmf_pciedev_info *devinfo, devinfo 765 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct pci_dev *pdev = devinfo->pdev; devinfo 775 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c console = &devinfo->shared.console; devinfo 777 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c newidx = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 780 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ch = brcmf_pcie_read_tcm8(devinfo, addr); devinfo 807 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_intr_disable(struct brcmf_pciedev_info *devinfo) devinfo 809 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_PCIE2REG_MAILBOXMASK, 0); devinfo 813 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_intr_enable(struct brcmf_pciedev_info *devinfo) devinfo 815 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_PCIE2REG_MAILBOXMASK, devinfo 821 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_hostready(struct brcmf_pciedev_info *devinfo) devinfo 823 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->shared.flags & BRCMF_PCIE_SHARED_HOSTRDY_DB1) devinfo 824 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, devinfo 830 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = (struct brcmf_pciedev_info *)arg; devinfo 832 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (brcmf_pcie_read_reg32(devinfo, BRCMF_PCIE_PCIE2REG_MAILBOXINT)) { devinfo 833 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_intr_disable(devinfo); devinfo 843 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = (struct brcmf_pciedev_info *)arg; devinfo 846 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->in_irq = true; devinfo 847 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c status = brcmf_pcie_read_reg32(devinfo, BRCMF_PCIE_PCIE2REG_MAILBOXINT); devinfo 850 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_PCIE2REG_MAILBOXINT, devinfo 854 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_handle_mb_data(devinfo); devinfo 856 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->state == BRCMFMAC_PCIE_STATE_UP) devinfo 858 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c &devinfo->pdev->dev); devinfo 861 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_bus_console_read(devinfo, false); devinfo 862 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->state == BRCMFMAC_PCIE_STATE_UP) devinfo 863 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_intr_enable(devinfo); devinfo 864 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->in_irq = false; devinfo 869 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static int brcmf_pcie_request_irq(struct brcmf_pciedev_info *devinfo) devinfo 871 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct pci_dev *pdev = devinfo->pdev; devinfo 874 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_intr_disable(devinfo); devinfo 881 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c "brcmf_pcie_intr", devinfo)) { devinfo 886 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->irq_allocated = true; devinfo 891 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_release_irq(struct brcmf_pciedev_info *devinfo) devinfo 893 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct pci_dev *pdev = devinfo->pdev; devinfo 898 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!devinfo->irq_allocated) devinfo 901 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_intr_disable(devinfo); devinfo 902 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c free_irq(pdev->irq, devinfo); devinfo 907 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c while ((devinfo->in_irq) && (count < 20)) { devinfo 911 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->in_irq) devinfo 914 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c status = brcmf_pcie_read_reg32(devinfo, BRCMF_PCIE_PCIE2REG_MAILBOXINT); devinfo 915 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_PCIE2REG_MAILBOXINT, status); devinfo 917 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->irq_allocated = false; devinfo 924 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = ring->devinfo; devinfo 927 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->state != BRCMFMAC_PCIE_STATE_UP) devinfo 933 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->write_ptr(devinfo, ring->r_idx_addr, commonring->r_ptr); devinfo 942 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = ring->devinfo; devinfo 945 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->state != BRCMFMAC_PCIE_STATE_UP) devinfo 951 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->write_ptr(devinfo, ring->w_idx_addr, commonring->w_ptr); devinfo 960 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = ring->devinfo; devinfo 962 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->state != BRCMFMAC_PCIE_STATE_UP) devinfo 967 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_PCIE2REG_H2D_MAILBOX_0, 1); devinfo 976 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = ring->devinfo; devinfo 979 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->state != BRCMFMAC_PCIE_STATE_UP) devinfo 982 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c commonring->r_ptr = devinfo->read_ptr(devinfo, ring->r_idx_addr); devinfo 994 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = ring->devinfo; devinfo 997 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->state != BRCMFMAC_PCIE_STATE_UP) devinfo 1000 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c commonring->w_ptr = devinfo->read_ptr(devinfo, ring->w_idx_addr); devinfo 1010 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_init_dmabuffer_for_device(struct brcmf_pciedev_info *devinfo, devinfo 1017 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ring = dma_alloc_coherent(&devinfo->pdev->dev, size, dma_handle, devinfo 1023 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, tcm_dma_phys_addr, devinfo 1025 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, tcm_dma_phys_addr + 4, address >> 32); devinfo 1034 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_alloc_dma_and_ring(struct brcmf_pciedev_info *devinfo, u32 ring_id, devinfo 1044 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->shared.version < BRCMF_PCIE_SHARED_VERSION_7) devinfo 1050 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dma_buf = brcmf_pcie_init_dmabuffer_for_device(devinfo, size, devinfo 1057 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm16(devinfo, addr, brcmf_ring_max_item[ring_id]); devinfo 1059 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm16(devinfo, addr, ring_itemsize_array[ring_id]); devinfo 1063 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dma_free_coherent(&devinfo->pdev->dev, size, dma_buf, devinfo 1070 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ring->devinfo = devinfo; devinfo 1100 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_release_ringbuffers(struct brcmf_pciedev_info *devinfo) devinfo 1105 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_ringbuffer(&devinfo->pdev->dev, devinfo 1106 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.commonrings[i]); devinfo 1107 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.commonrings[i] = NULL; devinfo 1109 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(devinfo->shared.flowrings); devinfo 1110 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.flowrings = NULL; devinfo 1111 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->idxbuf) { devinfo 1112 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dma_free_coherent(&devinfo->pdev->dev, devinfo 1113 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->idxbuf_sz, devinfo 1114 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->idxbuf, devinfo 1115 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->idxbuf_dmahandle); devinfo 1116 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->idxbuf = NULL; devinfo 1121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static int brcmf_pcie_init_ringbuffers(struct brcmf_pciedev_info *devinfo) devinfo 1123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&devinfo->pdev->dev); devinfo 1140 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c memcpy_fromio(&ringinfo, devinfo->tcm + devinfo->shared.ring_info_addr, devinfo 1142 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->shared.version >= 6) { devinfo 1153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->dma_idx_sz != 0) { devinfo 1155 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->dma_idx_sz * 2; devinfo 1156 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->idxbuf = dma_alloc_coherent(&devinfo->pdev->dev, bufsz, devinfo 1157 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c &devinfo->idxbuf_dmahandle, devinfo 1159 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!devinfo->idxbuf) devinfo 1160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->dma_idx_sz = 0; devinfo 1163 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->dma_idx_sz == 0) { devinfo 1169 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->write_ptr = brcmf_pcie_write_tcm16; devinfo 1170 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->read_ptr = brcmf_pcie_read_tcm16; devinfo 1173 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c memset(devinfo->idxbuf, 0, bufsz); devinfo 1174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->idxbuf_sz = bufsz; devinfo 1175 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c idx_offset = devinfo->dma_idx_sz; devinfo 1176 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->write_ptr = brcmf_pcie_write_idx; devinfo 1177 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->read_ptr = brcmf_pcie_read_idx; devinfo 1180 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c address = (u64)devinfo->idxbuf_dmahandle; devinfo 1210 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c memcpy_toio(devinfo->tcm + devinfo->shared.ring_info_addr, devinfo 1218 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ring = brcmf_pcie_alloc_dma_and_ring(devinfo, i, ring_mem_ptr); devinfo 1224 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.commonrings[i] = ring; devinfo 1233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ring = brcmf_pcie_alloc_dma_and_ring(devinfo, i, ring_mem_ptr); devinfo 1239 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.commonrings[i] = ring; devinfo 1246 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.max_flowrings = max_flowrings; devinfo 1247 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.max_submissionrings = max_submissionrings; devinfo 1248 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.max_completionrings = max_completionrings; devinfo 1257 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ring->devinfo = devinfo; devinfo 1271 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.flowrings = rings; devinfo 1277 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_ringbuffers(devinfo); devinfo 1283 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_scratchbuffers(struct brcmf_pciedev_info *devinfo) devinfo 1285 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->shared.scratch) devinfo 1286 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dma_free_coherent(&devinfo->pdev->dev, devinfo 1288 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.scratch, devinfo 1289 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.scratch_dmahandle); devinfo 1290 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->shared.ringupd) devinfo 1291 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dma_free_coherent(&devinfo->pdev->dev, devinfo 1293 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.ringupd, devinfo 1294 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.ringupd_dmahandle); devinfo 1297 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static int brcmf_pcie_init_scratchbuffers(struct brcmf_pciedev_info *devinfo) devinfo 1299 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&devinfo->pdev->dev); devinfo 1303 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.scratch = devinfo 1304 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dma_alloc_coherent(&devinfo->pdev->dev, devinfo 1306 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c &devinfo->shared.scratch_dmahandle, devinfo 1308 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!devinfo->shared.scratch) devinfo 1311 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c addr = devinfo->shared.tcm_base_address + devinfo 1313 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c address = (u64)devinfo->shared.scratch_dmahandle; devinfo 1314 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, addr, address & 0xffffffff); devinfo 1315 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, addr + 4, address >> 32); devinfo 1316 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c addr = devinfo->shared.tcm_base_address + devinfo 1318 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, addr, BRCMF_DMA_D2H_SCRATCH_BUF_LEN); devinfo 1320 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->shared.ringupd = devinfo 1321 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dma_alloc_coherent(&devinfo->pdev->dev, devinfo 1323 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c &devinfo->shared.ringupd_dmahandle, devinfo 1325 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!devinfo->shared.ringupd) devinfo 1328 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c addr = devinfo->shared.tcm_base_address + devinfo 1330 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c address = (u64)devinfo->shared.ringupd_dmahandle; devinfo 1331 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, addr, address & 0xffffffff); devinfo 1332 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, addr + 4, address >> 32); devinfo 1333 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c addr = devinfo->shared.tcm_base_address + devinfo 1335 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, addr, BRCMF_DMA_D2H_RINGUPD_BUF_LEN); devinfo 1340 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_scratchbuffers(devinfo); devinfo 1374 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = buspub->devinfo; devinfo 1377 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->wowl_enabled = enabled; devinfo 1385 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = buspub->devinfo; devinfo 1387 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c return devinfo->ci->ramsize - devinfo->ci->srsize; devinfo 1395 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = buspub->devinfo; devinfo 1397 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_dbg(PCIE, "dump at 0x%08X: len=%zu\n", devinfo->ci->rambase, len); devinfo 1398 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_copy_dev_tomem(devinfo, devinfo->ci->rambase, data, len); devinfo 1426 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = buspub->devinfo; devinfo 1430 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_intr_disable(devinfo); devinfo 1432 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_bus_console_read(devinfo, true); devinfo 1436 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_irq(devinfo); devinfo 1437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_scratchbuffers(devinfo); devinfo 1438 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_ringbuffers(devinfo); devinfo 1439 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_reset_device(devinfo); devinfo 1441 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c fwreq = brcmf_pcie_prepare_fw_request(devinfo); devinfo 1470 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_adjust_ramsize(struct brcmf_pciedev_info *devinfo, u8 *data, devinfo 1487 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->ramsize = newsize; devinfo 1492 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_init_share_ram_info(struct brcmf_pciedev_info *devinfo, devinfo 1495 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&devinfo->pdev->dev); devinfo 1499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared = &devinfo->shared; devinfo 1502 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared->flags = brcmf_pcie_read_tcm32(devinfo, sharedram_addr); devinfo 1515 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->dma_idx_sz = sizeof(u16); devinfo 1517 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->dma_idx_sz = sizeof(u32); devinfo 1521 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared->max_rxbufpost = brcmf_pcie_read_tcm16(devinfo, addr); devinfo 1526 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared->rx_dataoffset = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 1529 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared->htod_mb_data_addr = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 1532 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared->dtoh_mb_data_addr = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 1535 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c shared->ring_info_addr = brcmf_pcie_read_tcm32(devinfo, addr); devinfo 1540 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_bus_console_init(devinfo); devinfo 1546 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static int brcmf_pcie_download_fw_nvram(struct brcmf_pciedev_info *devinfo, devinfo 1550 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&devinfo->pdev->dev); devinfo 1559 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c err = brcmf_pcie_enter_download_state(devinfo); devinfo 1563 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_dbg(PCIE, "Download FW %s\n", devinfo->fw_name); devinfo 1564 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_copy_mem_todev(devinfo, devinfo->ci->rambase, devinfo 1573 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_ram32(devinfo, devinfo->ci->ramsize - 4, 0); devinfo 1576 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_dbg(PCIE, "Download NVRAM %s\n", devinfo->nvram_name); devinfo 1577 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c address = devinfo->ci->rambase + devinfo->ci->ramsize - devinfo 1579 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_copy_mem_todev(devinfo, address, nvram, nvram_len); devinfo 1583 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->nvram_name); devinfo 1586 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c sharedram_addr_written = brcmf_pcie_read_ram32(devinfo, devinfo 1587 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->ramsize - devinfo 1590 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c err = brcmf_pcie_exit_download_state(devinfo, resetintr); devinfo 1599 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c sharedram_addr = brcmf_pcie_read_ram32(devinfo, devinfo 1600 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->ramsize - devinfo 1608 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (sharedram_addr < devinfo->ci->rambase || devinfo 1609 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c sharedram_addr >= devinfo->ci->rambase + devinfo->ci->ramsize) { devinfo 1616 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c return (brcmf_pcie_init_share_ram_info(devinfo, sharedram_addr)); devinfo 1620 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static int brcmf_pcie_get_resource(struct brcmf_pciedev_info *devinfo) devinfo 1622 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct pci_dev *pdev = devinfo->pdev; devinfo 1648 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->regs = ioremap_nocache(bar0_addr, BRCMF_PCIE_REG_MAP_SIZE); devinfo 1649 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->tcm = ioremap_nocache(bar1_addr, bar1_size); devinfo 1651 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!devinfo->regs || !devinfo->tcm) { devinfo 1652 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "ioremap() failed (%p,%p)\n", devinfo->regs, devinfo 1653 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->tcm); devinfo 1657 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->regs, (unsigned long long)bar0_addr); devinfo 1659 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->tcm, (unsigned long long)bar1_addr, devinfo 1666 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static void brcmf_pcie_release_resource(struct brcmf_pciedev_info *devinfo) devinfo 1668 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->tcm) devinfo 1669 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c iounmap(devinfo->tcm); devinfo 1670 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->regs) devinfo 1671 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c iounmap(devinfo->regs); devinfo 1673 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pci_disable_device(devinfo->pdev); devinfo 1691 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = (struct brcmf_pciedev_info *)ctx; devinfo 1693 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c addr = brcmf_pcie_buscore_prep_addr(devinfo->pdev, addr); devinfo 1694 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c return brcmf_pcie_read_reg32(devinfo, addr); devinfo 1700 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = (struct brcmf_pciedev_info *)ctx; devinfo 1702 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c addr = brcmf_pcie_buscore_prep_addr(devinfo->pdev, addr); devinfo 1703 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, addr, value); devinfo 1715 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = (struct brcmf_pciedev_info *)ctx; devinfo 1718 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci = chip; devinfo 1719 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_reset_device(devinfo); devinfo 1721 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c val = brcmf_pcie_read_reg32(devinfo, BRCMF_PCIE_PCIE2REG_MAILBOXINT); devinfo 1723 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_reg32(devinfo, BRCMF_PCIE_PCIE2REG_MAILBOXINT, devinfo 1733 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo = (struct brcmf_pciedev_info *)ctx; devinfo 1735 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_write_tcm32(devinfo, 0, rstvec); devinfo 1757 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo; devinfo 1767 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo = pcie_bus_dev->devinfo; devinfo 1768 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_attach(devinfo); devinfo 1775 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = brcmf_chip_get_raminfo(devinfo->ci); devinfo 1786 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_adjust_ramsize(devinfo, (u8 *)fw->data, fw->size); devinfo 1788 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = brcmf_pcie_download_fw_nvram(devinfo, fw, nvram, nvram_len); devinfo 1792 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->state = BRCMFMAC_PCIE_STATE_UP; devinfo 1794 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = brcmf_pcie_init_ringbuffers(devinfo); devinfo 1798 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = brcmf_pcie_init_scratchbuffers(devinfo); devinfo 1802 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_select_core(devinfo, BCMA_CORE_PCIE2); devinfo 1803 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = brcmf_pcie_request_irq(devinfo); devinfo 1810 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c &devinfo->shared.commonrings[i]->commonring; devinfo 1812 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c flowrings = kcalloc(devinfo->shared.max_flowrings, sizeof(*flowrings), devinfo 1817 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c for (i = 0; i < devinfo->shared.max_flowrings; i++) devinfo 1818 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c flowrings[i] = &devinfo->shared.flowrings[i].commonring; devinfo 1821 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->msgbuf->rx_dataoffset = devinfo->shared.rx_dataoffset; devinfo 1822 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->msgbuf->max_rxbufpost = devinfo->shared.max_rxbufpost; devinfo 1823 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->msgbuf->max_flowrings = devinfo->shared.max_flowrings; devinfo 1825 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c init_waitqueue_head(&devinfo->mbdata_resp_wait); devinfo 1827 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_intr_enable(devinfo); devinfo 1828 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_hostready(devinfo); devinfo 1830 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = brcmf_attach(&devinfo->pdev->dev); devinfo 1834 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_bus_console_read(devinfo, false); devinfo 1843 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_prepare_fw_request(struct brcmf_pciedev_info *devinfo) devinfo 1847 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c { ".bin", devinfo->fw_name }, devinfo 1848 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c { ".txt", devinfo->nvram_name }, devinfo 1851 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c fwreq = brcmf_fw_alloc_request(devinfo->ci->chip, devinfo->ci->chiprev, devinfo 1861 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c fwreq->board_type = devinfo->settings->board_type; devinfo 1863 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c fwreq->domain_nr = pci_domain_nr(devinfo->pdev->bus) + 1; devinfo 1864 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c fwreq->bus_nr = devinfo->pdev->bus->number; devinfo 1874 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo; devinfo 1881 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo = kzalloc(sizeof(*devinfo), GFP_KERNEL); devinfo 1882 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo == NULL) devinfo 1885 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->pdev = pdev; devinfo 1887 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci = brcmf_chip_attach(devinfo, &brcmf_pcie_buscore_ops); devinfo 1888 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (IS_ERR(devinfo->ci)) { devinfo 1889 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = PTR_ERR(devinfo->ci); devinfo 1890 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci = NULL; devinfo 1900 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->settings = brcmf_get_module_param(&devinfo->pdev->dev, devinfo 1902 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->chip, devinfo 1903 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci->chiprev); devinfo 1904 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!devinfo->settings) { devinfo 1922 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pcie_bus_dev->devinfo = devinfo; devinfo 1928 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->chip = devinfo->coreid; devinfo 1932 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = brcmf_alloc(&devinfo->pdev->dev, devinfo->settings); devinfo 1936 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c fwreq = brcmf_pcie_prepare_fw_request(devinfo); devinfo 1954 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_resource(devinfo); devinfo 1955 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci) devinfo 1956 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_chip_detach(devinfo->ci); devinfo 1957 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->settings) devinfo 1958 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_release_module_param(devinfo->settings); devinfo 1960 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(devinfo); devinfo 1968 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo; devinfo 1977 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo = bus->bus_priv.pcie->devinfo; devinfo 1979 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->state = BRCMFMAC_PCIE_STATE_DOWN; devinfo 1980 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci) devinfo 1981 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_intr_disable(devinfo); devinfo 1991 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_irq(devinfo); devinfo 1992 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_scratchbuffers(devinfo); devinfo 1993 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_ringbuffers(devinfo); devinfo 1994 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_reset_device(devinfo); devinfo 1995 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_release_resource(devinfo); devinfo 1997 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->ci) devinfo 1998 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_chip_detach(devinfo->ci); devinfo 1999 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (devinfo->settings) devinfo 2000 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_release_module_param(devinfo->settings); devinfo 2002 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(devinfo); devinfo 2012 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo; devinfo 2018 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo = bus->bus_priv.pcie->devinfo; devinfo 2022 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->mbdata_completed = false; devinfo 2023 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_send_mb_data(devinfo, BRCMF_H2D_HOST_D3_INFORM); devinfo 2025 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c wait_event_timeout(devinfo->mbdata_resp_wait, devinfo->mbdata_completed, devinfo 2027 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!devinfo->mbdata_completed) { devinfo 2033 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->state = BRCMFMAC_PCIE_STATE_DOWN; devinfo 2041 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_pciedev_info *devinfo; devinfo 2049 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo = bus->bus_priv.pcie->devinfo; devinfo 2053 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (brcmf_pcie_read_reg32(devinfo, BRCMF_PCIE_PCIE2REG_INTMASK) != 0) { devinfo 2055 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (brcmf_pcie_send_mb_data(devinfo, BRCMF_H2D_HOST_D0_INFORM)) devinfo 2058 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->state = BRCMFMAC_PCIE_STATE_UP; devinfo 2059 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_select_core(devinfo, BCMA_CORE_PCIE2); devinfo 2061 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_intr_enable(devinfo); devinfo 2062 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_pcie_hostready(devinfo); devinfo 2067 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_chip_detach(devinfo->ci); devinfo 2068 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->ci = NULL; devinfo 2069 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pdev = devinfo->pdev; devinfo 11 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.h struct brcmf_pciedev_info *devinfo; devinfo 171 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_usb_rx_refill(struct brcmf_usbdev_info *devinfo, devinfo 182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c return brcmf_usb_get_buspub(dev)->devinfo; devinfo 185 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static int brcmf_usb_ioctl_resp_wait(struct brcmf_usbdev_info *devinfo) devinfo 187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c return wait_event_timeout(devinfo->ioctl_resp_wait, devinfo 188 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_completed, IOCTL_RESP_TIMEOUT); devinfo 191 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_usb_ioctl_resp_wake(struct brcmf_usbdev_info *devinfo) devinfo 193 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c wake_up(&devinfo->ioctl_resp_wait); devinfo 197 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_ctl_complete(struct brcmf_usbdev_info *devinfo, int type, int status) devinfo 201 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (unlikely(devinfo == NULL)) devinfo 206 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.stats.rx_ctlpkts++; devinfo 208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.stats.rx_ctlerrs++; devinfo 211 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.stats.tx_ctlpkts++; devinfo 213 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.stats.tx_ctlerrs++; devinfo 216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_urb_status = status; devinfo 217 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_completed = true; devinfo 218 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_ioctl_resp_wake(devinfo); devinfo 224 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = devinfo 228 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_urb_actual_length = urb->actual_length; devinfo 229 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_ctl_complete(devinfo, BRCMF_USB_CBCTL_READ, devinfo 236 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = devinfo 240 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_ctl_complete(devinfo, BRCMF_USB_CBCTL_WRITE, devinfo 245 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_send_ctl(struct brcmf_usbdev_info *devinfo, u8 *buf, int len) devinfo 251 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo == NULL || buf == NULL || devinfo 252 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c len == 0 || devinfo->ctl_urb == NULL) devinfo 256 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_write.wLength = cpu_to_le16p(&size); devinfo 257 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_urb->transfer_buffer_length = size; devinfo 258 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_urb_status = 0; devinfo 259 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_urb_actual_length = 0; devinfo 261 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_fill_control_urb(devinfo->ctl_urb, devinfo 262 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->usbdev, devinfo 263 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_out_pipe, devinfo 264 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c (unsigned char *) &devinfo->ctl_write, devinfo 267 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo); devinfo 269 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = usb_submit_urb(devinfo->ctl_urb, GFP_ATOMIC); devinfo 277 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_recv_ctl(struct brcmf_usbdev_info *devinfo, u8 *buf, int len) devinfo 283 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if ((devinfo == NULL) || (buf == NULL) || (len == 0) devinfo 284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c || (devinfo->ctl_urb == NULL)) devinfo 288 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.wLength = cpu_to_le16p(&size); devinfo 289 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_urb->transfer_buffer_length = size; devinfo 291 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.bRequestType = USB_DIR_IN devinfo 293 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.bRequest = 1; devinfo 295 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_fill_control_urb(devinfo->ctl_urb, devinfo 296 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->usbdev, devinfo 297 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_in_pipe, devinfo 298 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c (unsigned char *) &devinfo->ctl_read, devinfo 301 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo); devinfo 303 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = usb_submit_urb(devinfo->ctl_urb, GFP_ATOMIC); devinfo 314 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(dev); devinfo 317 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) devinfo 320 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (test_and_set_bit(0, &devinfo->ctl_op)) devinfo 323 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_completed = false; devinfo 324 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = brcmf_usb_send_ctl(devinfo, buf, len); devinfo 327 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c clear_bit(0, &devinfo->ctl_op); devinfo 330 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c timeout = brcmf_usb_ioctl_resp_wait(devinfo); devinfo 331 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c clear_bit(0, &devinfo->ctl_op); devinfo 343 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(dev); devinfo 346 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) devinfo 349 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (test_and_set_bit(0, &devinfo->ctl_op)) devinfo 352 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_completed = false; devinfo 353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = brcmf_usb_recv_ctl(devinfo, buf, len); devinfo 356 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c clear_bit(0, &devinfo->ctl_op); devinfo 359 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c timeout = brcmf_usb_ioctl_resp_wait(devinfo); devinfo 360 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = devinfo->ctl_urb_status; devinfo 361 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c clear_bit(0, &devinfo->ctl_op); devinfo 367 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c return devinfo->ctl_urb_actual_length; devinfo 372 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static struct brcmf_usbreq *brcmf_usb_deq(struct brcmf_usbdev_info *devinfo, devinfo 377 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_lock_irqsave(&devinfo->qlock, flags); devinfo 379 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_unlock_irqrestore(&devinfo->qlock, flags); devinfo 386 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_unlock_irqrestore(&devinfo->qlock, flags); devinfo 391 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_usb_enq(struct brcmf_usbdev_info *devinfo, devinfo 396 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_lock_irqsave(&devinfo->qlock, flags); devinfo 400 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_unlock_irqrestore(&devinfo->qlock, flags); devinfo 452 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_usb_del_fromq(struct brcmf_usbdev_info *devinfo, devinfo 457 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_lock_irqsave(&devinfo->qlock, flags); devinfo 459 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_unlock_irqrestore(&devinfo->qlock, flags); devinfo 466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = req->devinfo; devinfo 471 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_del_fromq(devinfo, req); devinfo 473 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_proto_bcdc_txcomplete(devinfo->dev, req->skb, urb->status == 0); devinfo 475 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_enq(devinfo, &devinfo->tx_freeq, req, &devinfo->tx_freecount); devinfo 476 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_lock_irqsave(&devinfo->tx_flowblock_lock, flags); devinfo 477 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->tx_freecount > devinfo->tx_high_watermark && devinfo 478 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_flowblock) { devinfo 479 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_proto_bcdc_txflowblock(devinfo->dev, false); devinfo 480 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_flowblock = false; devinfo 482 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_unlock_irqrestore(&devinfo->tx_flowblock_lock, flags); devinfo 488 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = req->devinfo; devinfo 492 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_del_fromq(devinfo, req); devinfo 499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_enq(devinfo, &devinfo->rx_freeq, req, NULL); devinfo 503 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.state == BRCMFMAC_USB_STATE_UP) { devinfo 505 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_rx_frame(devinfo->dev, skb, true); devinfo 506 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_rx_refill(devinfo, req); devinfo 509 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_enq(devinfo, &devinfo->rx_freeq, req, NULL); devinfo 515 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_usb_rx_refill(struct brcmf_usbdev_info *devinfo, devinfo 521 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!req || !devinfo) devinfo 524 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c skb = dev_alloc_skb(devinfo->bus_pub.bus_mtu); devinfo 526 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_enq(devinfo, &devinfo->rx_freeq, req, NULL); devinfo 531 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_fill_bulk_urb(req->urb, devinfo->usbdev, devinfo->rx_pipe, devinfo 534 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c req->devinfo = devinfo; devinfo 535 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_enq(devinfo, &devinfo->rx_postq, req, NULL); devinfo 539 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_del_fromq(devinfo, req); devinfo 542 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_enq(devinfo, &devinfo->rx_freeq, req, NULL); devinfo 547 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_usb_rx_fill_all(struct brcmf_usbdev_info *devinfo) devinfo 551 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { devinfo 552 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_err("bus is not up=%d\n", devinfo->bus_pub.state); devinfo 555 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c while ((req = brcmf_usb_deq(devinfo, &devinfo->rx_freeq, NULL)) != NULL) devinfo 556 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_rx_refill(devinfo, req); devinfo 560 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_state_change(struct brcmf_usbdev_info *devinfo, int state) devinfo 562 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_bus *bcmf_bus = devinfo->bus_pub.bus; devinfo 565 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.state, state); devinfo 567 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.state == state) devinfo 570 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.state = state; devinfo 586 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(dev); devinfo 592 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.state != BRCMFMAC_USB_STATE_UP) { devinfo 597 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c req = brcmf_usb_deq(devinfo, &devinfo->tx_freeq, devinfo 598 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c &devinfo->tx_freecount); devinfo 606 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c req->devinfo = devinfo; devinfo 607 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_fill_bulk_urb(req->urb, devinfo->usbdev, devinfo->tx_pipe, devinfo 610 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_enq(devinfo, &devinfo->tx_postq, req, NULL); devinfo 614 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_del_fromq(devinfo, req); devinfo 616 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_enq(devinfo, &devinfo->tx_freeq, req, devinfo 617 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c &devinfo->tx_freecount); devinfo 621 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_lock_irqsave(&devinfo->tx_flowblock_lock, flags); devinfo 622 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->tx_freecount < devinfo->tx_low_watermark && devinfo 623 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c !devinfo->tx_flowblock) { devinfo 625 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_flowblock = true; devinfo 627 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_unlock_irqrestore(&devinfo->tx_flowblock_lock, flags); devinfo 637 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(dev); devinfo 640 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.state == BRCMFMAC_USB_STATE_UP) devinfo 644 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_state_change(devinfo, BRCMFMAC_USB_STATE_UP); devinfo 646 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->ctl_urb) { devinfo 647 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_in_pipe = usb_rcvctrlpipe(devinfo->usbdev, 0); devinfo 648 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_out_pipe = usb_sndctrlpipe(devinfo->usbdev, 0); devinfo 651 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_write.bRequestType = devinfo 653 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_write.bRequest = 0; devinfo 654 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_write.wValue = cpu_to_le16(0); devinfo 655 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_write.wIndex = cpu_to_le16(devinfo->ifnum); devinfo 658 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.bRequestType = devinfo 660 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.bRequest = 1; devinfo 661 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.wValue = cpu_to_le16(0); devinfo 662 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.wIndex = cpu_to_le16(devinfo->ifnum); devinfo 664 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_rx_fill_all(devinfo); devinfo 668 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_cancel_all_urbs(struct brcmf_usbdev_info *devinfo) devinfo 672 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->ctl_urb) devinfo 673 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_kill_urb(devinfo->ctl_urb); devinfo 674 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bulk_urb) devinfo 675 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_kill_urb(devinfo->bulk_urb); devinfo 676 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->tx_reqs) devinfo 677 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c for (i = 0; i < devinfo->bus_pub.ntxq; i++) devinfo 678 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_kill_urb(devinfo->tx_reqs[i].urb); devinfo 679 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->rx_reqs) devinfo 680 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c for (i = 0; i < devinfo->bus_pub.nrxq; i++) devinfo 681 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_kill_urb(devinfo->rx_reqs[i].urb); devinfo 686 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(dev); devinfo 689 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo == NULL) devinfo 692 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.state == BRCMFMAC_USB_STATE_DOWN) devinfo 695 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_state_change(devinfo, BRCMFMAC_USB_STATE_DOWN); devinfo 697 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_cancel_all_urbs(devinfo); devinfo 703 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = devinfo 706 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_completed = true; devinfo 707 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_ioctl_resp_wake(devinfo); devinfo 710 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static int brcmf_usb_dl_cmd(struct brcmf_usbdev_info *devinfo, u8 cmd, devinfo 717 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if ((!devinfo) || (devinfo->ctl_urb == NULL)) devinfo 725 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_urb->transfer_buffer_length = size; devinfo 727 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.wLength = cpu_to_le16p(&size); devinfo 728 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.bRequestType = USB_DIR_IN | USB_TYPE_VENDOR | devinfo 730 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_read.bRequest = cmd; devinfo 732 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_fill_control_urb(devinfo->ctl_urb, devinfo 733 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->usbdev, devinfo 734 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_rcvctrlpipe(devinfo->usbdev, 0), devinfo 735 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c (unsigned char *) &devinfo->ctl_read, devinfo 737 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c (usb_complete_t)brcmf_usb_sync_complete, devinfo); devinfo 739 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_completed = false; devinfo 740 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = usb_submit_urb(devinfo->ctl_urb, GFP_ATOMIC); devinfo 746 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!brcmf_usb_ioctl_resp_wait(devinfo)) { devinfo 747 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_kill_urb(devinfo->ctl_urb); devinfo 759 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_dlneeded(struct brcmf_usbdev_info *devinfo) devinfo 766 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo == NULL) devinfo 771 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_dl_cmd(devinfo, DL_GETVER, &id, sizeof(id)); devinfo 782 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_dl_cmd(devinfo, DL_RESETCFG, &id, sizeof(id)); devinfo 785 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.devid = chipid; devinfo 786 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.chiprev = chiprev; devinfo 792 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_resetcfg(struct brcmf_usbdev_info *devinfo) devinfo 805 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = brcmf_usb_dl_cmd(devinfo, DL_GETVER, &id, sizeof(id)); devinfo 816 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_dl_cmd(devinfo, DL_RESETCFG, &id, sizeof(id)); devinfo 827 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_dl_send_bulk(struct brcmf_usbdev_info *devinfo, void *buffer, int len) devinfo 831 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if ((devinfo == NULL) || (devinfo->bulk_urb == NULL)) devinfo 835 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_fill_bulk_urb(devinfo->bulk_urb, devinfo->usbdev, devinfo 836 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_pipe, buffer, len, devinfo 837 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c (usb_complete_t)brcmf_usb_sync_complete, devinfo); devinfo 839 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bulk_urb->transfer_flags |= URB_ZERO_PACKET; devinfo 841 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_completed = false; devinfo 842 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = usb_submit_urb(devinfo->bulk_urb, GFP_ATOMIC); devinfo 847 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = brcmf_usb_ioctl_resp_wait(devinfo); devinfo 852 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_dl_writeimage(struct brcmf_usbdev_info *devinfo, u8 *fw, int fwlen) devinfo 869 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_dl_cmd(devinfo, DL_START, &state, sizeof(state)); devinfo 903 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (brcmf_usb_dl_send_bulk(devinfo, bulkchunk, devinfo 913 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = brcmf_usb_dl_cmd(devinfo, DL_GETSTATE, &state, devinfo 938 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static int brcmf_usb_dlstart(struct brcmf_usbdev_info *devinfo, u8 *fw, int len) devinfo 944 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo == NULL) devinfo 947 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.devid == 0xDEAD) devinfo 950 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = brcmf_usb_dl_writeimage(devinfo, fw, len); devinfo 952 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.state = BRCMFMAC_USB_STATE_DL_DONE; devinfo 954 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.state = BRCMFMAC_USB_STATE_DL_FAIL; devinfo 960 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static int brcmf_usb_dlrun(struct brcmf_usbdev_info *devinfo) devinfo 965 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo) devinfo 968 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->bus_pub.devid == 0xDEAD) devinfo 973 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_dl_cmd(devinfo, DL_GETSTATE, &state, sizeof(state)); devinfo 977 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (brcmf_usb_dl_cmd(devinfo, DL_GO, &state, sizeof(state))) devinfo 979 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (brcmf_usb_resetcfg(devinfo)) devinfo 991 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_fw_download(struct brcmf_usbdev_info *devinfo) devinfo 996 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo == NULL) devinfo 999 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo->image) { devinfo 1004 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = brcmf_usb_dlstart(devinfo, devinfo 1005 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c (u8 *)devinfo->image, devinfo->image_len); devinfo 1007 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = brcmf_usb_dlrun(devinfo); devinfo 1012 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_usb_detach(struct brcmf_usbdev_info *devinfo) devinfo 1014 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_dbg(USB, "Enter, devinfo %p\n", devinfo); devinfo 1017 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_free_q(&devinfo->rx_freeq); devinfo 1018 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_free_q(&devinfo->tx_freeq); devinfo 1020 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_free_urb(devinfo->ctl_urb); devinfo 1021 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_free_urb(devinfo->bulk_urb); devinfo 1023 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c kfree(devinfo->tx_reqs); devinfo 1024 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c kfree(devinfo->rx_reqs); devinfo 1026 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->settings) devinfo 1027 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_release_module_param(devinfo->settings); devinfo 1053 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev *brcmf_usb_attach(struct brcmf_usbdev_info *devinfo, devinfo 1058 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.nrxq = nrxq; devinfo 1059 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->rx_low_watermark = nrxq / 2; devinfo 1060 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.devinfo = devinfo; devinfo 1061 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.ntxq = ntxq; devinfo 1062 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.state = BRCMFMAC_USB_STATE_DOWN; devinfo 1065 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_low_watermark = ntxq / 4; devinfo 1066 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_high_watermark = devinfo->tx_low_watermark * 3; devinfo 1067 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.bus_mtu = BRCMF_USB_MAX_PKT_SIZE; devinfo 1070 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c init_waitqueue_head(&devinfo->ioctl_resp_wait); devinfo 1073 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_lock_init(&devinfo->qlock); devinfo 1074 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c spin_lock_init(&devinfo->tx_flowblock_lock); devinfo 1076 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c INIT_LIST_HEAD(&devinfo->rx_freeq); devinfo 1077 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c INIT_LIST_HEAD(&devinfo->rx_postq); devinfo 1079 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c INIT_LIST_HEAD(&devinfo->tx_freeq); devinfo 1080 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c INIT_LIST_HEAD(&devinfo->tx_postq); devinfo 1082 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_flowblock = false; devinfo 1084 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->rx_reqs = brcmf_usbdev_qinit(&devinfo->rx_freeq, nrxq); devinfo 1085 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo->rx_reqs) devinfo 1088 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_reqs = brcmf_usbdev_qinit(&devinfo->tx_freeq, ntxq); devinfo 1089 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo->tx_reqs) devinfo 1091 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_freecount = ntxq; devinfo 1093 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_urb = usb_alloc_urb(0, GFP_ATOMIC); devinfo 1094 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo->ctl_urb) devinfo 1096 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bulk_urb = usb_alloc_urb(0, GFP_ATOMIC); devinfo 1097 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo->bulk_urb) devinfo 1100 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c return &devinfo->bus_pub; devinfo 1104 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_detach(devinfo); devinfo 1110 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(dev); devinfo 1113 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->wowl_enabled = enabled; devinfo 1115 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c device_set_wakeup_enable(devinfo->dev, true); devinfo 1117 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c device_set_wakeup_enable(devinfo->dev, false); devinfo 1156 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = bus->bus_priv.usb->devinfo; devinfo 1174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->image = fw->data; devinfo 1175 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->image_len = fw->size; devinfo 1177 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = brcmf_usb_fw_download(devinfo); devinfo 1182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = brcmf_alloc(devinfo->dev, devinfo->settings); devinfo 1187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = brcmf_attach(devinfo->dev); devinfo 1191 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c complete(&devinfo->dev_init_done); devinfo 1195 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c complete(&devinfo->dev_init_done); devinfo 1200 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_prepare_fw_request(struct brcmf_usbdev_info *devinfo) devinfo 1204 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c { ".bin", devinfo->fw_name }, devinfo 1207 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c fwreq = brcmf_fw_alloc_request(devinfo->bus_pub.devid, devinfo 1208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.chiprev, devinfo 1220 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static int brcmf_usb_probe_cb(struct brcmf_usbdev_info *devinfo) devinfo 1224 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct device *dev = devinfo->dev; devinfo 1229 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus_pub = brcmf_usb_attach(devinfo, BRCMF_USB_NRXQ, BRCMF_USB_NTXQ); devinfo 1250 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->settings = brcmf_get_module_param(bus->dev, BRCMF_BUSTYPE_USB, devinfo 1253 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo->settings) { devinfo 1258 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!brcmf_usb_dlneeded(devinfo)) { devinfo 1259 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = brcmf_alloc(devinfo->dev, devinfo->settings); devinfo 1262 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = brcmf_attach(devinfo->dev); devinfo 1266 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c complete(&devinfo->dev_init_done); devinfo 1272 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c fwreq = brcmf_usb_prepare_fw_request(devinfo); devinfo 1290 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_free(devinfo->dev); devinfo 1292 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_detach(devinfo); devinfo 1297 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_disconnect_cb(struct brcmf_usbdev_info *devinfo) devinfo 1299 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo) devinfo 1301 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_dbg(USB, "Enter, bus_pub %p\n", devinfo); devinfo 1303 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_detach(devinfo->dev); devinfo 1304 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_free(devinfo->dev); devinfo 1305 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c kfree(devinfo->bus_pub.bus); devinfo 1306 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_detach(devinfo); devinfo 1313 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo; devinfo 1322 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo = kzalloc(sizeof(*devinfo), GFP_ATOMIC); devinfo 1323 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo == NULL) devinfo 1326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->usbdev = usb; devinfo 1327 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->dev = &usb->dev; devinfo 1331 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c init_completion(&devinfo->dev_init_done); devinfo 1333 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_set_intfdata(intf, devinfo); devinfo 1370 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo->rx_pipe) devinfo 1371 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->rx_pipe = devinfo 1374 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo->tx_pipe) devinfo 1375 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->tx_pipe = devinfo 1379 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->rx_pipe == 0) { devinfo 1384 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->tx_pipe == 0) { devinfo 1390 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ifnum = desc->bInterfaceNumber; devinfo 1401 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = brcmf_usb_probe_cb(devinfo); devinfo 1409 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c complete(&devinfo->dev_init_done); devinfo 1410 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c kfree(devinfo); devinfo 1418 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo; devinfo 1421 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo = (struct brcmf_usbdev_info *)usb_get_intfdata(intf); devinfo 1423 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo) { devinfo 1424 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c wait_for_completion(&devinfo->dev_init_done); devinfo 1431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_disconnect_cb(devinfo); devinfo 1432 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c kfree(devinfo); devinfo 1444 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(&usb->dev); devinfo 1447 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.state = BRCMFMAC_USB_STATE_SLEEP; devinfo 1448 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (devinfo->wowl_enabled) { devinfo 1449 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_cancel_all_urbs(devinfo); devinfo 1463 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(&usb->dev); devinfo 1466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!devinfo->wowl_enabled) { devinfo 1469 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = brcmf_alloc(&usb->dev, devinfo->settings); devinfo 1473 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c err = brcmf_attach(devinfo->dev); devinfo 1475 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_free(devinfo->dev); devinfo 1480 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->bus_pub.state = BRCMFMAC_USB_STATE_UP; devinfo 1481 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_rx_fill_all(devinfo); devinfo 1488 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(&usb->dev); devinfo 1494 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c fwreq = brcmf_usb_prepare_fw_request(devinfo); devinfo 25 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.h struct brcmf_usbdev_info *devinfo; devinfo 37 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.h struct brcmf_usbdev_info *devinfo; devinfo 1387 drivers/scsi/aic7xxx/aic79xx.h void ahd_compile_devinfo(struct ahd_devinfo *devinfo, devinfo 1409 drivers/scsi/aic7xxx/aic79xx.h struct ahd_devinfo *devinfo, devinfo 1412 drivers/scsi/aic7xxx/aic79xx.h struct ahd_devinfo *devinfo, devinfo 1460 drivers/scsi/aic7xxx/aic79xx.h struct ahd_devinfo *devinfo); devinfo 106 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo); devinfo 121 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo, devinfo 125 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo); devinfo 127 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo, devinfo 130 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo, devinfo 133 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo); devinfo 135 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo, devinfo 138 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo, devinfo 141 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo, devinfo 154 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo); devinfo 156 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo); devinfo 158 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo); devinfo 161 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo, devinfo 166 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo, devinfo 1907 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 1934 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(&devinfo, SCB_GET_OUR_ID(scb), devinfo 1940 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.channel, devinfo 1941 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.our_scsiid, devinfo 1942 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.target, devinfo 1945 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, &devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 1947 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, &devinfo, /*period*/0, devinfo 1977 drivers/scsi/aic7xxx/aic79xx_core.c ahd_send_async(ahd, devinfo.channel, devinfo.target, devinfo 2055 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 2068 drivers/scsi/aic7xxx/aic79xx_core.c ahd_fetch_devinfo(ahd, &devinfo); devinfo 2091 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo.role == ROLE_INITIATOR) { devinfo 2094 drivers/scsi/aic7xxx/aic79xx_core.c &devinfo, devinfo 2111 drivers/scsi/aic7xxx/aic79xx_core.c &devinfo, devinfo 2165 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 2167 drivers/scsi/aic7xxx/aic79xx_core.c ahd_fetch_devinfo(ahd, &devinfo); devinfo 2168 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_ign_wide_residue(ahd, &devinfo); devinfo 2242 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 2246 drivers/scsi/aic7xxx/aic79xx_core.c ahd_fetch_devinfo(ahd, &devinfo); devinfo 2248 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo.channel, devinfo.target, devinfo 2249 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.lun); devinfo 2302 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 2304 drivers/scsi/aic7xxx/aic79xx_core.c ahd_scb_devinfo(ahd, &devinfo, scb); devinfo 2306 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_devreset(ahd, &devinfo, lun, devinfo 2499 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 2507 drivers/scsi/aic7xxx/aic79xx_core.c ahd_scb_devinfo(ahd, &devinfo, scb); devinfo 2517 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_devreset(ahd, &devinfo, devinfo 3030 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 3051 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(&devinfo, initiator_role_id, devinfo 3072 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, &devinfo); devinfo 3123 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_devreset(ahd, &devinfo, CAM_LUN_WILDCARD, devinfo 3146 drivers/scsi/aic7xxx/aic79xx_core.c tinfo = ahd_fetch_transinfo(ahd, devinfo.channel, devinfo 3147 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.our_scsiid, devinfo 3148 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.target, &tstate); devinfo 3150 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, &devinfo, devinfo 3154 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, &devinfo, devinfo 3190 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, &devinfo, devinfo 3215 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, &devinfo, devinfo 3308 drivers/scsi/aic7xxx/aic79xx_core.c ahd_force_renegotiation(ahd, &devinfo); devinfo 3317 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 3325 drivers/scsi/aic7xxx/aic79xx_core.c ahd_fetch_devinfo(ahd, &devinfo); devinfo 3338 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, &devinfo); devinfo 3347 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, &devinfo); devinfo 3395 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, &devinfo); devinfo 3414 drivers/scsi/aic7xxx/aic79xx_core.c ahd_force_renegotiation(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) devinfo 3421 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, devinfo); devinfo 3426 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->channel, devinfo 3427 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->our_scsiid, devinfo 3428 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo 3430 drivers/scsi/aic7xxx/aic79xx_core.c ahd_update_neg_request(ahd, devinfo, tstate, devinfo 3840 drivers/scsi/aic7xxx/aic79xx_core.c ahd_update_neg_request(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 3867 drivers/scsi/aic7xxx/aic79xx_core.c tstate->auto_negotiate |= devinfo->target_mask; devinfo 3869 drivers/scsi/aic7xxx/aic79xx_core.c tstate->auto_negotiate &= ~devinfo->target_mask; devinfo 3883 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 3903 drivers/scsi/aic7xxx/aic79xx_core.c tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid, devinfo 3904 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, &tstate); devinfo 3933 drivers/scsi/aic7xxx/aic79xx_core.c ahd_send_async(ahd, devinfo->channel, devinfo->target, devinfo 3941 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->target, devinfo 3971 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->target, devinfo 3988 drivers/scsi/aic7xxx/aic79xx_core.c ahd_update_neg_table(ahd, devinfo, &tinfo->curr); devinfo 3996 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, devinfo); devinfo 4013 drivers/scsi/aic7xxx/aic79xx_core.c update_needed += ahd_update_neg_request(ahd, devinfo, tstate, devinfo 4029 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 4040 drivers/scsi/aic7xxx/aic79xx_core.c tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid, devinfo 4041 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, &tstate); devinfo 4055 drivers/scsi/aic7xxx/aic79xx_core.c ahd_send_async(ahd, devinfo->channel, devinfo->target, devinfo 4059 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->target, devinfo 4067 drivers/scsi/aic7xxx/aic79xx_core.c ahd_update_neg_table(ahd, devinfo, &tinfo->curr); devinfo 4072 drivers/scsi/aic7xxx/aic79xx_core.c update_needed += ahd_update_neg_request(ahd, devinfo, tstate, devinfo 4084 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo *devinfo, ahd_queue_alg alg) devinfo 4088 drivers/scsi/aic7xxx/aic79xx_core.c ahd_platform_set_tags(ahd, sdev, devinfo, alg); devinfo 4089 drivers/scsi/aic7xxx/aic79xx_core.c ahd_send_async(ahd, devinfo->channel, devinfo->target, devinfo 4090 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, AC_TRANSFER_NEG); devinfo 4094 drivers/scsi/aic7xxx/aic79xx_core.c ahd_update_neg_table(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 4109 drivers/scsi/aic7xxx/aic79xx_core.c ahd_outb(ahd, NEGOADDR, devinfo->target); devinfo 4234 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 4238 drivers/scsi/aic7xxx/aic79xx_core.c ahd_scb_devinfo(ahd, &devinfo, pending_scb); devinfo 4239 drivers/scsi/aic7xxx/aic79xx_core.c tinfo = ahd_fetch_transinfo(ahd, devinfo.channel, devinfo 4240 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.our_scsiid, devinfo 4241 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.target, &tstate); devinfo 4242 drivers/scsi/aic7xxx/aic79xx_core.c if ((tstate->auto_negotiate & devinfo.target_mask) == 0 devinfo 4297 drivers/scsi/aic7xxx/aic79xx_core.c ahd_fetch_devinfo(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) devinfo 4322 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(devinfo, devinfo 4332 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) devinfo 4335 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); devinfo 4357 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(struct ahd_devinfo *devinfo, u_int our_id, u_int target, devinfo 4360 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->our_scsiid = our_id; devinfo 4361 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target = target; devinfo 4362 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun = lun; devinfo 4363 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target_offset = target; devinfo 4364 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->channel = channel; devinfo 4365 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->role = role; devinfo 4367 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target_offset += 8; devinfo 4368 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target_mask = (0x01 << devinfo->target_offset); devinfo 4372 drivers/scsi/aic7xxx/aic79xx_core.c ahd_scb_devinfo(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 4382 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(devinfo, our_id, SCB_GET_TARGET(ahd, scb), devinfo 4395 drivers/scsi/aic7xxx/aic79xx_core.c ahd_setup_initiator_msgout(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 4480 drivers/scsi/aic7xxx/aic79xx_core.c ahd_build_transfer_msg(ahd, devinfo); devinfo 4493 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target_mask); devinfo 4516 drivers/scsi/aic7xxx/aic79xx_core.c ahd_build_transfer_msg(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) devinfo 4532 drivers/scsi/aic7xxx/aic79xx_core.c tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid, devinfo 4533 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, &tstate); devinfo 4544 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo->role == ROLE_TARGET) devinfo 4547 drivers/scsi/aic7xxx/aic79xx_core.c &ppr_options, devinfo->role); devinfo 4573 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, devinfo); devinfo 4578 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo->role == ROLE_TARGET) devinfo 4595 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->role); devinfo 4597 drivers/scsi/aic7xxx/aic79xx_core.c ahd_construct_ppr(ahd, devinfo, period, offset, devinfo 4600 drivers/scsi/aic7xxx/aic79xx_core.c ahd_construct_sdtr(ahd, devinfo, period, offset); devinfo 4603 drivers/scsi/aic7xxx/aic79xx_core.c ahd_construct_wdtr(ahd, devinfo, tinfo->goal.width); devinfo 4612 drivers/scsi/aic7xxx/aic79xx_core.c ahd_construct_sdtr(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 4622 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo->target, devinfo 4623 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, period, offset); devinfo 4632 drivers/scsi/aic7xxx/aic79xx_core.c ahd_construct_wdtr(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 4640 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo->target, devinfo 4641 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, bus_width); devinfo 4650 drivers/scsi/aic7xxx/aic79xx_core.c ahd_construct_ppr(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 4670 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->channel, devinfo->target, devinfo->lun, devinfo 4709 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 4713 drivers/scsi/aic7xxx/aic79xx_core.c ahd_fetch_devinfo(ahd, &devinfo); devinfo 4734 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, &devinfo); devinfo 4824 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, &devinfo); devinfo 4857 drivers/scsi/aic7xxx/aic79xx_core.c message_done = ahd_parse_msg(ahd, &devinfo); devinfo 4874 drivers/scsi/aic7xxx/aic79xx_core.c ahd_print_devinfo(ahd, &devinfo); devinfo 4973 drivers/scsi/aic7xxx/aic79xx_core.c msgdone = ahd_parse_msg(ahd, &devinfo); devinfo 5096 drivers/scsi/aic7xxx/aic79xx_core.c ahd_parse_msg(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) devinfo 5107 drivers/scsi/aic7xxx/aic79xx_core.c tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid, devinfo 5108 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, &tstate); devinfo 5134 drivers/scsi/aic7xxx/aic79xx_core.c response = ahd_handle_msg_reject(ahd, devinfo); devinfo 5171 drivers/scsi/aic7xxx/aic79xx_core.c &ppr_options, devinfo->role); devinfo 5173 drivers/scsi/aic7xxx/aic79xx_core.c tinfo->curr.width, devinfo->role); devinfo 5178 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5179 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun, devinfo 5183 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, devinfo, period, devinfo 5204 drivers/scsi/aic7xxx/aic79xx_core.c && devinfo->role == ROLE_INITIATOR) { devinfo 5207 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5208 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); devinfo 5212 drivers/scsi/aic7xxx/aic79xx_core.c ahd_construct_sdtr(ahd, devinfo, devinfo 5245 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->role); devinfo 5249 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5250 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun, devinfo 5265 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5266 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun, devinfo 5275 drivers/scsi/aic7xxx/aic79xx_core.c && devinfo->role == ROLE_INITIATOR) { devinfo 5278 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5279 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); devinfo 5283 drivers/scsi/aic7xxx/aic79xx_core.c ahd_construct_wdtr(ahd, devinfo, bus_width); devinfo 5297 drivers/scsi/aic7xxx/aic79xx_core.c ahd_update_neg_request(ahd, devinfo, tstate, devinfo 5299 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, devinfo, bus_width, devinfo 5309 drivers/scsi/aic7xxx/aic79xx_core.c ahd_build_transfer_msg(ahd, devinfo); devinfo 5365 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->role); devinfo 5367 drivers/scsi/aic7xxx/aic79xx_core.c &ppr_options, devinfo->role); devinfo 5369 drivers/scsi/aic7xxx/aic79xx_core.c bus_width, devinfo->role); devinfo 5387 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo->role != ROLE_TARGET) devinfo 5390 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5391 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); devinfo 5395 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5396 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); devinfo 5399 drivers/scsi/aic7xxx/aic79xx_core.c ahd_construct_ppr(ahd, devinfo, period, offset, devinfo 5409 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5410 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun, devinfo 5415 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, devinfo, bus_width, devinfo 5418 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, devinfo, period, devinfo 5435 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_devreset(ahd, devinfo, CAM_LUN_WILDCARD, devinfo 5449 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo->role != ROLE_TARGET) { devinfo 5456 drivers/scsi/aic7xxx/aic79xx_core.c ahd_abort_scbs(ahd, devinfo->target, devinfo->channel, devinfo 5457 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, tag, ROLE_TARGET, devinfo 5460 drivers/scsi/aic7xxx/aic79xx_core.c tstate = ahd->enabled_targets[devinfo->our_scsiid]; devinfo 5464 drivers/scsi/aic7xxx/aic79xx_core.c lstate = tstate->enabled_luns[devinfo->lun]; devinfo 5467 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->our_scsiid, devinfo 5514 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_msg_reject(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) devinfo 5531 drivers/scsi/aic7xxx/aic79xx_core.c tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo 5532 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->our_scsiid, devinfo 5533 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, &tstate); devinfo 5548 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5549 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); devinfo 5563 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5564 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); devinfo 5572 drivers/scsi/aic7xxx/aic79xx_core.c ahd_build_transfer_msg(ahd, devinfo); devinfo 5580 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->channel, devinfo->target, devinfo->lun); devinfo 5581 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 5596 drivers/scsi/aic7xxx/aic79xx_core.c ahd_build_transfer_msg(ahd, devinfo); devinfo 5602 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, devinfo, /*period*/0, devinfo 5608 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo 5609 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); devinfo 5619 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->channel, devinfo->target, devinfo->lun); devinfo 5620 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_tags(ahd, scb->io_ctx, devinfo, AHD_QUEUE_NONE); devinfo 5625 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo->target, devinfo 5626 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, tag_type == MSG_ORDERED_TASK devinfo 5628 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_tags(ahd, scb->io_ctx, devinfo, AHD_QUEUE_BASIC); devinfo 5643 drivers/scsi/aic7xxx/aic79xx_core.c ahd_busy_tcl(ahd, BUILD_TCL(scb->hscb->scsiid, devinfo->lun), devinfo 5664 drivers/scsi/aic7xxx/aic79xx_core.c ahd_force_renegotiation(ahd, devinfo); devinfo 5667 drivers/scsi/aic7xxx/aic79xx_core.c ahd_build_transfer_msg(ahd, devinfo); devinfo 5675 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), devinfo->channel, devinfo->target, devinfo 5685 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_ign_wide_residue(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) devinfo 5917 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_devreset(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 5926 drivers/scsi/aic7xxx/aic79xx_core.c found = ahd_abort_scbs(ahd, devinfo->target, devinfo->channel, devinfo 5927 drivers/scsi/aic7xxx/aic79xx_core.c lun, SCB_LIST_NULL, devinfo->role, devinfo 5935 drivers/scsi/aic7xxx/aic79xx_core.c tstate = ahd->enabled_targets[devinfo->our_scsiid]; devinfo 5954 drivers/scsi/aic7xxx/aic79xx_core.c ahd_queue_lstate_event(ahd, lstate, devinfo->our_scsiid, devinfo 5964 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 5966 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, devinfo, /*period*/0, /*offset*/0, devinfo 5971 drivers/scsi/aic7xxx/aic79xx_core.c ahd_send_async(ahd, devinfo->channel, devinfo->target, devinfo 5976 drivers/scsi/aic7xxx/aic79xx_core.c message, devinfo->channel, devinfo->target, found); devinfo 5981 drivers/scsi/aic7xxx/aic79xx_core.c ahd_setup_target_msgin(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, devinfo 5994 drivers/scsi/aic7xxx/aic79xx_core.c ahd_build_transfer_msg(ahd, devinfo); devinfo 7417 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 7423 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(&devinfo, ahd->our_id, devinfo 7426 drivers/scsi/aic7xxx/aic79xx_core.c ahd_update_neg_table(ahd, &devinfo, &tinfo->curr); devinfo 7599 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 7641 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(&devinfo, ahd->our_id, devinfo 7645 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, &devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 7647 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, &devinfo, /*period*/0, /*offset*/0, devinfo 7678 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 7755 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(&devinfo, ahd->our_id, devinfo 7758 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, &devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 7760 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, &devinfo, /*period*/0, /*offset*/0, devinfo 8806 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 8808 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(&devinfo, target, initiator, devinfo 8811 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_width(ahd, &devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 8813 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_syncrate(ahd, &devinfo, /*period*/0, devinfo 8975 drivers/scsi/aic7xxx/aic79xx_core.c struct ahd_devinfo devinfo; devinfo 8992 drivers/scsi/aic7xxx/aic79xx_core.c ahd_compile_devinfo(&devinfo, SCB_GET_OUR_ID(scb), devinfo 8998 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.channel, devinfo 8999 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.our_scsiid, devinfo 9000 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.target, devinfo 9047 drivers/scsi/aic7xxx/aic79xx_core.c ahd_update_neg_request(ahd, &devinfo, devinfo 9051 drivers/scsi/aic7xxx/aic79xx_core.c if (tstate->auto_negotiate & devinfo.target_mask) { devinfo 360 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo *devinfo); devinfo 615 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 651 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, ahd->our_id, starget->id, devinfo 654 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, 0, 0, 0, devinfo 656 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_width(ahd, &devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 1303 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 1309 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, ahd->our_id, target_id, devinfo 1311 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_update_neg_request(ahd, &devinfo, tstate, devinfo 1403 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo *devinfo, ahd_queue_alg alg) devinfo 1440 drivers/scsi/aic7xxx/aic79xx_osm.c usertags = ahd_linux_user_tagdepth(ahd, devinfo); devinfo 1493 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_linux_user_tagdepth(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) devinfo 1499 drivers/scsi/aic7xxx/aic79xx_osm.c if ((ahd->user_discenable & devinfo->target_mask) != 0) { devinfo 1515 drivers/scsi/aic7xxx/aic79xx_osm.c tags = tag_info->tag_commands[devinfo->target_offset]; devinfo 1529 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 1533 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, devinfo 1538 drivers/scsi/aic7xxx/aic79xx_osm.c tags = ahd_linux_user_tagdepth(ahd, &devinfo); devinfo 1541 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_platform_set_tags(ahd, sdev, &devinfo, AHD_QUEUE_TAGGED); devinfo 1542 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_send_async(ahd, devinfo.channel, devinfo.target, devinfo 1543 drivers/scsi/aic7xxx/aic79xx_osm.c devinfo.lun, AC_TRANSFER_NEG); devinfo 1544 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_print_devinfo(ahd, &devinfo); devinfo 1547 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_platform_set_tags(ahd, sdev, &devinfo, AHD_QUEUE_NONE); devinfo 1548 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_send_async(ahd, devinfo.channel, devinfo.target, devinfo 1549 drivers/scsi/aic7xxx/aic79xx_osm.c devinfo.lun, AC_TRANSFER_NEG); devinfo 1884 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 1887 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, devinfo 2009 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_platform_set_tags(ahd, sdev, &devinfo, devinfo 2019 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_platform_set_tags(ahd, sdev, &devinfo, devinfo 2390 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2393 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2396 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_width(ahd, &devinfo, width, AHD_TRANS_GOAL, FALSE); devinfo 2409 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2435 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2448 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, offset, devinfo 2462 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2473 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2483 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, offset, ppr_options, devinfo 2497 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2519 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2525 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, tinfo->goal.offset, devinfo 2539 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2558 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2564 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, tinfo->goal.offset, devinfo 2578 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2598 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2604 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, tinfo->goal.offset, devinfo 2618 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2634 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2640 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, tinfo->goal.offset, devinfo 2654 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2670 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2676 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, tinfo->goal.offset, devinfo 2690 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2714 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2720 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, tinfo->goal.offset, devinfo 2734 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2764 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2770 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, tinfo->goal.offset, devinfo 2784 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_devinfo devinfo; devinfo 2794 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2800 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_set_syncrate(ahd, &devinfo, period, tinfo->goal.offset, devinfo 638 drivers/scsi/aic7xxx/aic79xx_osm.h struct ahd_devinfo *devinfo) devinfo 664 drivers/scsi/aic7xxx/aic79xx_osm.h struct ahd_devinfo *devinfo, ahd_queue_alg); devinfo 1195 drivers/scsi/aic7xxx/aic7xxx.h void ahc_compile_devinfo(struct ahc_devinfo *devinfo, devinfo 1219 drivers/scsi/aic7xxx/aic7xxx.h struct ahc_devinfo *devinfo, devinfo 1222 drivers/scsi/aic7xxx/aic7xxx.h struct ahc_devinfo *devinfo, devinfo 135 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo); devinfo 151 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo); devinfo 153 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo, devinfo 157 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo, devinfo 160 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo); devinfo 162 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo, devinfo 165 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo, devinfo 168 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo, devinfo 182 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo); devinfo 184 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo); devinfo 186 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo); devinfo 189 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo, devinfo 194 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo, devinfo 980 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo devinfo; devinfo 982 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_fetch_devinfo(ahc, &devinfo); devinfo 1016 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(ahc, &devinfo); devinfo 1068 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.channel, devinfo 1069 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.our_scsiid, devinfo 1070 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.target, devinfo 1122 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_update_neg_request(ahc, &devinfo, devinfo 1126 drivers/scsi/aic7xxx/aic7xxx_core.c if (tstate->auto_negotiate & devinfo.target_mask) { devinfo 1160 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo.channel, devinfo.target); devinfo 1195 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo.channel, devinfo.target, rejbyte); devinfo 1204 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_handle_ign_wide_residue(ahc, &devinfo); devinfo 1216 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo.channel, devinfo.target, devinfo 1227 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo.channel, devinfo.target, devinfo 1267 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo.role == ROLE_INITIATOR) { devinfo 1275 drivers/scsi/aic7xxx/aic7xxx_core.c &devinfo, devinfo 1292 drivers/scsi/aic7xxx/aic7xxx_core.c &devinfo, devinfo 1354 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(ahc, &devinfo); devinfo 1362 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_reset_channel(ahc, devinfo.channel, devinfo 1450 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo.channel, devinfo.target, devinfo 1451 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.lun); devinfo 1611 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo devinfo; devinfo 1708 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_fetch_devinfo(ahc, &devinfo); devinfo 1709 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_force_renegotiation(ahc, &devinfo); devinfo 1747 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo devinfo; devinfo 1755 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_scb_devinfo(ahc, &devinfo, scb); devinfo 1765 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_handle_devreset(ahc, &devinfo, devinfo 1774 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo devinfo; devinfo 1813 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_compile_devinfo(&devinfo, initiator_role_id, devinfo 1852 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_compile_devinfo(&devinfo, devinfo 1858 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_handle_devreset(ahc, &devinfo, devinfo 1873 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.channel, devinfo 1874 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.our_scsiid, devinfo 1875 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.target, devinfo 1888 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_width(ahc, &devinfo, devinfo 1900 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_syncrate(ahc, &devinfo, devinfo 1943 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_force_renegotiation(ahc, &devinfo); devinfo 1965 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_force_renegotiation(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) devinfo 1971 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->channel, devinfo 1972 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->our_scsiid, devinfo 1973 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo 1975 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_update_neg_request(ahc, devinfo, tstate, devinfo 2443 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_update_neg_request(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 2470 drivers/scsi/aic7xxx/aic7xxx_core.c tstate->auto_negotiate |= devinfo->target_mask; devinfo 2472 drivers/scsi/aic7xxx/aic7xxx_core.c tstate->auto_negotiate &= ~devinfo->target_mask; devinfo 2486 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 2506 drivers/scsi/aic7xxx/aic7xxx_core.c tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid, devinfo 2507 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, &tstate); devinfo 2550 drivers/scsi/aic7xxx/aic7xxx_core.c tstate->ultraenb &= ~devinfo->target_mask; devinfo 2554 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target_mask; devinfo 2564 drivers/scsi/aic7xxx/aic7xxx_core.c if (tstate->ultraenb & devinfo->target_mask) devinfo 2580 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_send_async(ahc, devinfo->channel, devinfo->target, devinfo 2586 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, syncrate->rate, devinfo 2592 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->target); devinfo 2597 drivers/scsi/aic7xxx/aic7xxx_core.c update_needed += ahc_update_neg_request(ahc, devinfo, tstate, devinfo 2613 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_width(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 2624 drivers/scsi/aic7xxx/aic7xxx_core.c tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid, devinfo 2625 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, &tstate); devinfo 2650 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_send_async(ahc, devinfo->channel, devinfo->target, devinfo 2654 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->target, devinfo 2659 drivers/scsi/aic7xxx/aic7xxx_core.c update_needed += ahc_update_neg_request(ahc, devinfo, tstate, devinfo 2670 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo *devinfo, ahc_queue_alg alg) devinfo 2674 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_platform_set_tags(ahc, sdev, devinfo, alg); devinfo 2675 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_send_async(ahc, devinfo->channel, devinfo->target, devinfo 2676 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, AC_TRANSFER_NEG); devinfo 2699 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo devinfo; devinfo 2704 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_scb_devinfo(ahc, &devinfo, pending_scb); devinfo 2705 drivers/scsi/aic7xxx/aic7xxx_core.c tinfo = ahc_fetch_transinfo(ahc, devinfo.channel, devinfo 2706 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.our_scsiid, devinfo 2707 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.target, &tstate); devinfo 2710 drivers/scsi/aic7xxx/aic7xxx_core.c if ((tstate->ultraenb & devinfo.target_mask) != 0) devinfo 2714 drivers/scsi/aic7xxx/aic7xxx_core.c if ((tstate->auto_negotiate & devinfo.target_mask) == 0 devinfo 2763 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_fetch_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) devinfo 2786 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_compile_devinfo(devinfo, devinfo 2813 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_compile_devinfo(struct ahc_devinfo *devinfo, u_int our_id, u_int target, devinfo 2816 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->our_scsiid = our_id; devinfo 2817 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target = target; devinfo 2818 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun = lun; devinfo 2819 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target_offset = target; devinfo 2820 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->channel = channel; devinfo 2821 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role = role; devinfo 2823 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target_offset += 8; devinfo 2824 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target_mask = (0x01 << devinfo->target_offset); devinfo 2828 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) devinfo 2830 drivers/scsi/aic7xxx/aic7xxx_core.c printk("%s:%c:%d:%d: ", ahc_name(ahc), devinfo->channel, devinfo 2831 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); devinfo 2835 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_scb_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 2845 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_compile_devinfo(devinfo, our_id, SCB_GET_TARGET(ahc, scb), devinfo 2869 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_setup_initiator_msgout(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 2929 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_build_transfer_msg(ahc, devinfo); devinfo 2934 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target_mask); devinfo 2955 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_build_transfer_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) devinfo 2972 drivers/scsi/aic7xxx/aic7xxx_core.c tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid, devinfo 2973 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, &tstate); devinfo 2984 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo->role == ROLE_TARGET) devinfo 2987 drivers/scsi/aic7xxx/aic7xxx_core.c &ppr_options, devinfo->role); devinfo 3013 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(ahc, devinfo); devinfo 3019 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo->role == ROLE_TARGET) devinfo 3036 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); devinfo 3038 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_construct_ppr(ahc, devinfo, period, offset, devinfo 3041 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_construct_sdtr(ahc, devinfo, period, offset); devinfo 3044 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_construct_wdtr(ahc, devinfo, tinfo->goal.width); devinfo 3053 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_construct_sdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 3063 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo->target, devinfo 3064 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, period, offset); devinfo 3073 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 3081 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo->target, devinfo 3082 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, bus_width); devinfo 3091 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 3104 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->channel, devinfo->target, devinfo->lun, devinfo 3133 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo devinfo; devinfo 3141 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_fetch_devinfo(ahc, &devinfo); devinfo 3154 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(ahc, &devinfo); devinfo 3163 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(ahc, &devinfo); devinfo 3210 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(ahc, &devinfo); devinfo 3230 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo devinfo; devinfo 3234 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_fetch_devinfo(ahc, &devinfo); devinfo 3251 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(ahc, &devinfo); devinfo 3329 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(ahc, &devinfo); devinfo 3362 drivers/scsi/aic7xxx/aic7xxx_core.c message_done = ahc_parse_msg(ahc, &devinfo); devinfo 3379 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_print_devinfo(ahc, &devinfo); devinfo 3468 drivers/scsi/aic7xxx/aic7xxx_core.c msgdone = ahc_parse_msg(ahc, &devinfo); devinfo 3577 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_parse_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) devinfo 3589 drivers/scsi/aic7xxx/aic7xxx_core.c tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid, devinfo 3590 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, &tstate); devinfo 3617 drivers/scsi/aic7xxx/aic7xxx_core.c response = ahc_handle_msg_reject(ahc, devinfo); devinfo 3656 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); devinfo 3659 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); devinfo 3664 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 3665 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun, devinfo 3669 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_syncrate(ahc, devinfo, devinfo 3691 drivers/scsi/aic7xxx/aic7xxx_core.c && devinfo->role == ROLE_INITIATOR) { devinfo 3694 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 3695 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); devinfo 3699 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_construct_sdtr(ahc, devinfo, devinfo 3732 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); devinfo 3736 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 3737 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun, devinfo 3752 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 3753 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun, devinfo 3762 drivers/scsi/aic7xxx/aic7xxx_core.c && devinfo->role == ROLE_INITIATOR) { devinfo 3765 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 3766 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); devinfo 3770 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_construct_wdtr(ahc, devinfo, bus_width); devinfo 3784 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_update_neg_request(ahc, devinfo, tstate, devinfo 3786 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_width(ahc, devinfo, bus_width, devinfo 3796 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_build_transfer_msg(ahc, devinfo); devinfo 3855 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); devinfo 3858 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); devinfo 3861 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); devinfo 3880 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo->role != ROLE_TARGET) devinfo 3883 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 3884 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); devinfo 3888 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 3889 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); devinfo 3892 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_construct_ppr(ahc, devinfo, period, offset, devinfo 3902 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 3903 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun, devinfo 3908 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_width(ahc, devinfo, bus_width, devinfo 3911 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_syncrate(ahc, devinfo, devinfo 3928 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_handle_devreset(ahc, devinfo, devinfo 3942 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo->role != ROLE_TARGET) { devinfo 3949 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_abort_scbs(ahc, devinfo->target, devinfo->channel, devinfo 3950 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, tag, ROLE_TARGET, devinfo 3953 drivers/scsi/aic7xxx/aic7xxx_core.c tstate = ahc->enabled_targets[devinfo->our_scsiid]; devinfo 3957 drivers/scsi/aic7xxx/aic7xxx_core.c lstate = tstate->enabled_luns[devinfo->lun]; devinfo 3960 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->our_scsiid, devinfo 3999 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_handle_msg_reject(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) devinfo 4016 drivers/scsi/aic7xxx/aic7xxx_core.c tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo 4017 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->our_scsiid, devinfo 4018 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, &tstate); devinfo 4030 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 4031 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); devinfo 4038 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_build_transfer_msg(ahc, devinfo); devinfo 4046 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->channel, devinfo->target, devinfo->lun); devinfo 4047 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 4062 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_build_transfer_msg(ahc, devinfo); devinfo 4068 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL, /*period*/0, devinfo 4074 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo 4075 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); devinfo 4085 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->channel, devinfo->target, devinfo->lun); devinfo 4086 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_tags(ahc, scb->io_ctx, devinfo, AHC_QUEUE_NONE); devinfo 4091 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo->target, devinfo 4092 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, tag_type == MSG_ORDERED_TASK devinfo 4094 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_tags(ahc, scb->io_ctx, devinfo, AHC_QUEUE_BASIC); devinfo 4118 drivers/scsi/aic7xxx/aic7xxx_core.c &(ahc->untagged_queues[devinfo->target_offset]); devinfo 4122 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun), devinfo 4140 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_name(ahc), devinfo->channel, devinfo->target, devinfo 4150 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) devinfo 4315 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_handle_devreset(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 4324 drivers/scsi/aic7xxx/aic7xxx_core.c found = ahc_abort_scbs(ahc, devinfo->target, devinfo->channel, devinfo 4325 drivers/scsi/aic7xxx/aic7xxx_core.c CAM_LUN_WILDCARD, SCB_LIST_NULL, devinfo->role, devinfo 4333 drivers/scsi/aic7xxx/aic7xxx_core.c tstate = ahc->enabled_targets[devinfo->our_scsiid]; devinfo 4342 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid, devinfo 4352 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 4354 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL, devinfo 4359 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_send_async(ahc, devinfo->channel, devinfo->target, devinfo 4365 drivers/scsi/aic7xxx/aic7xxx_core.c message, devinfo->channel, devinfo->target, found); devinfo 4370 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_setup_target_msgin(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, devinfo 4383 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_build_transfer_msg(ahc, devinfo); devinfo 6452 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo devinfo; devinfo 6463 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_compile_devinfo(&devinfo, devinfo 6583 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_send_async(ahc, devinfo.channel, CAM_TARGET_WILDCARD, devinfo 6594 drivers/scsi/aic7xxx/aic7xxx_core.c struct ahc_devinfo devinfo; devinfo 6596 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_compile_devinfo(&devinfo, target, initiator, devinfo 6599 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_width(ahc, &devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 6601 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_set_syncrate(ahc, &devinfo, /*syncrate*/NULL, devinfo 371 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo *devinfo); devinfo 566 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 619 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, our_id, starget->id, devinfo 622 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_set_syncrate(ahc, &devinfo, NULL, 0, 0, 0, devinfo 624 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_set_width(ahc, &devinfo, MSG_EXT_WDTR_BUS_8_BIT, devinfo 1177 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 1194 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, our_id, target_id, devinfo 1196 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_update_neg_request(ahc, &devinfo, tstate, devinfo 1271 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo *devinfo, ahc_queue_alg alg) devinfo 1305 drivers/scsi/aic7xxx/aic7xxx_osm.c usertags = ahc_linux_user_tagdepth(ahc, devinfo); devinfo 1357 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_linux_user_tagdepth(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) devinfo 1363 drivers/scsi/aic7xxx/aic7xxx_osm.c if ((ahc->user_discenable & devinfo->target_mask) != 0) { devinfo 1379 drivers/scsi/aic7xxx/aic7xxx_osm.c tags = tag_info->tag_commands[devinfo->target_offset]; devinfo 1393 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 1397 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, devinfo 1403 drivers/scsi/aic7xxx/aic7xxx_osm.c tags = ahc_linux_user_tagdepth(ahc, &devinfo); devinfo 1406 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_platform_set_tags(ahc, sdev, &devinfo, AHC_QUEUE_TAGGED); devinfo 1407 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_send_async(ahc, devinfo.channel, devinfo.target, devinfo 1408 drivers/scsi/aic7xxx/aic7xxx_osm.c devinfo.lun, AC_TRANSFER_NEG); devinfo 1409 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_print_devinfo(ahc, &devinfo); devinfo 1412 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_platform_set_tags(ahc, sdev, &devinfo, AHC_QUEUE_NONE); devinfo 1413 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_send_async(ahc, devinfo.channel, devinfo.target, devinfo 1414 drivers/scsi/aic7xxx/aic7xxx_osm.c devinfo.lun, AC_TRANSFER_NEG); devinfo 1813 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 1816 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, devinfo 1919 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_platform_set_tags(ahc, sdev, &devinfo, devinfo 1930 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_platform_set_tags(ahc, sdev, &devinfo, devinfo 2333 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 2336 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2339 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_set_width(ahc, &devinfo, width, AHC_TRANS_GOAL, FALSE); devinfo 2352 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 2371 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2382 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_set_syncrate(ahc, &devinfo, syncrate, period, offset, devinfo 2396 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 2402 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2410 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_set_syncrate(ahc, &devinfo, syncrate, period, offset, devinfo 2424 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 2439 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2443 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_set_syncrate(ahc, &devinfo, syncrate, period, tinfo->goal.offset, devinfo 2462 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 2472 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2476 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_set_syncrate(ahc, &devinfo, syncrate, period, tinfo->goal.offset, devinfo 2490 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_devinfo devinfo; devinfo 2500 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, devinfo 2504 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_set_syncrate(ahc, &devinfo, syncrate, period, tinfo->goal.offset, devinfo 656 drivers/scsi/aic7xxx/aic7xxx_osm.h struct ahc_devinfo *devinfo) devinfo 680 drivers/scsi/aic7xxx/aic7xxx_osm.h struct ahc_devinfo *devinfo, ahc_queue_alg); devinfo 794 drivers/scsi/esas2r/esas2r_disc.c struct atto_vda_devinfo *devinfo; devinfo 802 drivers/scsi/esas2r/esas2r_disc.c devinfo = &rq->vda_rsp_data->mgt_data.data.dev_info; devinfo 804 drivers/scsi/esas2r/esas2r_disc.c memset(devinfo, 0, sizeof(struct atto_vda_devinfo)); devinfo 831 drivers/scsi/esas2r/esas2r_disc.c struct atto_vda_devinfo *devinfo; devinfo 842 drivers/scsi/esas2r/esas2r_disc.c devinfo = &rq->vda_rsp_data->mgt_data.data.dev_info; devinfo 846 drivers/scsi/esas2r/esas2r_disc.c dc->curr_virt_id = le16_to_cpu(devinfo->target_id); devinfo 848 drivers/scsi/esas2r/esas2r_disc.c if (le16_to_cpu(devinfo->features) & VDADEVFEAT_PHYS_ID) { devinfo 850 drivers/scsi/esas2r/esas2r_disc.c le16_to_cpu(devinfo->phys_target_id); devinfo 350 drivers/scsi/scsi_devinfo.c struct scsi_dev_info_list *devinfo; devinfo 357 drivers/scsi/scsi_devinfo.c devinfo = kmalloc(sizeof(*devinfo), GFP_KERNEL); devinfo 358 drivers/scsi/scsi_devinfo.c if (!devinfo) { devinfo 363 drivers/scsi/scsi_devinfo.c scsi_strcpy_devinfo("vendor", devinfo->vendor, sizeof(devinfo->vendor), devinfo 365 drivers/scsi/scsi_devinfo.c scsi_strcpy_devinfo("model", devinfo->model, sizeof(devinfo->model), devinfo 373 drivers/scsi/scsi_devinfo.c kfree(devinfo); devinfo 381 drivers/scsi/scsi_devinfo.c kfree(devinfo); devinfo 384 drivers/scsi/scsi_devinfo.c devinfo->flags = flags; devinfo 385 drivers/scsi/scsi_devinfo.c devinfo->compatible = compatible; devinfo 388 drivers/scsi/scsi_devinfo.c list_add_tail(&devinfo->dev_info_list, devinfo 391 drivers/scsi/scsi_devinfo.c list_add(&devinfo->dev_info_list, devinfo 413 drivers/scsi/scsi_devinfo.c struct scsi_dev_info_list *devinfo; devinfo 432 drivers/scsi/scsi_devinfo.c vmax = sizeof(devinfo->vendor); devinfo 442 drivers/scsi/scsi_devinfo.c mmax = sizeof(devinfo->model); devinfo 451 drivers/scsi/scsi_devinfo.c list_for_each_entry(devinfo, &devinfo_table->scsi_dev_info_list, devinfo 453 drivers/scsi/scsi_devinfo.c if (devinfo->compatible) { devinfo 457 drivers/scsi/scsi_devinfo.c if (vmax != strnlen(devinfo->vendor, devinfo 458 drivers/scsi/scsi_devinfo.c sizeof(devinfo->vendor)) || devinfo 459 drivers/scsi/scsi_devinfo.c memcmp(devinfo->vendor, vskip, vmax)) devinfo 466 drivers/scsi/scsi_devinfo.c mlen = strnlen(devinfo->model, sizeof(devinfo->model)); devinfo 467 drivers/scsi/scsi_devinfo.c if (mmax < mlen || memcmp(devinfo->model, mskip, mlen)) devinfo 469 drivers/scsi/scsi_devinfo.c return devinfo; devinfo 471 drivers/scsi/scsi_devinfo.c if (!memcmp(devinfo->vendor, vendor, devinfo 472 drivers/scsi/scsi_devinfo.c sizeof(devinfo->vendor)) && devinfo 473 drivers/scsi/scsi_devinfo.c !memcmp(devinfo->model, model, devinfo 474 drivers/scsi/scsi_devinfo.c sizeof(devinfo->model))) devinfo 475 drivers/scsi/scsi_devinfo.c return devinfo; devinfo 599 drivers/scsi/scsi_devinfo.c struct scsi_dev_info_list *devinfo; devinfo 601 drivers/scsi/scsi_devinfo.c devinfo = scsi_dev_info_list_find(vendor, model, key); devinfo 602 drivers/scsi/scsi_devinfo.c if (!IS_ERR(devinfo)) devinfo 603 drivers/scsi/scsi_devinfo.c return devinfo->flags; devinfo 628 drivers/scsi/scsi_devinfo.c struct scsi_dev_info_list *devinfo = devinfo 637 drivers/scsi/scsi_devinfo.c devinfo->vendor, devinfo->model, devinfo->flags); devinfo 825 drivers/scsi/scsi_devinfo.c struct scsi_dev_info_list *devinfo; devinfo 827 drivers/scsi/scsi_devinfo.c devinfo = list_entry(lh, struct scsi_dev_info_list, devinfo 829 drivers/scsi/scsi_devinfo.c kfree(devinfo); devinfo 171 drivers/scsi/scsi_dh.c struct scsi_device_handler *devinfo = NULL; devinfo 176 drivers/scsi/scsi_dh.c devinfo = __scsi_dh_lookup(drv); devinfo 181 drivers/scsi/scsi_dh.c if (devinfo) devinfo 182 drivers/scsi/scsi_dh.c (void)scsi_dh_handler_attach(sdev, devinfo); devinfo 320 drivers/sh/maple/maple.c if (mdev->devinfo.function & cpu_to_be32(maple_drv->function)) devinfo 340 drivers/sh/maple/maple.c memcpy(&mdev->devinfo.function, recvbuf + 4, 4); devinfo 341 drivers/sh/maple/maple.c memcpy(&mdev->devinfo.function_data[0], recvbuf + 8, 12); devinfo 342 drivers/sh/maple/maple.c memcpy(&mdev->devinfo.area_code, recvbuf + 20, 1); devinfo 343 drivers/sh/maple/maple.c memcpy(&mdev->devinfo.connector_direction, recvbuf + 21, 1); devinfo 344 drivers/sh/maple/maple.c memcpy(&mdev->devinfo.product_name[0], recvbuf + 22, 30); devinfo 345 drivers/sh/maple/maple.c memcpy(&mdev->devinfo.standby_power, recvbuf + 112, 2); devinfo 346 drivers/sh/maple/maple.c memcpy(&mdev->devinfo.max_power, recvbuf + 114, 2); devinfo 347 drivers/sh/maple/maple.c memcpy(mdev->product_name, mdev->devinfo.product_name, 30); devinfo 349 drivers/sh/maple/maple.c memcpy(mdev->product_licence, mdev->devinfo.product_licence, 60); devinfo 363 drivers/sh/maple/maple.c function = be32_to_cpu(mdev->devinfo.function); devinfo 427 drivers/sh/maple/maple.c be32_to_cpu(mdev->devinfo.function), devinfo 756 drivers/sh/maple/maple.c if (maple_dev->devinfo.function == 0xFFFFFFFF) devinfo 758 drivers/sh/maple/maple.c else if (maple_dev->devinfo.function & devinfo 932 drivers/staging/comedi/comedi_fops.c struct comedi_devinfo devinfo; devinfo 935 drivers/staging/comedi/comedi_fops.c memset(&devinfo, 0, sizeof(devinfo)); devinfo 938 drivers/staging/comedi/comedi_fops.c devinfo.version_code = COMEDI_VERSION_CODE; devinfo 939 drivers/staging/comedi/comedi_fops.c devinfo.n_subdevs = dev->n_subdevices; devinfo 940 drivers/staging/comedi/comedi_fops.c strlcpy(devinfo.driver_name, dev->driver->driver_name, COMEDI_NAMELEN); devinfo 941 drivers/staging/comedi/comedi_fops.c strlcpy(devinfo.board_name, dev->board_name, COMEDI_NAMELEN); devinfo 945 drivers/staging/comedi/comedi_fops.c devinfo.read_subdevice = s->index; devinfo 947 drivers/staging/comedi/comedi_fops.c devinfo.read_subdevice = -1; devinfo 951 drivers/staging/comedi/comedi_fops.c devinfo.write_subdevice = s->index; devinfo 953 drivers/staging/comedi/comedi_fops.c devinfo.write_subdevice = -1; devinfo 955 drivers/staging/comedi/comedi_fops.c if (copy_to_user(arg, &devinfo, sizeof(devinfo))) devinfo 752 drivers/usb/core/hub.c hub_clear_tt_buffer(struct usb_device *hdev, u16 devinfo, u16 tt) devinfo 755 drivers/usb/core/hub.c if (((devinfo >> 11) & USB_ENDPOINT_XFERTYPE_MASK) == devinfo 759 drivers/usb/core/hub.c devinfo ^ 0x8000, tt, NULL, 0, 1000); devinfo 764 drivers/usb/core/hub.c HUB_CLEAR_TT_BUFFER, USB_RT_PORT, devinfo, devinfo 794 drivers/usb/core/hub.c status = hub_clear_tt_buffer(hdev, clear->devinfo, clear->tt); devinfo 798 drivers/usb/core/hub.c clear->tt, clear->devinfo, status); devinfo 878 drivers/usb/core/hub.c clear->devinfo = usb_pipeendpoint (pipe); devinfo 879 drivers/usb/core/hub.c clear->devinfo |= ((u16)udev->devaddr) << 4; devinfo 880 drivers/usb/core/hub.c clear->devinfo |= usb_pipecontrol(pipe) devinfo 884 drivers/usb/core/hub.c clear->devinfo |= 1 << 15; devinfo 77 drivers/usb/storage/uas.c struct uas_dev_info *devinfo); devinfo 80 drivers/usb/storage/uas.c static void uas_free_streams(struct uas_dev_info *devinfo); devinfo 99 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = devinfo 106 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 108 drivers/usb/storage/uas.c if (devinfo->resetting) devinfo 111 drivers/usb/storage/uas.c for (i = 0; i < devinfo->qdepth; i++) { devinfo 112 drivers/usb/storage/uas.c if (!devinfo->cmnd[i]) devinfo 115 drivers/usb/storage/uas.c cmnd = devinfo->cmnd[i]; devinfo 125 drivers/usb/storage/uas.c queue_work(workqueue, &devinfo->work); devinfo 128 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 133 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = devinfo 135 drivers/usb/storage/uas.c struct Scsi_Host *shost = usb_get_intfdata(devinfo->intf); devinfo 137 drivers/usb/storage/uas.c dev_dbg(&devinfo->intf->dev, "starting scan\n"); devinfo 139 drivers/usb/storage/uas.c dev_dbg(&devinfo->intf->dev, "scan complete\n"); devinfo 146 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = cmnd->device->hostdata; devinfo 148 drivers/usb/storage/uas.c lockdep_assert_held(&devinfo->lock); devinfo 150 drivers/usb/storage/uas.c queue_work(workqueue, &devinfo->work); devinfo 153 drivers/usb/storage/uas.c static void uas_zap_pending(struct uas_dev_info *devinfo, int result) devinfo 160 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 161 drivers/usb/storage/uas.c for (i = 0; i < devinfo->qdepth; i++) { devinfo 162 drivers/usb/storage/uas.c if (!devinfo->cmnd[i]) devinfo 165 drivers/usb/storage/uas.c cmnd = devinfo->cmnd[i]; devinfo 174 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 249 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; devinfo 251 drivers/usb/storage/uas.c lockdep_assert_held(&devinfo->lock); devinfo 257 drivers/usb/storage/uas.c devinfo->cmnd[cmdinfo->uas_tag - 1] = NULL; devinfo 303 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; devinfo 313 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 315 drivers/usb/storage/uas.c if (devinfo->resetting) devinfo 325 drivers/usb/storage/uas.c if (idx >= MAX_CMNDS || !devinfo->cmnd[idx]) { devinfo 331 drivers/usb/storage/uas.c cmnd = devinfo->cmnd[idx]; devinfo 381 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 398 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; devinfo 403 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 413 drivers/usb/storage/uas.c if (devinfo->resetting) devinfo 433 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 444 drivers/usb/storage/uas.c static struct urb *uas_alloc_data_urb(struct uas_dev_info *devinfo, gfp_t gfp, devinfo 448 drivers/usb/storage/uas.c struct usb_device *udev = devinfo->udev; devinfo 453 drivers/usb/storage/uas.c ? devinfo->data_in_pipe : devinfo->data_out_pipe; devinfo 459 drivers/usb/storage/uas.c if (devinfo->use_streams) devinfo 467 drivers/usb/storage/uas.c static struct urb *uas_alloc_sense_urb(struct uas_dev_info *devinfo, gfp_t gfp, devinfo 470 drivers/usb/storage/uas.c struct usb_device *udev = devinfo->udev; devinfo 482 drivers/usb/storage/uas.c usb_fill_bulk_urb(urb, udev, devinfo->status_pipe, iu, sizeof(*iu), devinfo 484 drivers/usb/storage/uas.c if (devinfo->use_streams) devinfo 494 drivers/usb/storage/uas.c static struct urb *uas_alloc_cmd_urb(struct uas_dev_info *devinfo, gfp_t gfp, devinfo 497 drivers/usb/storage/uas.c struct usb_device *udev = devinfo->udev; devinfo 522 drivers/usb/storage/uas.c usb_fill_bulk_urb(urb, udev, devinfo->cmd_pipe, iu, sizeof(*iu) + len, devinfo 540 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = cmnd->device->hostdata; devinfo 544 drivers/usb/storage/uas.c urb = uas_alloc_sense_urb(devinfo, gfp, cmnd); devinfo 547 drivers/usb/storage/uas.c usb_anchor_urb(urb, &devinfo->sense_urbs); devinfo 559 drivers/usb/storage/uas.c struct uas_dev_info *devinfo) devinfo 565 drivers/usb/storage/uas.c lockdep_assert_held(&devinfo->lock); devinfo 574 drivers/usb/storage/uas.c cmdinfo->data_in_urb = uas_alloc_data_urb(devinfo, GFP_ATOMIC, devinfo 582 drivers/usb/storage/uas.c usb_anchor_urb(cmdinfo->data_in_urb, &devinfo->data_urbs); devinfo 594 drivers/usb/storage/uas.c cmdinfo->data_out_urb = uas_alloc_data_urb(devinfo, GFP_ATOMIC, devinfo 602 drivers/usb/storage/uas.c usb_anchor_urb(cmdinfo->data_out_urb, &devinfo->data_urbs); devinfo 614 drivers/usb/storage/uas.c cmdinfo->cmd_urb = uas_alloc_cmd_urb(devinfo, GFP_ATOMIC, cmnd); devinfo 621 drivers/usb/storage/uas.c usb_anchor_urb(cmdinfo->cmd_urb, &devinfo->cmd_urbs); devinfo 640 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = sdev->hostdata; devinfo 651 drivers/usb/storage/uas.c if ((devinfo->flags & US_FL_NO_ATA_1X) && devinfo 660 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 662 drivers/usb/storage/uas.c if (devinfo->resetting) { devinfo 665 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 670 drivers/usb/storage/uas.c for (idx = 0; idx < devinfo->qdepth; idx++) { devinfo 671 drivers/usb/storage/uas.c if (!devinfo->cmnd[idx]) devinfo 674 drivers/usb/storage/uas.c if (idx == devinfo->qdepth) { devinfo 675 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 698 drivers/usb/storage/uas.c if (!devinfo->use_streams) devinfo 701 drivers/usb/storage/uas.c err = uas_submit_urbs(cmnd, devinfo); devinfo 705 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 711 drivers/usb/storage/uas.c devinfo->cmnd[idx] = cmnd; devinfo 712 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 726 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; devinfo 731 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 739 drivers/usb/storage/uas.c devinfo->cmnd[cmdinfo->uas_tag - 1] = NULL; devinfo 747 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 764 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = sdev->hostdata; devinfo 765 drivers/usb/storage/uas.c struct usb_device *udev = devinfo->udev; devinfo 769 drivers/usb/storage/uas.c err = usb_lock_device_for_reset(udev, devinfo->intf); devinfo 778 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 779 drivers/usb/storage/uas.c devinfo->resetting = 1; devinfo 780 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 782 drivers/usb/storage/uas.c usb_kill_anchored_urbs(&devinfo->cmd_urbs); devinfo 783 drivers/usb/storage/uas.c usb_kill_anchored_urbs(&devinfo->sense_urbs); devinfo 784 drivers/usb/storage/uas.c usb_kill_anchored_urbs(&devinfo->data_urbs); devinfo 785 drivers/usb/storage/uas.c uas_zap_pending(devinfo, DID_RESET); devinfo 789 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 790 drivers/usb/storage/uas.c devinfo->resetting = 0; devinfo 791 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 807 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *) devinfo 810 drivers/usb/storage/uas.c if (devinfo->flags & US_FL_NO_REPORT_LUNS) devinfo 818 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = devinfo 821 drivers/usb/storage/uas.c sdev->hostdata = devinfo; devinfo 830 drivers/usb/storage/uas.c if (devinfo->flags & US_FL_MAX_SECTORS_64) devinfo 832 drivers/usb/storage/uas.c else if (devinfo->flags & US_FL_MAX_SECTORS_240) devinfo 840 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = sdev->hostdata; devinfo 842 drivers/usb/storage/uas.c if (devinfo->flags & US_FL_NO_REPORT_OPCODES) devinfo 846 drivers/usb/storage/uas.c if (devinfo->flags & US_FL_BROKEN_FUA) devinfo 850 drivers/usb/storage/uas.c if (devinfo->flags & US_FL_ALWAYS_SYNC) { devinfo 857 drivers/usb/storage/uas.c if (devinfo->flags & US_FL_NO_READ_CAPACITY_16) devinfo 865 drivers/usb/storage/uas.c if (devinfo->flags & US_FL_FIX_CAPACITY) devinfo 871 drivers/usb/storage/uas.c if (devinfo->flags & US_FL_CAPACITY_HEURISTICS) devinfo 883 drivers/usb/storage/uas.c if (devinfo->flags & US_FL_NO_WP_DETECT) devinfo 886 drivers/usb/storage/uas.c scsi_change_queue_depth(sdev, devinfo->qdepth - 2); devinfo 934 drivers/usb/storage/uas.c static int uas_configure_endpoints(struct uas_dev_info *devinfo) devinfo 937 drivers/usb/storage/uas.c struct usb_device *udev = devinfo->udev; devinfo 940 drivers/usb/storage/uas.c r = uas_find_endpoints(devinfo->intf->cur_altsetting, eps); devinfo 944 drivers/usb/storage/uas.c devinfo->cmd_pipe = usb_sndbulkpipe(udev, devinfo 946 drivers/usb/storage/uas.c devinfo->status_pipe = usb_rcvbulkpipe(udev, devinfo 948 drivers/usb/storage/uas.c devinfo->data_in_pipe = usb_rcvbulkpipe(udev, devinfo 950 drivers/usb/storage/uas.c devinfo->data_out_pipe = usb_sndbulkpipe(udev, devinfo 954 drivers/usb/storage/uas.c devinfo->qdepth = 32; devinfo 955 drivers/usb/storage/uas.c devinfo->use_streams = 0; devinfo 957 drivers/usb/storage/uas.c devinfo->qdepth = usb_alloc_streams(devinfo->intf, eps + 1, devinfo 959 drivers/usb/storage/uas.c if (devinfo->qdepth < 0) devinfo 960 drivers/usb/storage/uas.c return devinfo->qdepth; devinfo 961 drivers/usb/storage/uas.c devinfo->use_streams = 1; devinfo 967 drivers/usb/storage/uas.c static void uas_free_streams(struct uas_dev_info *devinfo) devinfo 969 drivers/usb/storage/uas.c struct usb_device *udev = devinfo->udev; devinfo 972 drivers/usb/storage/uas.c eps[0] = usb_pipe_endpoint(udev, devinfo->status_pipe); devinfo 973 drivers/usb/storage/uas.c eps[1] = usb_pipe_endpoint(udev, devinfo->data_in_pipe); devinfo 974 drivers/usb/storage/uas.c eps[2] = usb_pipe_endpoint(udev, devinfo->data_out_pipe); devinfo 975 drivers/usb/storage/uas.c usb_free_streams(devinfo->intf, eps, 3, GFP_NOIO); devinfo 982 drivers/usb/storage/uas.c struct uas_dev_info *devinfo; devinfo 1003 drivers/usb/storage/uas.c devinfo = (struct uas_dev_info *)shost->hostdata; devinfo 1004 drivers/usb/storage/uas.c devinfo->intf = intf; devinfo 1005 drivers/usb/storage/uas.c devinfo->udev = udev; devinfo 1006 drivers/usb/storage/uas.c devinfo->resetting = 0; devinfo 1007 drivers/usb/storage/uas.c devinfo->shutdown = 0; devinfo 1008 drivers/usb/storage/uas.c devinfo->flags = dev_flags; devinfo 1009 drivers/usb/storage/uas.c init_usb_anchor(&devinfo->cmd_urbs); devinfo 1010 drivers/usb/storage/uas.c init_usb_anchor(&devinfo->sense_urbs); devinfo 1011 drivers/usb/storage/uas.c init_usb_anchor(&devinfo->data_urbs); devinfo 1012 drivers/usb/storage/uas.c spin_lock_init(&devinfo->lock); devinfo 1013 drivers/usb/storage/uas.c INIT_WORK(&devinfo->work, uas_do_work); devinfo 1014 drivers/usb/storage/uas.c INIT_WORK(&devinfo->scan_work, uas_scan_work); devinfo 1016 drivers/usb/storage/uas.c result = uas_configure_endpoints(devinfo); devinfo 1024 drivers/usb/storage/uas.c shost->can_queue = devinfo->qdepth - 2; devinfo 1032 drivers/usb/storage/uas.c schedule_work(&devinfo->scan_work); devinfo 1037 drivers/usb/storage/uas.c uas_free_streams(devinfo); devinfo 1046 drivers/usb/storage/uas.c static int uas_cmnd_list_empty(struct uas_dev_info *devinfo) devinfo 1051 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 1053 drivers/usb/storage/uas.c for (i = 0; i < devinfo->qdepth; i++) { devinfo 1054 drivers/usb/storage/uas.c if (devinfo->cmnd[i]) { devinfo 1060 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 1070 drivers/usb/storage/uas.c static int uas_wait_for_pending_cmnds(struct uas_dev_info *devinfo) devinfo 1077 drivers/usb/storage/uas.c flush_work(&devinfo->work); devinfo 1079 drivers/usb/storage/uas.c r = usb_wait_anchor_empty_timeout(&devinfo->sense_urbs, 5000); devinfo 1083 drivers/usb/storage/uas.c r = usb_wait_anchor_empty_timeout(&devinfo->data_urbs, 500); devinfo 1089 drivers/usb/storage/uas.c } while (!uas_cmnd_list_empty(devinfo)); devinfo 1097 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; devinfo 1100 drivers/usb/storage/uas.c if (devinfo->shutdown) devinfo 1108 drivers/usb/storage/uas.c if (uas_wait_for_pending_cmnds(devinfo) != 0) { devinfo 1114 drivers/usb/storage/uas.c uas_free_streams(devinfo); devinfo 1122 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; devinfo 1126 drivers/usb/storage/uas.c if (devinfo->shutdown) devinfo 1129 drivers/usb/storage/uas.c err = uas_configure_endpoints(devinfo); devinfo 1148 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; devinfo 1150 drivers/usb/storage/uas.c if (uas_wait_for_pending_cmnds(devinfo) != 0) { devinfo 1166 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; devinfo 1170 drivers/usb/storage/uas.c err = uas_configure_endpoints(devinfo); devinfo 1188 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; devinfo 1191 drivers/usb/storage/uas.c spin_lock_irqsave(&devinfo->lock, flags); devinfo 1192 drivers/usb/storage/uas.c devinfo->resetting = 1; devinfo 1193 drivers/usb/storage/uas.c spin_unlock_irqrestore(&devinfo->lock, flags); devinfo 1195 drivers/usb/storage/uas.c cancel_work_sync(&devinfo->work); devinfo 1196 drivers/usb/storage/uas.c usb_kill_anchored_urbs(&devinfo->cmd_urbs); devinfo 1197 drivers/usb/storage/uas.c usb_kill_anchored_urbs(&devinfo->sense_urbs); devinfo 1198 drivers/usb/storage/uas.c usb_kill_anchored_urbs(&devinfo->data_urbs); devinfo 1199 drivers/usb/storage/uas.c uas_zap_pending(devinfo, DID_NO_CONNECT); devinfo 1205 drivers/usb/storage/uas.c cancel_work_sync(&devinfo->scan_work); devinfo 1208 drivers/usb/storage/uas.c uas_free_streams(devinfo); devinfo 1222 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; devinfo 1227 drivers/usb/storage/uas.c devinfo->shutdown = 1; devinfo 1228 drivers/usb/storage/uas.c uas_free_streams(devinfo); devinfo 416 drivers/visorbus/visorbus_main.c static void vbuschannel_print_devinfo(struct visor_vbus_deviceinfo *devinfo, devinfo 420 drivers/visorbus/visorbus_main.c if (!isprint(devinfo->devtype[0])) devinfo 431 drivers/visorbus/visorbus_main.c seq_printf(seq, "%-*.*s ", (int)sizeof(devinfo->devtype), devinfo 432 drivers/visorbus/visorbus_main.c (int)sizeof(devinfo->devtype), devinfo->devtype); devinfo 433 drivers/visorbus/visorbus_main.c seq_printf(seq, "%-*.*s ", (int)sizeof(devinfo->drvname), devinfo 434 drivers/visorbus/visorbus_main.c (int)sizeof(devinfo->drvname), devinfo->drvname); devinfo 435 drivers/visorbus/visorbus_main.c seq_printf(seq, "%.*s\n", (int)sizeof(devinfo->infostrs), devinfo 436 drivers/visorbus/visorbus_main.c devinfo->infostrs); devinfo 270 fs/fuse/cuse.c static int cuse_parse_devinfo(char *p, size_t len, struct cuse_devinfo *devinfo) devinfo 283 fs/fuse/cuse.c devinfo->name = val; devinfo 288 fs/fuse/cuse.c if (!devinfo->name || !strlen(devinfo->name)) { devinfo 324 fs/fuse/cuse.c struct cuse_devinfo devinfo = { }; devinfo 341 fs/fuse/cuse.c &devinfo); devinfo 348 fs/fuse/cuse.c rc = alloc_chrdev_region(&devt, MINOR(devt), 1, devinfo.name); devinfo 350 fs/fuse/cuse.c rc = register_chrdev_region(devt, 1, devinfo.name); devinfo 368 fs/fuse/cuse.c dev_set_name(dev, "%s", devinfo.name); devinfo 38 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs42_layoutstat_devinfo *devinfo, devinfo 41 fs/nfs/flexfilelayout/flexfilelayout.c const struct nfs42_layoutstat_devinfo *devinfo, devinfo 2035 fs/nfs/flexfilelayout/flexfilelayout.c const struct nfs42_layoutstat_devinfo *devinfo) devinfo 2040 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_encode_hyper(p, devinfo->offset); devinfo 2041 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_encode_hyper(p, devinfo->length); devinfo 2044 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_encode_hyper(p, devinfo->read_count); devinfo 2045 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_encode_hyper(p, devinfo->read_bytes); devinfo 2046 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_encode_hyper(p, devinfo->write_count); devinfo 2047 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_encode_hyper(p, devinfo->write_bytes); devinfo 2048 fs/nfs/flexfilelayout/flexfilelayout.c encode_opaque_fixed(xdr, devinfo->dev_id.data, NFS4_DEVICEID4_SIZE); devinfo 2054 fs/nfs/flexfilelayout/flexfilelayout.c const struct nfs42_layoutstat_devinfo *devinfo) devinfo 2056 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); devinfo 2057 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_layoutupdate(xdr, devinfo, devinfo 2058 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->ld_private.data); devinfo 2074 fs/nfs/flexfilelayout/flexfilelayout.c &ff_args->devinfo[i]); devinfo 2078 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_free_iostats_array(struct nfs42_layoutstat_devinfo *devinfo, devinfo 2084 fs/nfs/flexfilelayout/flexfilelayout.c if (!devinfo[i].ld_private.ops) devinfo 2086 fs/nfs/flexfilelayout/flexfilelayout.c if (!devinfo[i].ld_private.ops->free) devinfo 2088 fs/nfs/flexfilelayout/flexfilelayout.c devinfo[i].ld_private.ops->free(&devinfo[i].ld_private); devinfo 2147 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_free_iostats_array(ff_args->devinfo, ff_args->num_dev); devinfo 2178 fs/nfs/flexfilelayout/flexfilelayout.c &ff_args->devinfo[0], ARRAY_SIZE(ff_args->devinfo)); devinfo 2357 fs/nfs/flexfilelayout/flexfilelayout.c const struct nfs42_layoutstat_devinfo *devinfo, devinfo 2390 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs42_layoutstat_devinfo *devinfo = container_of(opaque, devinfo 2396 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_layoutupdate(xdr, devinfo, opaque->data); devinfo 2416 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs42_layoutstat_devinfo *devinfo, devinfo 2435 fs/nfs/flexfilelayout/flexfilelayout.c memcpy(&devinfo->dev_id, &dev->deviceid, NFS4_DEVICEID4_SIZE); devinfo 2436 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->offset = 0; devinfo 2437 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->length = NFS4_MAX_UINT64; devinfo 2439 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->read_count = mirror->read_stat.io_stat.ops_completed; devinfo 2440 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->read_bytes = mirror->read_stat.io_stat.bytes_completed; devinfo 2441 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->write_count = mirror->write_stat.io_stat.ops_completed; devinfo 2442 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->write_bytes = mirror->write_stat.io_stat.bytes_completed; devinfo 2444 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->layout_type = LAYOUT_FLEX_FILES; devinfo 2445 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->ld_private.ops = &layoutstat_ops; devinfo 2446 fs/nfs/flexfilelayout/flexfilelayout.c devinfo->ld_private.data = mirror; devinfo 2448 fs/nfs/flexfilelayout/flexfilelayout.c devinfo++; devinfo 2461 fs/nfs/flexfilelayout/flexfilelayout.c args->devinfo = kmalloc_array(dev_count, sizeof(*args->devinfo), GFP_NOIO); devinfo 2462 fs/nfs/flexfilelayout/flexfilelayout.c if (!args->devinfo) devinfo 2468 fs/nfs/flexfilelayout/flexfilelayout.c &args->devinfo[0], dev_count); devinfo 2471 fs/nfs/flexfilelayout/flexfilelayout.c kfree(args->devinfo); devinfo 2472 fs/nfs/flexfilelayout/flexfilelayout.c args->devinfo = NULL; devinfo 115 fs/nfs/flexfilelayout/flexfilelayout.h struct nfs42_layoutstat_devinfo devinfo[FF_LAYOUTSTATS_MAXDEV]; devinfo 619 fs/nfs/nfs42proc.c struct nfs42_layoutstat_devinfo *devinfo = data->args.devinfo; devinfo 623 fs/nfs/nfs42proc.c if (devinfo[i].ld_private.ops && devinfo[i].ld_private.ops->free) devinfo 624 fs/nfs/nfs42proc.c devinfo[i].ld_private.ops->free(&devinfo[i].ld_private); devinfo 632 fs/nfs/nfs42proc.c kfree(data->args.devinfo); devinfo 214 fs/nfs/nfs42xdr.c struct nfs42_layoutstat_devinfo *devinfo, devinfo 221 fs/nfs/nfs42xdr.c p = xdr_encode_hyper(p, devinfo->offset); devinfo 222 fs/nfs/nfs42xdr.c p = xdr_encode_hyper(p, devinfo->length); devinfo 225 fs/nfs/nfs42xdr.c p = xdr_encode_hyper(p, devinfo->read_count); devinfo 226 fs/nfs/nfs42xdr.c p = xdr_encode_hyper(p, devinfo->read_bytes); devinfo 227 fs/nfs/nfs42xdr.c p = xdr_encode_hyper(p, devinfo->write_count); devinfo 228 fs/nfs/nfs42xdr.c p = xdr_encode_hyper(p, devinfo->write_bytes); devinfo 229 fs/nfs/nfs42xdr.c p = xdr_encode_opaque_fixed(p, devinfo->dev_id.data, devinfo 232 fs/nfs/nfs42xdr.c *p++ = cpu_to_be32(devinfo->layout_type); devinfo 233 fs/nfs/nfs42xdr.c if (devinfo->ld_private.ops) devinfo 234 fs/nfs/nfs42xdr.c devinfo->ld_private.ops->encode(xdr, args, devinfo 235 fs/nfs/nfs42xdr.c &devinfo->ld_private); devinfo 415 fs/nfs/nfs42xdr.c encode_layoutstats(xdr, args, &args->devinfo[i], &hdr); devinfo 75 include/linux/maple.h struct maple_devinfo devinfo; devinfo 371 include/linux/nfs_xdr.h struct nfs42_layoutstat_devinfo *devinfo; devinfo 568 include/linux/usb/hcd.h u16 devinfo; devinfo 319 security/apparmor/mount.c const char *devinfo) devinfo 339 security/apparmor/mount.c info = devinfo; devinfo 38 sound/core/seq/oss/seq_oss_midi.c struct seq_oss_devinfo *devinfo; /* assigned OSSseq device */ devinfo 325 sound/core/seq/oss/seq_oss_midi.c if (mdev->opened && mdev->devinfo != dp) { devinfo 373 sound/core/seq/oss/seq_oss_midi.c mdev->devinfo = dp; devinfo 389 sound/core/seq/oss/seq_oss_midi.c if (! mdev->opened || mdev->devinfo != dp) { devinfo 409 sound/core/seq/oss/seq_oss_midi.c mdev->devinfo = NULL;