| /linux/tools/testing/selftests/gpio/ |
| H A D | gpio-sim.sh | 22 local CHIP=$1 24 for FILE in $CONFIGFS_DIR/$CHIP/*; do 30 LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | grep -E ^line` 33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then 34 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \ 38 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE || \ 43 rmdir $CONFIGFS_DIR/$CHIP/$BANK 46 rmdir $CONFIGFS_DIR/$CHIP || fail "Unable to remove the chip" 50 local CHIP=$1 52 mkdir $CONFIGFS_DIR/$CHIP [all …]
|
| /linux/drivers/char/tpm/ |
| H A D | tpm-chip.c | 15 * TPM chip management routines. 40 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() argument 44 if (!chip->ops->request_locality) in tpm_request_locality() 47 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality() 51 chip->locality = rc; in tpm_request_locality() 55 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() argument 59 if (!chip->ops->relinquish_locality) in tpm_relinquish_locality() 62 rc = chip->ops->relinquish_locality(chip, chip->locality); in tpm_relinquish_locality() 64 dev_err(&chip->dev, "%s: : error %d\n", __func__, rc); in tpm_relinquish_locality() 66 chip->locality = -1; in tpm_relinquish_locality() [all …]
|
| /linux/tools/perf/pmu-events/arch/powerpc/power10/ |
| H A D | nest_metrics.json | 4 …"MetricExpr": "(hv_24x7@PM_PB_RTY_VG_PUMP01\\,chip\\=?@ / (1 + hv_24x7@PM_PB_VG_PUMP01\\,chip\\=?@… 10 …"MetricExpr": "(hv_24x7@PM_PB_RTY_VG_PUMP23\\,chip\\=?@ / (1 + hv_24x7@PM_PB_VG_PUMP23\\,chip\\=?@… 16 …"MetricExpr": "(hv_24x7@PM_PB_RTY_LNS_PUMP01\\,chip\\=?@ / hv_24x7@PM_PB_LNS_PUMP01\\,chip\\=?@) *… 22 …"MetricExpr": "(hv_24x7@PM_PB_RTY_LNS_PUMP23\\,chip\\=?@ / hv_24x7@PM_PB_LNS_PUMP23\\,chip\\=?@) *… 28 …"MetricExpr": "(hv_24x7@PM_PB_RTY_GROUP_PUMP01\\,chip\\=?@ / hv_24x7@PM_PB_GROUP_PUMP01\\,chip\\=?… 34 …"MetricExpr": "(hv_24x7@PM_PB_RTY_GROUP_PUMP23\\,chip\\=?@ / hv_24x7@PM_PB_GROUP_PUMP23\\,chip\\=?… 40 "MetricExpr": "(hv_24x7@PM_PB_GROUP_PUMP01\\,chip\\=?@ / hv_24x7@PM_PAU_CYC\\,chip\\=?@)", 46 "MetricExpr": "(hv_24x7@PM_PB_GROUP_PUMP23\\,chip\\=?@ / hv_24x7@PM_PAU_CYC\\,chip\\=?@)", 52 "MetricExpr": "(hv_24x7@PM_PB_RTY_GROUP_PUMP01\\,chip\\=?@ / hv_24x7@PM_PAU_CYC\\,chip\\=?@)", 58 "MetricExpr": "(hv_24x7@PM_PB_RTY_GROUP_PUMP23\\,chip\\=?@ / hv_24x7@PM_PAU_CYC\\,chip\\=?@)", [all …]
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | global2.c | 15 #include "chip.h" 19 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read() argument 21 return mv88e6xxx_read(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_read() 24 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write() argument 26 return mv88e6xxx_write(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_write() 29 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g2_wait_bit() argument 32 return mv88e6xxx_wait_bit(chip, chip->info->global2_addr, reg, in mv88e6xxx_g2_wait_bit() 38 static int mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) in mv88e6xxx_g2_int_source() argument 41 return mv88e6xxx_g2_read(chip, MV88E6XXX_G2_INT_SRC, src); in mv88e6xxx_g2_int_source() 46 static int mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) in mv88e6xxx_g2_int_mask() argument [all …]
|
| H A D | phy.c | 13 #include "chip.h" 16 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_read() argument 19 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6165_phy_read() 22 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_write() argument 25 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6165_phy_write() 28 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) in mv88e6xxx_phy_read() argument 33 bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_phy_read() 37 if (!chip->info->ops->phy_read) in mv88e6xxx_phy_read() 40 return chip->info->ops->phy_read(chip, bus, addr, reg, val); in mv88e6xxx_phy_read() 43 int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val) in mv88e6xxx_phy_write() argument [all …]
|
| H A D | global1_atu.c | 13 #include "chip.h" 20 static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_fid_write() argument 22 return mv88e6xxx_g1_write(chip, MV88E6352_G1_ATU_FID, fid & 0xfff); in mv88e6xxx_g1_atu_fid_write() 27 int mv88e6xxx_g1_atu_set_learn2all(struct mv88e6xxx_chip *chip, bool learn2all) in mv88e6xxx_g1_atu_set_learn2all() argument 32 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_ATU_CTL, &val); in mv88e6xxx_g1_atu_set_learn2all() 41 return mv88e6xxx_g1_write(chip, MV88E6XXX_G1_ATU_CTL, val); in mv88e6xxx_g1_atu_set_learn2all() 44 int mv88e6xxx_g1_atu_set_age_time(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_set_age_time() argument 47 const unsigned int coeff = chip->info->age_time_coeff; in mv88e6xxx_g1_atu_set_age_time() 60 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_ATU_CTL, &val); in mv88e6xxx_g1_atu_set_age_time() 68 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_ATU_CTL, val); in mv88e6xxx_g1_atu_set_age_time() [all …]
|
| H A D | global1.c | 13 #include "chip.h" 16 int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g1_read() argument 18 int addr = chip->info->global1_addr; in mv88e6xxx_g1_read() 20 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6xxx_g1_read() 23 int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g1_write() argument 25 int addr = chip->info->global1_addr; in mv88e6xxx_g1_write() 27 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6xxx_g1_write() 30 int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g1_wait_bit() argument 33 return mv88e6xxx_wait_bit(chip, chip->info->global1_addr, reg, in mv88e6xxx_g1_wait_bit() 37 int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg, in mv88e6xxx_g1_wait_mask() argument [all …]
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | fusb302.c | 5 * Fairchild FUSB302 Type-C Chip Driver 39 * for the current capability offered by the SRC. As FUSB302 chip fires 93 /* lock for sharing chip states */ 96 /* chip status */ 129 static bool fusb302_log_full(struct fusb302_chip *chip) in fusb302_log_full() argument 131 return chip->logbuffer_tail == in fusb302_log_full() 132 (chip->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; in fusb302_log_full() 136 static void _fusb302_log(struct fusb302_chip *chip, const char *fmt, in _fusb302_log() argument 143 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log() 144 chip->logbuffer[chip->logbuffer_head] = in _fusb302_log() [all …]
|
| H A D | tcpci_maxim_core.c | 65 static void max_tcpci_init_regs(struct max_tcpci_chip *chip) in max_tcpci_init_regs() argument 70 ret = max_tcpci_write16(chip, TCPC_ALERT, 0xffff); in max_tcpci_init_regs() 72 dev_err(chip->dev, "Error writing to TCPC_ALERT ret:%d\n", ret); in max_tcpci_init_regs() 76 ret = max_tcpci_write16(chip, TCPC_VENDOR_ALERT, 0xffff); in max_tcpci_init_regs() 78 dev_err(chip->dev, "Error writing to TCPC_VENDOR_ALERT ret:%d\n", ret); in max_tcpci_init_regs() 82 ret = max_tcpci_write8(chip, TCPC_ALERT_EXTENDED, 0xff); in max_tcpci_init_regs() 84 dev_err(chip->dev, "Unable to clear TCPC_ALERT_EXTENDED ret:%d\n", ret); in max_tcpci_init_regs() 89 ret = max_tcpci_write8(chip, TCPC_EXTENDED_STATUS_MASK, TCPC_EXTENDED_STATUS_VSAFE0V); in max_tcpci_init_regs() 91 dev_err(chip->dev, "Unable to unmask TCPC_EXTENDED_STATUS_VSAFE0V ret:%d\n", ret); in max_tcpci_init_regs() 96 ret = max_tcpci_write8(chip, TCPC_FAULT_STATUS_MASK, TCPC_FAULT_STATUS_MASK_VCONN_OC); in max_tcpci_init_regs() [all …]
|
| /linux/drivers/misc/ |
| H A D | bh1770glc.c | 4 * Chip is combined proximity and ambient light sensor. 132 u32 lux_cf; /* Chip specific factor */ 163 * Supported stand alone rates in ms from chip data sheet 170 * Supported stand alone rates in ms from chip data sheet 176 * interrupt control functions are called while keeping chip->mutex 179 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip, in bh1770_lux_interrupt_control() argument 182 chip->int_mode_lux = lux; in bh1770_lux_interrupt_control() 184 return i2c_smbus_write_byte_data(chip->client, in bh1770_lux_interrupt_control() 186 (lux << 1) | chip->int_mode_prox); in bh1770_lux_interrupt_control() 189 static inline int bh1770_prox_interrupt_control(struct bh1770_chip *chip, in bh1770_prox_interrupt_control() argument [all …]
|
| H A D | pch_phub.c | 138 * @chip: Pointer to the PHUB register structure 143 static void pch_phub_read_modify_write_reg(struct pch_phub_reg *chip, in pch_phub_read_modify_write_reg() argument 147 void __iomem *reg_addr = chip->pch_phub_base_address + reg_addr_offset; in pch_phub_read_modify_write_reg() 155 struct pch_phub_reg *chip = pci_get_drvdata(pdev); in pch_phub_save_reg_conf() local 157 void __iomem *p = chip->pch_phub_base_address; in pch_phub_save_reg_conf() 159 chip->phub_id_reg = ioread32(p + PCH_PHUB_ID_REG); in pch_phub_save_reg_conf() 160 chip->q_pri_val_reg = ioread32(p + PCH_PHUB_QUEUE_PRI_VAL_REG); in pch_phub_save_reg_conf() 161 chip->rc_q_maxsize_reg = ioread32(p + PCH_PHUB_RC_QUEUE_MAXSIZE_REG); in pch_phub_save_reg_conf() 162 chip->bri_q_maxsize_reg = ioread32(p + PCH_PHUB_BRI_QUEUE_MAXSIZE_REG); in pch_phub_save_reg_conf() 163 chip->comp_resp_timeout_reg = in pch_phub_save_reg_conf() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-ml-ioh.c | 95 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_set() local 98 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_set() 99 reg_val = ioread32(&chip->reg->regs[chip->ch].po); in ioh_gpio_set() 105 iowrite32(reg_val, &chip->reg->regs[chip->ch].po); in ioh_gpio_set() 106 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_set() 113 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_get() local 115 return !!(ioread32(&chip->reg->regs[chip in ioh_gpio_get() 121 struct ioh_gpio *chip = gpiochip_get_data(gpio); ioh_gpio_direction_output() local 146 struct ioh_gpio *chip = gpiochip_get_data(gpio); ioh_gpio_direction_input() local 163 ioh_gpio_save_reg_conf(struct ioh_gpio * chip) ioh_gpio_save_reg_conf() argument 189 ioh_gpio_restore_reg_conf(struct ioh_gpio * chip) ioh_gpio_restore_reg_conf() argument 214 struct ioh_gpio *chip = gpiochip_get_data(gpio); ioh_gpio_to_irq() local 218 ioh_gpio_setup(struct ioh_gpio * chip,int num_port) ioh_gpio_setup() argument 246 struct ioh_gpio *chip = gc->private; ioh_irq_type() local 307 struct ioh_gpio *chip = gc->private; ioh_irq_unmask() local 316 struct ioh_gpio *chip = gc->private; ioh_irq_mask() local 325 struct ioh_gpio *chip = gc->private; ioh_irq_disable() local 339 struct ioh_gpio *chip = gc->private; ioh_irq_enable() local 352 struct ioh_gpio *chip = dev_id; ioh_gpio_handler() local 374 ioh_gpio_alloc_generic_chip(struct ioh_gpio * chip,unsigned int irq_start,unsigned int num) ioh_gpio_alloc_generic_chip() argument 409 struct ioh_gpio *chip; ioh_gpio_probe() local 484 struct ioh_gpio *chip = dev_get_drvdata(dev); ioh_gpio_suspend() local 496 struct ioh_gpio *chip = dev_get_drvdata(dev); ioh_gpio_resume() local [all...] |
| H A D | gpio-pch.c | 105 struct pch_gpio *chip = gpiochip_get_data(gpio); in pch_gpio_set() local 108 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_set() 109 reg_val = ioread32(&chip->reg->po); in pch_gpio_set() 115 iowrite32(reg_val, &chip->reg->po); in pch_gpio_set() 116 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_set() 123 struct pch_gpio *chip = gpiochip_get_data(gpio); in pch_gpio_get() local 125 return !!(ioread32(&chip->reg->pi) & BIT(nr)); in pch_gpio_get() 131 struct pch_gpio *chip = gpiochip_get_data(gpio); in pch_gpio_direction_output() local 136 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_output() 138 reg_val = ioread32(&chip in pch_gpio_direction_output() 157 struct pch_gpio *chip = gpiochip_get_data(gpio); pch_gpio_direction_input() local 174 pch_gpio_save_reg_conf(struct pch_gpio * chip) pch_gpio_save_reg_conf() argument 190 pch_gpio_restore_reg_conf(struct pch_gpio * chip) pch_gpio_restore_reg_conf() argument 207 struct pch_gpio *chip = gpiochip_get_data(gpio); pch_gpio_to_irq() local 212 pch_gpio_setup(struct pch_gpio * chip) pch_gpio_setup() argument 232 struct pch_gpio *chip = gc->private; pch_irq_type() local 287 struct pch_gpio *chip = gc->private; pch_irq_unmask() local 295 struct pch_gpio *chip = gc->private; pch_irq_mask() local 303 struct pch_gpio *chip = gc->private; pch_irq_ack() local 310 struct pch_gpio *chip = dev_id; pch_gpio_handler() local 324 pch_gpio_alloc_generic_chip(struct pch_gpio * chip,unsigned int irq_start,unsigned int num) pch_gpio_alloc_generic_chip() argument 357 struct pch_gpio *chip; pch_gpio_probe() local 407 struct pch_gpio *chip = dev_get_drvdata(dev); pch_gpio_suspend() local 419 struct pch_gpio *chip = dev_get_drvdata(dev); pch_gpio_resume() local [all...] |
| H A D | gpio-xilinx.c | 46 * @gc: GPIO chip 74 static inline int xgpio_regoffset(struct xgpio_instance *chip, int ch) in xgpio_regoffset() argument 86 static void xgpio_read_ch(struct xgpio_instance *chip, int reg, int bit, unsigned long *a) in xgpio_read_ch() argument 88 void __iomem *addr = chip->regs + reg + xgpio_regoffset(chip, bit / 32); in xgpio_read_ch() 94 static void xgpio_write_ch(struct xgpio_instance *chip, int reg, int bit, unsigned long *a) in xgpio_write_ch() argument 96 void __iomem *addr = chip->regs + reg + xgpio_regoffset(chip, bit / 32); in xgpio_write_ch() 102 static void xgpio_read_ch_all(struct xgpio_instance *chip, int reg, unsigned long *a) in xgpio_read_ch_all() argument 104 unsigned long lastbit = find_nth_bit(chip in xgpio_read_ch_all() 111 xgpio_write_ch_all(struct xgpio_instance * chip,int reg,unsigned long * a) xgpio_write_ch_all() argument 133 struct xgpio_instance *chip = gpiochip_get_data(gc); xgpio_get() local 154 struct xgpio_instance *chip = gpiochip_get_data(gc); xgpio_set() local 185 struct xgpio_instance *chip = gpiochip_get_data(gc); xgpio_set_multiple() local 215 struct xgpio_instance *chip = gpiochip_get_data(gc); xgpio_dir_in() local 244 struct xgpio_instance *chip = gpiochip_get_data(gc); xgpio_dir_out() local 266 xgpio_save_regs(struct xgpio_instance * chip) xgpio_save_regs() argument 272 xgpio_request(struct gpio_chip * chip,unsigned int offset) xgpio_request() argument 284 xgpio_free(struct gpio_chip * chip,unsigned int offset) xgpio_free() argument 375 struct xgpio_instance *chip = irq_data_get_irq_chip_data(irq_data); xgpio_irq_mask() local 403 struct xgpio_instance *chip = irq_data_get_irq_chip_data(irq_data); xgpio_irq_unmask() local 443 struct xgpio_instance *chip = irq_data_get_irq_chip_data(irq_data); xgpio_set_irq_type() local 480 struct xgpio_instance *chip = irq_desc_get_handler_data(desc); xgpio_irqhandler() local 544 struct xgpio_instance *chip; xgpio_probe() local [all...] |
| H A D | gpio-pca953x.c | 190 #define NBANK(chip) DIV_ROUND_UP(chip->gpio_chip.ngpio, BANK_SZ) argument 243 u8 (*recalc_addr)(struct pca953x_chip *chip, int reg, int off); 244 bool (*check_reg)(struct pca953x_chip *chip, unsigned int reg, 248 static int pca953x_bank_shift(struct pca953x_chip *chip) in pca953x_bank_shift() argument 250 return fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); in pca953x_bank_shift() 254 * Helper function to get the correct bit mask for a given offset and chip type. 258 static inline u8 pca953x_get_bit_mask(struct pca953x_chip *chip, unsigned int offset) in pca953x_get_bit_mask() argument 263 if (PCA_CHIP_TYPE(chip->driver_data) == TCA6418_TYPE && offset <= msb) in pca953x_get_bit_mask() 301 * - Extended set, above 0x40, often chip specifi 314 pca953x_check_register(struct pca953x_chip * chip,unsigned int reg,u32 checkbank) pca953x_check_register() argument 346 pcal6534_check_register(struct pca953x_chip * chip,unsigned int reg,u32 checkbank) pcal6534_check_register() argument 386 tca6418_check_register(struct pca953x_chip * chip,unsigned int reg,u32 access_type_mask) tca6418_check_register() argument 406 struct pca953x_chip *chip = dev_get_drvdata(dev); pca953x_readable_register() local 435 struct pca953x_chip *chip = dev_get_drvdata(dev); pca953x_writeable_register() local 461 struct pca953x_chip *chip = dev_get_drvdata(dev); pca953x_volatile_register() local 514 pca953x_recalc_addr(struct pca953x_chip * chip,int reg,int off) pca953x_recalc_addr() argument 528 pcal6534_recalc_addr(struct pca953x_chip * chip,int reg,int off) pcal6534_recalc_addr() argument 559 tca6418_recalc_addr(struct pca953x_chip * chip,int reg_base,int offset) tca6418_recalc_addr() argument 569 pca953x_write_regs(struct pca953x_chip * chip,int reg,unsigned long * val) pca953x_write_regs() argument 587 pca953x_read_regs(struct pca953x_chip * chip,int reg,unsigned long * val) pca953x_read_regs() argument 607 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_gpio_direction_input() local 622 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_gpio_direction_output() local 647 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_gpio_get_value() local 664 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_gpio_set_value() local 675 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_gpio_get_direction() local 702 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_gpio_get_multiple() local 718 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_gpio_set_multiple() local 733 pca953x_gpio_set_pull_up_down(struct pca953x_chip * chip,unsigned int offset,unsigned long config) pca953x_gpio_set_pull_up_down() argument 772 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_gpio_set_config() local 785 pca953x_setup_gpio(struct pca953x_chip * chip,int gpios) pca953x_setup_gpio() argument 810 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_irq_mask() local 820 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_irq_unmask() local 830 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_irq_set_wake() local 843 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_irq_bus_lock() local 851 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_irq_bus_sync_unlock() local 887 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_irq_set_type() local 907 struct pca953x_chip *chip = gpiochip_get_data(gc); pca953x_irq_shutdown() local 936 pca953x_irq_pending(struct pca953x_chip * chip,unsigned long * pending) pca953x_irq_pending() argument 988 struct pca953x_chip *chip = devid; pca953x_irq_handler() local 1017 pca953x_irq_setup(struct pca953x_chip * chip,int irq_base) pca953x_irq_setup() argument 1076 pca953x_irq_setup(struct pca953x_chip * chip,int irq_base) pca953x_irq_setup() argument 1088 device_pca95xx_init(struct pca953x_chip * chip) device_pca95xx_init() argument 1112 device_pca957x_init(struct pca953x_chip * chip) device_pca957x_init() argument 1134 pca953x_get_and_enable_regulator(struct pca953x_chip * chip) pca953x_get_and_enable_regulator() argument 1160 struct pca953x_chip *chip; pca953x_probe() local 1284 pca953x_regcache_sync(struct pca953x_chip * chip) pca953x_regcache_sync() argument 1333 pca953x_restore_context(struct pca953x_chip * chip) pca953x_restore_context() argument 1350 pca953x_save_context(struct pca953x_chip * chip) pca953x_save_context() argument 1362 struct pca953x_chip *chip = dev_get_drvdata(dev); pca953x_suspend() local 1376 struct pca953x_chip *chip = dev_get_drvdata(dev); pca953x_resume() local [all...] |
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_legacy.c | 23 * nand_read_byte - [DEFAULT] read one byte from the chip 24 * @chip: NAND chip object 28 static uint8_t nand_read_byte(struct nand_chip *chip) in nand_read_byte() argument 30 return readb(chip->legacy.IO_ADDR_R); in nand_read_byte() 34 * nand_read_byte16 - [DEFAULT] read one byte endianness aware from the chip 35 * @chip: NAND chip object 40 static uint8_t nand_read_byte16(struct nand_chip *chip) in nand_read_byte16() argument 42 return (uint8_t) cpu_to_le16(readw(chip->legacy.IO_ADDR_R)); in nand_read_byte16() 47 * @chip: NAND chip object 50 * Default select function for 1 chip devices. [all …]
|
| /linux/drivers/input/misc/ |
| H A D | max8997_haptic.c | 56 static void max8997_haptic_set_internal_duty_cycle(struct max8997_haptic *chip) in max8997_haptic_set_internal_duty_cycle() argument 58 u8 duty_index = DIV_ROUND_UP(chip->level * 64, 100); in max8997_haptic_set_internal_duty_cycle() 60 switch (chip->internal_mode_pattern) { in max8997_haptic_set_internal_duty_cycle() 62 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle() 66 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle() 70 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle() 74 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle() 82 static void max8997_haptic_configure(struct max8997_haptic *chip) in max8997_haptic_configure() argument 86 value = chip->type << MAX8997_MOTOR_TYPE_SHIFT | in max8997_haptic_configure() 87 chip->enabled << MAX8997_ENABLE_SHIFT | in max8997_haptic_configure() [all …]
|
| /linux/sound/sh/ |
| H A D | sh_dac_audio.c | 53 static void dac_audio_start_timer(struct snd_sh_dac *chip) in dac_audio_start_timer() argument 55 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer() 59 static void dac_audio_stop_timer(struct snd_sh_dac *chip) in dac_audio_stop_timer() argument 61 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer() 64 static void dac_audio_reset(struct snd_sh_dac *chip) in dac_audio_reset() argument 66 dac_audio_stop_timer(chip); in dac_audio_reset() 67 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in dac_audio_reset() 68 chip->processed = 0; in dac_audio_reset() 69 chip->empty = 1; in dac_audio_reset() 72 static void dac_audio_set_rate(struct snd_sh_dac *chip) in dac_audio_set_rate() argument [all …]
|
| /linux/drivers/net/wireless/zydas/zd1211rw/ |
| H A D | zd_chip.c | 22 void zd_chip_init(struct zd_chip *chip, in zd_chip_init() argument 26 memset(chip, 0, sizeof(*chip)); in zd_chip_init() 27 mutex_init(&chip->mutex); in zd_chip_init() 28 zd_usb_init(&chip->usb, hw, intf); in zd_chip_init() 29 zd_rf_init(&chip->rf); in zd_chip_init() 32 void zd_chip_clear(struct zd_chip *chip) in zd_chip_clear() argument 34 ZD_ASSERT(!mutex_is_locked(&chip->mutex)); in zd_chip_clear() 35 zd_usb_clear(&chip->usb); in zd_chip_clear() 36 zd_rf_clear(&chip->rf); in zd_chip_clear() 37 mutex_destroy(&chip->mutex); in zd_chip_clear() [all …]
|
| /linux/drivers/thermal/qcom/ |
| H A D | qcom-spmi-temp-alarm.c | 128 int (*sync_thresholds)(struct qpnp_tm_chip *chip); 129 int (*get_temp_stage)(struct qpnp_tm_chip *chip); 130 int (*configure_trip_temps)(struct qpnp_tm_chip *chip); 143 /* protects .thresh, .stage and chip registers */ 155 static int qpnp_tm_read(struct qpnp_tm_chip *chip, u16 addr, u8 *data) in qpnp_tm_read() argument 160 ret = regmap_read(chip->map, chip->base + addr, &val); in qpnp_tm_read() 168 static int qpnp_tm_write(struct qpnp_tm_chip *chip, u16 addr, u8 data) in qpnp_tm_write() argument 170 return regmap_write(chip->map, chip->base + addr, data); in qpnp_tm_write() 176 * @chip: Pointer to the qpnp_tm chip 181 static long qpnp_tm_decode_temp(struct qpnp_tm_chip *chip, unsigned int stage) in qpnp_tm_decode_temp() argument [all …]
|
| /linux/drivers/video/fbdev/riva/ |
| H A D | riva_hw.c | 62 RIVA_HW_INST *chip in nv3Busy() argument 65 return ((NV_RD32(&chip->Rop->FifoFree, 0) < chip->FifoEmptyCount) || in nv3Busy() 66 NV_RD32(&chip->PGRAPH[0x000006B0/4], 0) & 0x01); in nv3Busy() 70 RIVA_HW_INST *chip in nv4Busy() argument 73 return ((NV_RD32(&chip->Rop->FifoFree, 0) < chip->FifoEmptyCount) || in nv4Busy() 74 NV_RD32(&chip->PGRAPH[0x00000700/4], 0) & 0x01); in nv4Busy() 78 RIVA_HW_INST *chip in nv10Busy() argument 81 return ((NV_RD32(&chip->Rop->FifoFree, 0) < chip->FifoEmptyCount) || in nv10Busy() 82 NV_RD32(&chip->PGRAPH[0x00000700/4], 0) & 0x01); in nv10Busy() 87 RIVA_HW_INST *chip, in vgaLockUnlock() argument [all …]
|
| /linux/sound/soc/amd/acp/ |
| H A D | acp-pci.c | 31 struct acp_chip_info *chip = data; in irq_handler() local 33 if (chip && chip->acp_hw_ops && chip->acp_hw_ops->irq) in irq_handler() 34 return chip->acp_hw_ops->irq(irq, chip); in irq_handler() 57 static int create_acp_platform_devs(struct pci_dev *pci, struct acp_chip_info *chip, u32 addr) in create_acp_platform_devs() argument 65 if (chip->is_i2s_config || chip->is_pdm_dev) { in create_acp_platform_devs() 66 chip->res = devm_kzalloc(&pci->dev, sizeof(struct resource), GFP_KERNEL); in create_acp_platform_devs() 67 if (!chip->res) { in create_acp_platform_devs() 71 chip->res->flags = IORESOURCE_MEM; in create_acp_platform_devs() 72 chip->res->start = addr; in create_acp_platform_devs() 73 chip->res->end = addr + (ACP3x_REG_END - ACP3x_REG_START); in create_acp_platform_devs() [all …]
|
| H A D | acp-legacy-common.c | 83 struct acp_chip_info *chip = data; in acp_irq_handler() local 84 struct acp_resource *rsrc = chip->rsrc; in acp_irq_handler() 90 ext_intr_stat1 = readl(ACP_EXTERNAL_INTR_STAT(chip, (rsrc->irqp_used - 1))); in acp_irq_handler() 92 ext_intr_stat = readl(ACP_EXTERNAL_INTR_STAT(chip, rsrc->irqp_used)); in acp_irq_handler() 94 spin_lock(&chip->acp_lock); in acp_irq_handler() 95 list_for_each_entry(stream, &chip->stream_list, list) { in acp_irq_handler() 98 ACP_EXTERNAL_INTR_STAT(chip, rsrc->irqp_used)); in acp_irq_handler() 102 if (chip->rsrc->no_of_ctrls == 2) { in acp_irq_handler() 104 writel(stream->irq_bit, ACP_EXTERNAL_INTR_STAT(chip, in acp_irq_handler() 111 spin_unlock(&chip->acp_lock); in acp_irq_handler() [all …]
|
| /linux/sound/pci/echoaudio/ |
| H A D | echoaudio_dsp.c | 35 static int restore_dsp_rettings(struct echoaudio *chip); 42 static int wait_handshake(struct echoaudio *chip) in wait_handshake() argument 50 if (chip->comm_page->handshake) { in wait_handshake() 56 dev_err(chip->card->dev, "wait_handshake(): Timeout waiting for DSP\n"); in wait_handshake() 66 static int send_vector(struct echoaudio *chip, u32 command) in send_vector() argument 74 if (!(get_dsp_register(chip, CHI32_VECTOR_REG) & in send_vector() 76 set_dsp_register(chip, CHI32_VECTOR_REG, command); in send_vector() 83 dev_err(chip->card->dev, "timeout on send_vector\n"); in send_vector() 91 static int write_dsp(struct echoaudio *chip, u32 data) in write_dsp() argument 96 status = get_dsp_register(chip, CHI32_STATUS_REG); in write_dsp() [all …]
|
| /linux/sound/drivers/pcsp/ |
| H A D | pcsp_lib.c | 45 static u64 pcsp_timer_update(struct snd_pcsp *chip) in pcsp_timer_update() argument 53 if (chip->thalf) { in pcsp_timer_update() 54 outb(chip->val61, 0x61); in pcsp_timer_update() 55 chip->thalf = 0; in pcsp_timer_update() 56 return chip->ns_rem; in pcsp_timer_update() 59 substream = chip->playback_substream; in pcsp_timer_update() 65 val = runtime->dma_area[chip->playback_ptr + chip->fmt_size - 1]; in pcsp_timer_update() 66 if (chip->is_signed) in pcsp_timer_update() 70 if (timer_cnt && chip->enable) { in pcsp_timer_update() 73 outb_p(chip->val61, 0x61); in pcsp_timer_update() [all …]
|