Lines Matching refs:scn
81 struct hif_opaque_softc *scn; in get_hif_hdl_from_file() local
83 scn = (struct hif_opaque_softc *)pde_data(file_inode(file)); in get_hif_hdl_from_file()
84 return (void *)scn; in get_hif_hdl_from_file()
94 struct hif_softc *scn; in ath_procfs_diag_read_legacy() local
99 scn = HIF_GET_SOFTC(hif_hdl); in ath_procfs_diag_read_legacy()
109 if ((scn->bus_type == QDF_BUS_TYPE_SNOC) || in ath_procfs_diag_read_legacy()
110 (scn->bus_type == QDF_BUS_TYPE_PCI && in ath_procfs_diag_read_legacy()
129 (scn->bus_type == QDF_BUS_TYPE_IPCI && in ath_procfs_diag_read_legacy()
131 ((scn->bus_type == QDF_BUS_TYPE_USB) && in ath_procfs_diag_read_legacy()
137 rv = pld_athdiag_read(scn->qdf_dev->dev, in ath_procfs_diag_read_legacy()
174 struct hif_softc *scn; in ath_procfs_diag_write_legacy() local
179 scn = HIF_GET_SOFTC(hif_hdl); in ath_procfs_diag_write_legacy()
196 if ((scn->bus_type == QDF_BUS_TYPE_SNOC) || in ath_procfs_diag_write_legacy()
197 ((scn->bus_type == QDF_BUS_TYPE_PCI) && in ath_procfs_diag_write_legacy()
216 (scn->bus_type == QDF_BUS_TYPE_IPCI && in ath_procfs_diag_write_legacy()
218 ((scn->bus_type == QDF_BUS_TYPE_USB) && in ath_procfs_diag_write_legacy()
224 rv = pld_athdiag_write(scn->qdf_dev->dev, in ath_procfs_diag_write_legacy()
251 static int ath_procfs_direct_read(struct hif_softc *scn, uint32_t offset, in ath_procfs_direct_read() argument
259 if (!scn->bus_ops.hif_reg_read32) in ath_procfs_direct_read()
263 *p_val++ = scn->bus_ops.hif_reg_read32(scn, in ath_procfs_direct_read()
270 val = scn->bus_ops.hif_reg_read32(scn, in ath_procfs_direct_read()
284 static int ath_procfs_direct_write(struct hif_softc *scn, uint32_t offset, in ath_procfs_direct_write() argument
292 if (!scn->bus_ops.hif_reg_write32 || !scn->bus_ops.hif_reg_read32) in ath_procfs_direct_write()
296 scn->bus_ops.hif_reg_write32(scn, in ath_procfs_direct_write()
304 val = scn->bus_ops.hif_reg_read32(scn, in ath_procfs_direct_write()
312 scn->bus_ops.hif_reg_write32(scn, in ath_procfs_direct_write()
320 static int ath_procfs_direct_read(struct hif_softc *scn, uint32_t offset, in ath_procfs_direct_read() argument
327 static int ath_procfs_direct_write(struct hif_softc *scn, uint32_t offset, in ath_procfs_direct_write() argument
344 struct hif_softc *scn; in ath_procfs_diag_read_ext() local
354 scn = HIF_GET_SOFTC(hif_hdl); in ath_procfs_diag_read_ext()
356 switch (scn->bus_type) { in ath_procfs_diag_read_ext()
365 rv = ath_procfs_direct_read(scn, in ath_procfs_diag_read_ext()
370 rv = pld_athdiag_read(scn->qdf_dev->dev, in ath_procfs_diag_read_ext()
382 hif_err("Unrecognized bus type %d", scn->bus_type); in ath_procfs_diag_read_ext()
412 struct hif_softc *scn; in ath_procfs_diag_write_ext() local
418 scn = HIF_GET_SOFTC(hif_hdl); in ath_procfs_diag_write_ext()
433 switch (scn->bus_type) { in ath_procfs_diag_write_ext()
442 rv = ath_procfs_direct_write(scn, in ath_procfs_diag_write_ext()
447 rv = pld_athdiag_write(scn->qdf_dev->dev, in ath_procfs_diag_write_ext()
459 hif_err("Unrecognized bus type %d", scn->bus_type); in ath_procfs_diag_write_ext()
486 struct hif_softc *scn; in ath_procfs_diag_read() local
495 scn = HIF_GET_SOFTC(hif_hdl); in ath_procfs_diag_read()
496 if (scn->bus_ops.hif_addr_in_boundary(scn, offset)) in ath_procfs_diag_read()
528 struct hif_softc *scn; in ath_procfs_diag_write() local
537 scn = HIF_GET_SOFTC(hif_hdl); in ath_procfs_diag_write()
538 if (scn->bus_ops.hif_addr_in_boundary(scn, offset)) in ath_procfs_diag_write()
581 int athdiag_procfs_init(void *scn) in athdiag_procfs_init() argument
591 &athdiag_fops, (void *)scn); in athdiag_procfs_init()
617 int athdiag_procfs_init(void *scn) in athdiag_procfs_init() argument