/Linux-v4.19/drivers/ide/ |
D | ide-probe.c | 194 ide_hwif_t *hwif = drive->hwif; in do_identify() local 202 hwif->tp_ops->input_data(drive, NULL, id, SECTOR_SIZE); in do_identify() 253 ide_hwif_t *hwif = drive->hwif; in ide_dev_read_id() local 254 struct ide_io_ports *io_ports = &hwif->io_ports; in ide_dev_read_id() 255 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in ide_dev_read_id() 265 tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS); in ide_dev_read_id() 274 (hwif->host_flags & IDE_HFLAG_BROKEN_ALTSTATUS) == 0) { in ide_dev_read_id() 275 a = tp_ops->read_altstatus(hwif); in ide_dev_read_id() 276 s = tp_ops->read_status(hwif); in ide_dev_read_id() 299 tp_ops->exec_command(hwif, cmd); in ide_dev_read_id() [all …]
|
D | ide-dma-sff.c | 22 ide_hwif_t *hwif = drive->hwif; in config_drive_for_dma() local 26 if (hwif->host_flags & IDE_HFLAG_NO_ATAPI_DMA) in config_drive_for_dma() 53 u8 ide_dma_sff_read_status(ide_hwif_t *hwif) in ide_dma_sff_read_status() argument 55 unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; in ide_dma_sff_read_status() 57 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_dma_sff_read_status() 64 static void ide_dma_sff_write_status(ide_hwif_t *hwif, u8 val) in ide_dma_sff_write_status() argument 66 unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; in ide_dma_sff_write_status() 68 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_dma_sff_write_status() 84 ide_hwif_t *hwif = drive->hwif; in ide_dma_host_set() local 86 u8 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ide_dma_host_set() [all …]
|
D | ide-io.c | 76 const struct ide_tp_ops *tp_ops = drive->hwif->tp_ops; in ide_complete_cmd() 117 ide_hwif_t *hwif = drive->hwif; in ide_complete_rq() local 118 struct request *rq = hwif->rq; in ide_complete_rq() 130 hwif->rq = NULL; in ide_complete_rq() 225 ide_hwif_t *hwif = drive->hwif; in ide_map_sg() local 226 struct scatterlist *sg = hwif->sg_table; in ide_map_sg() 314 drive->hwif->name, (unsigned long) rq); in start_request() 326 drive->hwif->tp_ops->dev_select(drive); in start_request() 395 static inline int ide_lock_port(ide_hwif_t *hwif) in ide_lock_port() argument 397 if (hwif->busy) in ide_lock_port() [all …]
|
D | trm290.c | 147 ide_hwif_t *hwif = drive->hwif; in trm290_prepare_drive() local 156 if (reg != hwif->select_data) { in trm290_prepare_drive() 157 hwif->select_data = reg; in trm290_prepare_drive() 159 outb(0x51 | (hwif->channel << 3), hwif->config_data + 1); in trm290_prepare_drive() 160 outw(reg & 0xff, hwif->config_data); in trm290_prepare_drive() 165 reg = inw(hwif->config_data + 3); in trm290_prepare_drive() 167 reg &= ~(1 << hwif->channel); in trm290_prepare_drive() 168 outw(reg, hwif->config_data + 3); in trm290_prepare_drive() 178 outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr); in trm290_dev_select() 194 ide_hwif_t *hwif = drive->hwif; in trm290_dma_setup() local [all …]
|
D | ide-dma.c | 93 ide_hwif_t *hwif = drive->hwif; in ide_dma_intr() local 94 struct ide_cmd *cmd = &hwif->cmd; in ide_dma_intr() 98 dma_stat = hwif->dma_ops->dma_end(drive); in ide_dma_intr() 100 stat = hwif->tp_ops->read_status(hwif); in ide_dma_intr() 135 ide_hwif_t *hwif = drive->hwif; in ide_dma_map_sg() local 136 struct scatterlist *sg = hwif->sg_table; in ide_dma_map_sg() 144 i = dma_map_sg(hwif->dev, sg, cmd->sg_nents, cmd->sg_dma_direction); in ide_dma_map_sg() 166 ide_hwif_t *hwif = drive->hwif; in ide_dma_unmap_sg() local 168 dma_unmap_sg(hwif->dev, hwif->sg_table, cmd->orig_sg_nents, in ide_dma_unmap_sg() 184 drive->hwif->dma_ops->dma_host_set(drive, 0); in ide_dma_off_quietly() [all …]
|
D | ide-eh.c | 10 ide_hwif_t *hwif = drive->hwif; in ide_ata_error() local 21 hwif->tp_ops->read_status(hwif) == ATA_CMD_INIT_DEV_PARAMS) in ide_ata_error() 36 (hwif->host_flags & IDE_HFLAG_ERROR_STOPS_FIFO) == 0) { in ide_ata_error() 47 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ)) in ide_ata_error() 66 ide_hwif_t *hwif = drive->hwif; in ide_atapi_error() local 76 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ)) in ide_atapi_error() 78 hwif->tp_ops->exec_command(hwif, ATA_CMD_IDLEIMMEDIATE); in ide_atapi_error() 121 rq = drive->hwif->rq; in ide_error() 148 struct request *rq = drive->hwif->rq; in ide_complete_drive_reset() 169 ide_hwif_t *hwif = drive->hwif; in atapi_reset_pollfunc() local [all …]
|
D | ns87415.c | 54 static u8 superio_read_status(ide_hwif_t *hwif) in superio_read_status() argument 56 return superio_ide_inb(hwif->io_ports.status_addr); in superio_read_status() 59 static u8 superio_dma_sff_read_status(ide_hwif_t *hwif) in superio_dma_sff_read_status() argument 61 return superio_ide_inb(hwif->dma_base + ATA_DMA_STATUS); in superio_dma_sff_read_status() 67 struct ide_io_ports *io_ports = &drive->hwif->io_ports; in superio_tf_read() 99 static void superio_init_iops(struct hwif_s *hwif) in superio_init_iops() argument 101 struct pci_dev *pdev = to_pci_dev(hwif->dev); in superio_init_iops() 103 u8 port = hwif->channel, tmp; in superio_init_iops() 124 ide_hwif_t *hwif = drive->hwif; in ns87415_prepare_drive() local 125 struct pci_dev *dev = to_pci_dev(hwif->dev); in ns87415_prepare_drive() [all …]
|
D | ide-iops.c | 32 const struct ide_port_ops *port_ops = drive->hwif->port_ops; in SELECT_MASK() 42 drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_ERROR); in ide_read_error() 108 ide_hwif_t *hwif = drive->hwif; in __ide_wait_stat() local 109 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in __ide_wait_stat() 116 stat = tp_ops->read_status(hwif); in __ide_wait_stat() 124 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { in __ide_wait_stat() 131 stat = tp_ops->read_status(hwif); in __ide_wait_stat() 153 stat = tp_ops->read_status(hwif); in __ide_wait_stat() 235 ide_hwif_t *hwif = drive->hwif; in eighty_ninty_three() local 239 if (hwif->cbl == ATA_CBL_SATA || hwif->cbl == ATA_CBL_PATA40_SHORT) in eighty_ninty_three() [all …]
|
D | ide-io-std.c | 41 void ide_exec_command(ide_hwif_t *hwif, u8 cmd) in ide_exec_command() argument 43 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_exec_command() 44 writeb(cmd, (void __iomem *)hwif->io_ports.command_addr); in ide_exec_command() 46 outb(cmd, hwif->io_ports.command_addr); in ide_exec_command() 50 u8 ide_read_status(ide_hwif_t *hwif) in ide_read_status() argument 52 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_read_status() 53 return readb((void __iomem *)hwif->io_ports.status_addr); in ide_read_status() 55 return inb(hwif->io_ports.status_addr); in ide_read_status() 59 u8 ide_read_altstatus(ide_hwif_t *hwif) in ide_read_altstatus() argument 61 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_read_altstatus() [all …]
|
D | ide-xfer-mode.c | 70 if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0) in ide_get_best_pio_mode() 116 if (pio == 0 && (drive->hwif->port_flags & IDE_PFLAG_PROBING)) in ide_pio_need_iordy() 124 ide_hwif_t *hwif = drive->hwif; in ide_set_pio_mode() local 125 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_pio_mode() 127 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) in ide_set_pio_mode() 139 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode() 143 if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { in ide_set_pio_mode() 147 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode() 151 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode() 158 ide_hwif_t *hwif = drive->hwif; in ide_set_dma_mode() local [all …]
|
D | tc86c001.c | 17 static void tc86c001_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tc86c001_set_mode() argument 19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); in tc86c001_set_mode() 45 static void tc86c001_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tc86c001_set_pio_mode() argument 48 tc86c001_set_mode(hwif, drive); in tc86c001_set_pio_mode() 67 ide_hwif_t *hwif = drive->hwif; in tc86c001_timer_expiry() local 68 ide_expiry_t *expiry = ide_get_hwifdata(hwif); in tc86c001_timer_expiry() 69 u8 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in tc86c001_timer_expiry() 72 hwif->expiry = expiry; in tc86c001_timer_expiry() 75 unsigned long sc_base = hwif->config_data; in tc86c001_timer_expiry() 77 u8 dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); in tc86c001_timer_expiry() [all …]
|
D | siimage.c | 76 static inline int is_sata(ide_hwif_t *hwif) in is_sata() argument 78 return pdev_is_sata(to_pci_dev(hwif->dev)); in is_sata() 92 static unsigned long siimage_selreg(ide_hwif_t *hwif, int r) in siimage_selreg() argument 94 unsigned long base = (unsigned long)hwif->hwif_data; in siimage_selreg() 97 if (hwif->host_flags & IDE_HFLAG_MMIO) in siimage_selreg() 98 base += hwif->channel << 6; in siimage_selreg() 100 base += hwif->channel << 4; in siimage_selreg() 116 ide_hwif_t *hwif = drive->hwif; in siimage_seldev() local 117 unsigned long base = (unsigned long)hwif->hwif_data; in siimage_seldev() 121 if (hwif->host_flags & IDE_HFLAG_MMIO) in siimage_seldev() [all …]
|
D | sgiioc4.c | 108 static int sgiioc4_checkirq(ide_hwif_t *hwif) in sgiioc4_checkirq() argument 110 unsigned long intr_addr = hwif->io_ports.irq_addr + IOC4_INTR_REG * 4; in sgiioc4_checkirq() 123 ide_hwif_t *hwif = drive->hwif; in sgiioc4_clearirq() local 124 struct ide_io_ports *io_ports = &hwif->io_ports; in sgiioc4_clearirq() 137 u8 stat = sgiioc4_read_status(hwif); in sgiioc4_clearirq() 140 stat = sgiioc4_read_status(hwif); in sgiioc4_clearirq() 143 stat = sgiioc4_read_status(hwif); in sgiioc4_clearirq() 147 struct pci_dev *dev = to_pci_dev(hwif->dev); in sgiioc4_clearirq() 179 ide_hwif_t *hwif = drive->hwif; in sgiioc4_dma_start() local 180 unsigned long ioc4_dma_addr = hwif->dma_base + IOC4_DMA_CTRL * 4; in sgiioc4_dma_start() [all …]
|
D | ide-acpi.c | 39 ide_hwif_t *hwif; member 96 bool ide_port_acpi(ide_hwif_t *hwif) in ide_port_acpi() argument 98 return ide_noacpi == 0 && hwif->acpidata; in ide_port_acpi() 180 static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif) in ide_acpi_hwif_get_handle() argument 182 struct device *dev = hwif->gendev.parent; in ide_acpi_hwif_get_handle() 188 DEBPRINT("ENTER: device %s\n", hwif->name); in ide_acpi_hwif_get_handle() 191 DEBPRINT("no PCI device for %s\n", hwif->name); in ide_acpi_hwif_get_handle() 204 chan_handle = acpi_get_child(dev_handle, hwif->channel); in ide_acpi_hwif_get_handle() 206 hwif->channel, chan_handle); in ide_acpi_hwif_get_handle() 397 void ide_acpi_get_timing(ide_hwif_t *hwif) in ide_acpi_get_timing() argument [all …]
|
D | it821x.c | 114 ide_hwif_t *hwif = drive->hwif; in it821x_program() local 115 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_program() 116 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_program() 117 int channel = hwif->channel; in it821x_program() 140 ide_hwif_t *hwif = drive->hwif; in it821x_program_udma() local 141 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_program_udma() 142 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_program_udma() 143 int channel = hwif->channel; in it821x_program_udma() 170 ide_hwif_t *hwif = drive->hwif; in it821x_clock_strategy() local 171 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_clock_strategy() [all …]
|
D | tx4939ide.c | 105 #define TX4939IDE_BASE(hwif) ((void __iomem *)(hwif)->extra_base) argument 107 static void tx4939ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tx4939ide_set_pio_mode() argument 124 hwif->select_data = (hwif->select_data & ~mask) | val; in tx4939ide_set_pio_mode() 128 static void tx4939ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tx4939ide_set_dma_mode() argument 145 hwif->select_data = (hwif->select_data & ~mask) | val; in tx4939ide_set_dma_mode() 149 static u16 tx4939ide_check_error_ints(ide_hwif_t *hwif) in tx4939ide_check_error_ints() argument 151 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_check_error_ints() 167 hwif->name, ctl, in tx4939ide_check_error_ints() 176 ide_hwif_t *hwif; in tx4939ide_clear_irq() local 186 hwif = drive->hwif; in tx4939ide_clear_irq() [all …]
|
D | cmd64x.c | 56 ide_hwif_t *hwif = drive->hwif; in cmd64x_program_timings() local 57 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in cmd64x_program_timings() 97 if (hwif->channel) { in cmd64x_program_timings() 121 if (hwif->channel) in cmd64x_program_timings() 133 static void cmd64x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cmd64x_set_pio_mode() argument 147 static void cmd64x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cmd64x_set_dma_mode() argument 149 struct pci_dev *dev = to_pci_dev(hwif->dev); in cmd64x_set_dma_mode() 151 u8 regU = 0, pciU = hwif->channel ? UDIDETCR1 : UDIDETCR0; in cmd64x_set_dma_mode() 188 ide_hwif_t *hwif = drive->hwif; in cmd648_clear_irq() local 189 struct pci_dev *dev = to_pci_dev(hwif->dev); in cmd648_clear_irq() [all …]
|
D | pdc202xx_old.c | 24 static void pdc202xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pdc202xx_set_mode() argument 26 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdc202xx_set_mode() 79 static void pdc202xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pdc202xx_set_pio_mode() argument 82 pdc202xx_set_mode(hwif, drive); in pdc202xx_set_pio_mode() 85 static int pdc202xx_test_irq(ide_hwif_t *hwif) in pdc202xx_test_irq() argument 87 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdc202xx_test_irq() 91 if (hwif->channel) { in pdc202xx_test_irq() 106 static u8 pdc2026x_cable_detect(ide_hwif_t *hwif) in pdc2026x_cable_detect() argument 108 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdc2026x_cable_detect() 109 u16 CIS, mask = hwif->channel ? (1 << 11) : (1 << 10); in pdc2026x_cable_detect() [all …]
|
D | hpt366.c | 554 ide_hwif_t *hwif = drive->hwif; in hpt3xx_udma_filter() local 555 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_udma_filter() 556 u8 mask = hwif->ultra_mask; in hpt3xx_udma_filter() 594 ide_hwif_t *hwif = drive->hwif; in hpt3xx_mdma_filter() local 595 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_mdma_filter() 627 static void hpt3xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_mode() argument 629 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt3xx_set_mode() 630 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_set_mode() 651 static void hpt3xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_pio_mode() argument 654 hpt3xx_set_mode(hwif, drive); in hpt3xx_set_pio_mode() [all …]
|
D | alim15x3.c | 51 static void ali_fifo_control(ide_hwif_t *hwif, ide_drive_t *drive, int on) in ali_fifo_control() argument 53 struct pci_dev *pdev = to_pci_dev(hwif->dev); in ali_fifo_control() 54 int pio_fifo = 0x54 + hwif->channel; in ali_fifo_control() 64 static void ali_program_timings(ide_hwif_t *hwif, ide_drive_t *drive, in ali_program_timings() argument 67 struct pci_dev *dev = to_pci_dev(hwif->dev); in ali_program_timings() 68 int port = hwif->channel ? 0x5c : 0x58; in ali_program_timings() 69 int udmat = 0x56 + hwif->channel; in ali_program_timings() 102 static void ali_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in ali_set_pio_mode() argument 126 ali_fifo_control(hwif, drive, (drive->media == ide_disk) ? 0x05 : 0x00); in ali_set_pio_mode() 128 ali_program_timings(hwif, drive, &t, 0); in ali_set_pio_mode() [all …]
|
/Linux-v4.19/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_if.c | 42 int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index, in hinic_msix_attr_set() argument 49 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_set() 60 hinic_hwif_write_reg(hwif, addr, msix_ctrl); in hinic_msix_attr_set() 76 int hinic_msix_attr_get(struct hinic_hwif *hwif, u16 msix_index, in hinic_msix_attr_get() argument 83 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_get() 87 val = hinic_hwif_read_reg(hwif, addr); in hinic_msix_attr_get() 104 int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index) in hinic_msix_attr_cnt_clear() argument 108 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_cnt_clear() 114 hinic_hwif_write_reg(hwif, addr, msix_ctrl); in hinic_msix_attr_cnt_clear() 125 void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action) in hinic_set_pf_action() argument [all …]
|
D | hinic_hw_dev.c | 85 if (!HINIC_IS_PF(hwdev->hwif) && !HINIC_IS_PPF(hwdev->hwif)) in get_capability() 91 num_aeqs = HINIC_HWIF_NUM_AEQS(hwdev->hwif); in get_capability() 92 num_ceqs = HINIC_HWIF_NUM_CEQS(hwdev->hwif); in get_capability() 93 num_irqs = HINIC_HWIF_NUM_IRQS(hwdev->hwif); in get_capability() 123 struct hinic_hwif *hwif = hwdev->hwif; in get_cap_from_fw() local 124 struct pci_dev *pdev = hwif->pdev; in get_cap_from_fw() 151 struct hinic_hwif *hwif = hwdev->hwif; in get_dev_cap() local 152 struct pci_dev *pdev = hwif->pdev; in get_dev_cap() 156 switch (HINIC_FUNC_TYPE(hwif)) { in get_dev_cap() 184 struct hinic_hwif *hwif = hwdev->hwif; in init_msix() local [all …]
|
D | hinic_hw_if.h | 143 #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs) argument 144 #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs) argument 145 #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs) argument 146 #define HINIC_HWIF_FUNC_IDX(hwif) ((hwif)->attr.func_idx) argument 147 #define HINIC_HWIF_PCI_INTF(hwif) ((hwif)->attr.pci_intf_idx) argument 148 #define HINIC_HWIF_PF_IDX(hwif) ((hwif)->attr.pf_idx) argument 150 #define HINIC_FUNC_TYPE(hwif) ((hwif)->attr.func_type) argument 151 #define HINIC_IS_PF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PF) argument 152 #define HINIC_IS_PPF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PPF) argument 233 static inline u32 hinic_hwif_read_reg(struct hinic_hwif *hwif, u32 reg) in hinic_hwif_read_reg() argument [all …]
|
D | hinic_hw_api_cmd.c | 101 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx() local 105 prod_idx = hinic_hwif_read_reg(hwif, addr); in set_prod_idx() 111 hinic_hwif_write_reg(hwif, addr, prod_idx); in set_prod_idx() 119 val = hinic_hwif_read_reg(chain->hwif, addr); in get_hw_cons_idx() 132 struct hinic_hwif *hwif = chain->hwif; in chain_busy() local 133 struct pci_dev *pdev = hwif->pdev; in chain_busy() 215 struct hinic_hwif *hwif = chain->hwif; in prepare_api_cmd() local 216 struct pci_dev *pdev = hwif->pdev; in prepare_api_cmd() 277 struct hinic_hwif *hwif = chain->hwif; in api_cmd_status_update() local 278 struct pci_dev *pdev = hwif->pdev; in api_cmd_status_update() [all …]
|
D | hinic_port.c | 52 struct hinic_hwif *hwif = hwdev->hwif; in change_mac() local 53 struct pci_dev *pdev = hwif->pdev; in change_mac() 68 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in change_mac() 123 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac() local 124 struct pci_dev *pdev = hwif->pdev; in hinic_port_get_mac() 128 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_get_mac() 155 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu() local 156 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_mtu() 171 port_mtu_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_mtu() 198 port_vlan_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_add_vlan() [all …]
|