Home
last modified time | relevance | path

Searched refs:hwif (Results 1 – 25 of 110) sorted by relevance

12345

/Linux-v5.10/drivers/ide/
Dide-probe.c195 ide_hwif_t *hwif = drive->hwif; in do_identify() local
203 hwif->tp_ops->input_data(drive, NULL, id, SECTOR_SIZE); in do_identify()
254 ide_hwif_t *hwif = drive->hwif; in ide_dev_read_id() local
255 struct ide_io_ports *io_ports = &hwif->io_ports; in ide_dev_read_id()
256 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in ide_dev_read_id()
266 tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS); in ide_dev_read_id()
275 (hwif->host_flags & IDE_HFLAG_BROKEN_ALTSTATUS) == 0) { in ide_dev_read_id()
276 a = tp_ops->read_altstatus(hwif); in ide_dev_read_id()
277 s = tp_ops->read_status(hwif); in ide_dev_read_id()
300 tp_ops->exec_command(hwif, cmd); in ide_dev_read_id()
[all …]
Dide-dma-sff.c23 ide_hwif_t *hwif = drive->hwif; in config_drive_for_dma() local
27 if (hwif->host_flags & IDE_HFLAG_NO_ATAPI_DMA) in config_drive_for_dma()
54 u8 ide_dma_sff_read_status(ide_hwif_t *hwif) in ide_dma_sff_read_status() argument
56 unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; in ide_dma_sff_read_status()
58 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_dma_sff_read_status()
65 static void ide_dma_sff_write_status(ide_hwif_t *hwif, u8 val) in ide_dma_sff_write_status() argument
67 unsigned long addr = hwif->dma_base + ATA_DMA_STATUS; in ide_dma_sff_write_status()
69 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_dma_sff_write_status()
85 ide_hwif_t *hwif = drive->hwif; in ide_dma_host_set() local
87 u8 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ide_dma_host_set()
[all …]
Dide-io.c86 const struct ide_tp_ops *tp_ops = drive->hwif->tp_ops; in ide_complete_cmd()
127 ide_hwif_t *hwif = drive->hwif; in ide_complete_rq() local
128 struct request *rq = hwif->rq; in ide_complete_rq()
140 hwif->rq = NULL; in ide_complete_rq()
235 ide_hwif_t *hwif = drive->hwif; in ide_map_sg() local
236 struct scatterlist *sg = hwif->sg_table, *last_sg = NULL; in ide_map_sg()
325 drive->hwif->name, (unsigned long) rq); in start_request()
340 drive->hwif->tp_ops->dev_select(drive); in start_request()
409 static inline int ide_lock_port(ide_hwif_t *hwif) in ide_lock_port() argument
411 if (hwif->busy) in ide_lock_port()
[all …]
Dtrm290.c147 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 …]
Dide-dma.c93 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 …]
Dide-eh.c11 ide_hwif_t *hwif = drive->hwif; in ide_ata_error() local
22 hwif->tp_ops->read_status(hwif) == ATA_CMD_INIT_DEV_PARAMS) in ide_ata_error()
37 (hwif->host_flags & IDE_HFLAG_ERROR_STOPS_FIFO) == 0) { in ide_ata_error()
48 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ)) in ide_ata_error()
67 ide_hwif_t *hwif = drive->hwif; in ide_atapi_error() local
77 if (hwif->tp_ops->read_status(hwif) & (ATA_BUSY | ATA_DRQ)) in ide_atapi_error()
79 hwif->tp_ops->exec_command(hwif, ATA_CMD_IDLEIMMEDIATE); in ide_atapi_error()
122 rq = drive->hwif->rq; in ide_error()
149 struct request *rq = drive->hwif->rq; in ide_complete_drive_reset()
170 ide_hwif_t *hwif = drive->hwif; in atapi_reset_pollfunc() local
[all …]
Dns87415.c55 static u8 superio_read_status(ide_hwif_t *hwif) in superio_read_status() argument
57 return superio_ide_inb(hwif->io_ports.status_addr); in superio_read_status()
60 static u8 superio_dma_sff_read_status(ide_hwif_t *hwif) in superio_dma_sff_read_status() argument
62 return superio_ide_inb(hwif->dma_base + ATA_DMA_STATUS); in superio_dma_sff_read_status()
68 struct ide_io_ports *io_ports = &drive->hwif->io_ports; in superio_tf_read()
100 static void superio_init_iops(struct hwif_s *hwif) in superio_init_iops() argument
102 struct pci_dev *pdev = to_pci_dev(hwif->dev); in superio_init_iops()
104 u8 port = hwif->channel, tmp; in superio_init_iops()
125 ide_hwif_t *hwif = drive->hwif; in ns87415_prepare_drive() local
126 struct pci_dev *dev = to_pci_dev(hwif->dev); in ns87415_prepare_drive()
[all …]
Dide-iops.c33 const struct ide_port_ops *port_ops = drive->hwif->port_ops; in SELECT_MASK()
43 drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_ERROR); in ide_read_error()
109 ide_hwif_t *hwif = drive->hwif; in __ide_wait_stat() local
110 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in __ide_wait_stat()
117 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
125 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { in __ide_wait_stat()
132 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
154 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
236 ide_hwif_t *hwif = drive->hwif; in eighty_ninty_three() local
240 if (hwif->cbl == ATA_CBL_SATA || hwif->cbl == ATA_CBL_PATA40_SHORT) in eighty_ninty_three()
[all …]
Dide-io-std.c42 void ide_exec_command(ide_hwif_t *hwif, u8 cmd) in ide_exec_command() argument
44 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_exec_command()
45 writeb(cmd, (void __iomem *)hwif->io_ports.command_addr); in ide_exec_command()
47 outb(cmd, hwif->io_ports.command_addr); in ide_exec_command()
51 u8 ide_read_status(ide_hwif_t *hwif) in ide_read_status() argument
53 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_read_status()
54 return readb((void __iomem *)hwif->io_ports.status_addr); in ide_read_status()
56 return inb(hwif->io_ports.status_addr); in ide_read_status()
60 u8 ide_read_altstatus(ide_hwif_t *hwif) in ide_read_altstatus() argument
62 if (hwif->host_flags & IDE_HFLAG_MMIO) in ide_read_altstatus()
[all …]
Dide-xfer-mode.c71 if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0) in ide_get_best_pio_mode()
117 if (pio == 0 && (drive->hwif->port_flags & IDE_PFLAG_PROBING)) in ide_pio_need_iordy()
125 ide_hwif_t *hwif = drive->hwif; in ide_set_pio_mode() local
126 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_pio_mode()
128 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) in ide_set_pio_mode()
140 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode()
144 if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { in ide_set_pio_mode()
148 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode()
152 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode()
159 ide_hwif_t *hwif = drive->hwif; in ide_set_dma_mode() local
[all …]
Dtc86c001.c17 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 …]
Dsiimage.c76 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 …]
Dide-acpi.c39 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 …]
Dit821x.c114 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 …]
Dtx4939ide.c105 #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()
166 hwif->name, ctl, in tx4939ide_check_error_ints()
175 ide_hwif_t *hwif; in tx4939ide_clear_irq() local
185 hwif = drive->hwif; in tx4939ide_clear_irq()
[all …]
Dcmd64x.c57 ide_hwif_t *hwif = drive->hwif; in cmd64x_program_timings() local
58 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in cmd64x_program_timings()
101 if (hwif->channel) { in cmd64x_program_timings()
125 if (hwif->channel) in cmd64x_program_timings()
137 static void cmd64x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cmd64x_set_pio_mode() argument
151 static void cmd64x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cmd64x_set_dma_mode() argument
153 struct pci_dev *dev = to_pci_dev(hwif->dev); in cmd64x_set_dma_mode()
155 u8 regU = 0, pciU = hwif->channel ? UDIDETCR1 : UDIDETCR0; in cmd64x_set_dma_mode()
192 ide_hwif_t *hwif = drive->hwif; in cmd648_clear_irq() local
193 struct pci_dev *dev = to_pci_dev(hwif->dev); in cmd648_clear_irq()
[all …]
Dpdc202xx_old.c25 static void pdc202xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pdc202xx_set_mode() argument
27 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdc202xx_set_mode()
80 static void pdc202xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pdc202xx_set_pio_mode() argument
83 pdc202xx_set_mode(hwif, drive); in pdc202xx_set_pio_mode()
86 static int pdc202xx_test_irq(ide_hwif_t *hwif) in pdc202xx_test_irq() argument
88 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdc202xx_test_irq()
92 if (hwif->channel) { in pdc202xx_test_irq()
107 static u8 pdc2026x_cable_detect(ide_hwif_t *hwif) in pdc2026x_cable_detect() argument
109 struct pci_dev *dev = to_pci_dev(hwif->dev); in pdc2026x_cable_detect()
110 u16 CIS, mask = hwif->channel ? (1 << 11) : (1 << 10); in pdc2026x_cable_detect()
[all …]
Dhpt366.c555 ide_hwif_t *hwif = drive->hwif; in hpt3xx_udma_filter() local
556 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_udma_filter()
557 u8 mask = hwif->ultra_mask; in hpt3xx_udma_filter()
595 ide_hwif_t *hwif = drive->hwif; in hpt3xx_mdma_filter() local
596 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_mdma_filter()
628 static void hpt3xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_mode() argument
630 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt3xx_set_mode()
631 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_set_mode()
652 static void hpt3xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_pio_mode() argument
655 hpt3xx_set_mode(hwif, drive); in hpt3xx_set_pio_mode()
[all …]
Dalim15x3.c51 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 …]
Dide-devsets.c52 if (drive->hwif->dma_ops == NULL) in set_using_dma()
76 static int set_pio_mode_abuse(ide_hwif_t *hwif, u8 req_pio) in set_pio_mode_abuse() argument
85 return (hwif->host_flags & IDE_HFLAG_ABUSE_DMA_MODES) ? 1 : 0; in set_pio_mode_abuse()
88 return (hwif->host_flags & IDE_HFLAG_ABUSE_PREFETCH) ? 1 : 0; in set_pio_mode_abuse()
91 return (hwif->host_flags & IDE_HFLAG_ABUSE_FAST_DEVSEL) ? 1 : 0; in set_pio_mode_abuse()
99 ide_hwif_t *hwif = drive->hwif; in set_pio_mode() local
100 const struct ide_port_ops *port_ops = hwif->port_ops; in set_pio_mode()
106 (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) in set_pio_mode()
109 if (set_pio_mode_abuse(drive->hwif, arg)) { in set_pio_mode()
116 spin_lock_irqsave(&hwif->lock, flags); in set_pio_mode()
[all …]
/Linux-v5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_if.c38 int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index, in hinic_msix_attr_set() argument
45 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_set()
56 hinic_hwif_write_reg(hwif, addr, msix_ctrl); in hinic_msix_attr_set()
72 int hinic_msix_attr_get(struct hinic_hwif *hwif, u16 msix_index, in hinic_msix_attr_get() argument
79 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_get()
83 val = hinic_hwif_read_reg(hwif, addr); in hinic_msix_attr_get()
100 int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index) in hinic_msix_attr_cnt_clear() argument
104 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_cnt_clear()
110 hinic_hwif_write_reg(hwif, addr, msix_ctrl); in hinic_msix_attr_cnt_clear()
121 void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action) in hinic_set_pf_action() argument
[all …]
Dhinic_hw_if.h146 #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs) argument
147 #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs) argument
148 #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs) argument
149 #define HINIC_HWIF_FUNC_IDX(hwif) ((hwif)->attr.func_idx) argument
150 #define HINIC_HWIF_PCI_INTF(hwif) ((hwif)->attr.pci_intf_idx) argument
151 #define HINIC_HWIF_PF_IDX(hwif) ((hwif)->attr.pf_idx) argument
152 #define HINIC_HWIF_PPF_IDX(hwif) ((hwif)->attr.ppf_idx) argument
154 #define HINIC_FUNC_TYPE(hwif) ((hwif)->attr.func_type) argument
155 #define HINIC_IS_VF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_VF) argument
156 #define HINIC_IS_PF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PF) argument
[all …]
Dhinic_hw_dev.c63 if (!HINIC_IS_VF(hwdev->hwif) && dev_cap->intr_type != INTR_MSIX_TYPE) in parse_capability()
66 num_aeqs = HINIC_HWIF_NUM_AEQS(hwdev->hwif); in parse_capability()
67 num_ceqs = HINIC_HWIF_NUM_CEQS(hwdev->hwif); in parse_capability()
68 num_irqs = HINIC_HWIF_NUM_IRQS(hwdev->hwif); in parse_capability()
76 if (!HINIC_IS_VF(hwdev->hwif)) in parse_capability()
84 if (!HINIC_IS_VF(hwdev->hwif)) { in parse_capability()
103 struct hinic_hwif *hwif = hwdev->hwif; in get_capability() local
104 struct pci_dev *pdev = hwif->pdev; in get_capability()
130 struct hinic_hwif *hwif = hwdev->hwif; in get_dev_cap() local
131 struct pci_dev *pdev = hwif->pdev; in get_dev_cap()
[all …]
Dhinic_port.c42 struct hinic_hwif *hwif = hwdev->hwif; in change_mac() local
44 struct pci_dev *pdev = hwif->pdev; in change_mac()
53 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in change_mac()
62 (port_mac_cmd.status != HINIC_PF_SET_VF_ALREADY || !HINIC_IS_VF(hwif)) && in change_mac()
121 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac() local
123 struct pci_dev *pdev = hwif->pdev; in hinic_port_get_mac()
126 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_get_mac()
153 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu() local
155 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_mtu()
169 port_mtu_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_mtu()
[all …]
Dhinic_hw_api_cmd.c92 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx() local
96 prod_idx = hinic_hwif_read_reg(hwif, addr); in set_prod_idx()
102 hinic_hwif_write_reg(hwif, addr, prod_idx); in set_prod_idx()
110 val = hinic_hwif_read_reg(chain->hwif, addr); in get_hw_cons_idx()
120 val = hinic_hwif_read_reg(chain->hwif, addr); in dump_api_chain_reg()
122 …dev_err(&chain->hwif->pdev->dev, "Chain type: 0x%x, cpld error: 0x%x, check error: 0x%x, current f… in dump_api_chain_reg()
127 dev_err(&chain->hwif->pdev->dev, "Chain hw current ci: 0x%x\n", in dump_api_chain_reg()
131 val = hinic_hwif_read_reg(chain->hwif, addr); in dump_api_chain_reg()
132 dev_err(&chain->hwif->pdev->dev, "Chain hw current pi: 0x%x\n", val); in dump_api_chain_reg()
143 struct hinic_hwif *hwif = chain->hwif; in chain_busy() local
[all …]

12345