Home
last modified time | relevance | path

Searched refs:bops (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/iio/adc/
H A Dad7606_spi.c115 st->d16[0] = cpu_to_be16(st->bops->rd_wr_cmd(addr, 0) << 8); in ad7606_spi_reg_read()
130 st->d16[0] = cpu_to_be16((st->bops->rd_wr_cmd(addr, 1) << 8) | in ad7606_spi_reg_write()
141 return st->bops->reg_write(st, AD7606_CONFIGURATION_REGISTER, in ad7606b_sw_mode_config()
404 .bops = &ad7606_spi_bops,
409 .bops = &ad7606_spi_bops,
414 .bops = &ad7606_spi_bops,
419 .bops = &ad7606_spi_bops,
424 .bops = &ad7606b_spi_bops,
429 .bops = &ad7606b_spi_bops,
434 .bops
[all...]
H A Dad7606.c538 ret = st->bops->reg_read(st, reg); in ad7606_reg_access()
544 return st->bops->reg_write(st, reg, writeval); in ad7606_reg_access()
628 return st->bops->read_block(st->dev, num, &st->data); in ad7606_read_samples()
724 ret = st->bops->reg_read(st, AD7606_CALIB_OFFSET(ch)); in ad7606_get_calib_offset()
739 ret = st->bops->reg_read(st, AD7606_CALIB_PHASE(ch)); in ad7606_get_calib_phase()
868 return st->bops->reg_write(st, AD7606_CALIB_OFFSET(ch), offset); in ad7606_set_calib_offset()
892 return st->bops->reg_write(st, AD7606_CALIB_PHASE(ch), wreg); in ad7606_set_calib_phase()
1191 if (!st->bops->update_scan_mode) in ad7606_update_scan_mode()
1194 return st->bops->update_scan_mode(indio_dev, scan_mask); in ad7606_update_scan_mode()
1256 readval = st->bops in ad7606_write_mask()
1492 ad7606_probe(struct device * dev,int irq,void __iomem * base_address,const struct ad7606_chip_info * chip_info,const struct ad7606_bus_ops * bops) ad7606_probe() argument
[all...]
H A Dad7606.h113 * @bops: bus operations (SPI or parallel)
144 const struct ad7606_bus_ops *bops; member
217 * @bops: bus operations (SPI or parallel)
221 const struct ad7606_bus_ops *bops; member
226 const struct ad7606_bus_ops *bops);
/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhnae.h560 struct hnae_buf_ops *bops; /* operation for the buffer */ member
569 struct hnae_buf_ops *bops);
589 struct hnae_buf_ops *bops = ring->q->handle->bops; in hnae_reserve_buffer_map() local
592 ret = bops->alloc_buffer(ring, cb); in hnae_reserve_buffer_map()
596 ret = bops->map_buffer(ring, cb); in hnae_reserve_buffer_map()
603 bops->free_buffer(ring, cb); in hnae_reserve_buffer_map()
622 ring->q->handle->bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_buffer_detach()
628 struct hnae_buf_ops *bops = ring->q->handle->bops; in hnae_free_buffer_detach() local
642 struct hnae_buf_ops *bops = ring->q->handle->bops; hnae_replace_buffer() local
[all...]
H A Dhnae.c321 * @bops: the callbacks for buffer management
328 struct hnae_buf_ops *bops) in hnae_get_handle() argument
347 handle->bops = bops ? bops : &hnae_bops; in hnae_get_handle()
/linux/drivers/misc/
H A Dad525x_dpot-i2c.c44 static const struct ad_dpot_bus_ops bops = { variable
58 .bops = &bops, in ad_dpot_i2c_probe()
H A Dad525x_dpot-spi.c73 static const struct ad_dpot_bus_ops bops = { variable
85 .bops = &bops, in ad_dpot_spi_probe()
H A Dad525x_dpot.c98 return dpot->bdata.bops->read_d8(dpot->bdata.client); in dpot_read_d8()
103 return dpot->bdata.bops->read_r8d8(dpot->bdata.client, reg); in dpot_read_r8d8()
108 return dpot->bdata.bops->read_r8d16(dpot->bdata.client, reg); in dpot_read_r8d16()
113 return dpot->bdata.bops->write_d8(dpot->bdata.client, val); in dpot_write_d8()
118 return dpot->bdata.bops->write_r8d8(dpot->bdata.client, reg, val); in dpot_write_r8d8()
123 return dpot->bdata.bops->write_r8d16(dpot->bdata.client, reg, val); in dpot_write_r8d16()
H A Dad525x_dpot.h207 const struct ad_dpot_bus_ops *bops; member
/linux/drivers/input/misc/
H A Dadxl34x.c181 #define AC_READ(ac, reg) ((ac)->bops->read((ac)->dev, reg))
182 #define AC_WRITE(ac, reg, val) ((ac)->bops->write((ac)->dev, reg, val))
209 const struct adxl34x_bus_ops *bops; member
242 ac->bops->read_block(ac->dev, DATAX0, DATAZ1 - DATAX0 + 1, buf); in adxl34x_get_triple()
684 const struct adxl34x_bus_ops *bops) in adxl34x_probe() argument
720 ac->bops = bops; in adxl34x_probe()
743 input_dev->id.bustype = bops->bustype; in adxl34x_probe()
H A Dadxl34x.h25 const struct adxl34x_bus_ops *bops);
H A Dcma3000_d0x.h26 const struct cma3000_bus_ops *bops);
/linux/drivers/md/persistent-data/
H A Ddm-space-map-metadata.c100 struct block_op bops[MAX_RECURSIVE_ALLOCATIONS + 1]; member
118 return r >= ARRAY_SIZE(brb->bops) ? 0 : r; in brb_next()
134 bop = brb->bops + brb->end; in brb_push()
151 bop = brb->bops + brb->begin; in brb_peek()
317 struct block_op *op = smm->uncommitted.bops + i; in sm_metadata_get_count()
358 struct block_op *op = smm->uncommitted.bops + i; in sm_metadata_count_is_more_than_one()
/linux/arch/mips/include/asm/
H A Dmips-r2-to-r6-emul.h19 u64 bops; member
/linux/arch/mips/kernel/
H A Dmips-r2-to-r6-emul.c787 MIPS_R2_STATS(bops); in clz_func()
812 MIPS_R2_STATS(bops); in clo_func()
839 MIPS_R2_STATS(bops); in dclz_func()
866 MIPS_R2_STATS(bops); in dclo_func()
2257 seq_printf(s, "bops\t\t%ld\t%ld\n", in mipsr2_emul_show()
2258 (unsigned long)__this_cpu_read(mipsr2emustats.bops), in mipsr2_emul_show()
2259 (unsigned long)__this_cpu_read(mipsr2bdemustats.bops)); in mipsr2_emul_show()
2318 __this_cpu_write((mipsr2emustats).bops, 0); in mipsr2_clear_show()
2319 __this_cpu_write((mipsr2bdemustats).bops, 0); in mipsr2_clear_show()
/linux/net/netfilter/
H A Dnf_tables_api.c4562 const struct nft_set_ops *ops, *bops; in nft_select_set_ops() local
4570 bops = NULL; in nft_select_set_ops()
4599 } else if (est.size < best.size || !bops) { in nft_select_set_ops()
4607 bops = ops; in nft_select_set_ops()
4611 if (bops != NULL) in nft_select_set_ops()
4612 return bops; in nft_select_set_ops()