Home
last modified time | relevance | path

Searched +defs:bit +defs:offset (Results 1 – 25 of 241) sorted by relevance

12345678910

/linux/drivers/gpio/
H A Dgpio-xilinx.c37 # define xgpio_readreg(offset) readl(offset) argument
38 # define xgpio_writereg(offset, val) writel(val, offset) argument
40 # define xgpio_readreg(offset) __raw_readl(offset) argument
41 # define xgpio_writereg(offset, val) __raw_writel(val, offset) argument
86 static void xgpio_read_ch(struct xgpio_instance *chip, int reg, int bit, unsigned long *a) 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()
105 int bit; in xgpio_read_ch_all() local
114 int bit; in xgpio_write_ch_all() local
134 unsigned long bit = find_nth_bit(chip->map, 64, gpio); in xgpio_get() local
155 unsigned long bit = find_nth_bit(chip->map, 64, gpio); in xgpio_set() local
[all …]
H A Dgpio-exar.c48 exar_offset_to_sel_addr(struct exar_gpio_chip *exar_gpio, unsigned int offset) in exar_offset_to_sel_addr()
58 exar_offset_to_lvl_addr(struct exar_gpio_chip *exar_gpio, unsigned int offset) in exar_offset_to_lvl_addr()
68 exar_offset_to_bit(struct exar_gpio_chip *exar_gpio, unsigned int offset) in exar_offset_to_bit()
75 static int exar_get_direction(struct gpio_chip *chip, unsigned int offset) in exar_get_direction()
79 unsigned int bit = exar_offset_to_bit(exar_gpio, offset); in exar_get_direction() local
87 static int exar_get_value(struct gpio_chip *chip, unsigned int offset) in exar_get_value()
91 unsigned int bit = exar_offset_to_bit(exar_gpio, offset); in exar_get_value() local
96 static int exar_set_value(struct gpio_chip *chip, unsigned int offset, in exar_set_value()
101 unsigned int bit = exar_offset_to_bit(exar_gpio, offset); in exar_set_value() local
111 static int exar_direction_output(struct gpio_chip *chip, unsigned int offset, in exar_direction_output()
[all …]
H A Dgpio-logicvc.c29 static void logicvc_gpio_offset(struct logicvc_gpio *logicvc, unsigned offset, in logicvc_gpio_offset()
30 unsigned int *reg, unsigned int *bit) in logicvc_gpio_offset()
49 static int logicvc_gpio_get(struct gpio_chip *chip, unsigned offset) in logicvc_gpio_get()
52 unsigned int reg, bit, value; in logicvc_gpio_get() local
64 static int logicvc_gpio_set(struct gpio_chip *chip, unsigned int offset, in logicvc_gpio_set()
68 unsigned int reg, bit; in logicvc_gpio_set() local
76 unsigned offset, int value) in logicvc_gpio_direction_output()
H A Dgpio-aspeed-sgpio.c136 static const struct aspeed_sgpio_bank *to_bank(unsigned int offset) in to_bank()
165 static bool aspeed_sgpio_is_input(unsigned int offset) in aspeed_sgpio_is_input()
170 static int aspeed_sgpio_get(struct gpio_chip *gc, unsigned int offset) in aspeed_sgpio_get()
185 static int sgpio_set_value(struct gpio_chip *gc, unsigned int offset, int val) in sgpio_set_value()
212 static int aspeed_sgpio_set(struct gpio_chip *gc, unsigned int offset, int val) in aspeed_sgpio_set()
221 static int aspeed_sgpio_dir_in(struct gpio_chip *gc, unsigned int offset) in aspeed_sgpio_dir_in()
226 static int aspeed_sgpio_dir_out(struct gpio_chip *gc, unsigned int offset, int val) in aspeed_sgpio_dir_out()
241 static int aspeed_sgpio_get_direction(struct gpio_chip *gc, unsigned int offset) in aspeed_sgpio_get_direction()
249 u32 *bit, int *offset) in irqd_to_aspeed_sgpio_data()
267 int offset; in aspeed_sgpio_irq_ack() local
[all …]
H A Dgpio-npcm-sgpio.c157 static const struct npcm_sgpio_bank *offset_to_bank(unsigned int offset) in offset_to_bank()
167 u8 *bit, unsigned int *offset) in npcm_sgpio_irqd_to_data()
204 static int npcm_sgpio_dir_in(struct gpio_chip *gc, unsigned int offset) in npcm_sgpio_dir_in()
212 static int npcm_sgpio_dir_out(struct gpio_chip *gc, unsigned int offset, int val) in npcm_sgpio_dir_out()
217 static int npcm_sgpio_get_direction(struct gpio_chip *gc, unsigned int offset) in npcm_sgpio_get_direction()
227 static int npcm_sgpio_set(struct gpio_chip *gc, unsigned int offset, int val) in npcm_sgpio_set()
247 static int npcm_sgpio_get(struct gpio_chip *gc, unsigned int offset) in npcm_sgpio_get()
323 unsigned int offset; in npcm_sgpio_irq_set_mask() local
325 u8 bit; in npcm_sgpio_irq_set_mask() local
360 unsigned int offset; in npcm_sgpio_irq_ack() local
[all …]
H A Dgpio-kempld.c35 u8 reg, u8 bit, u8 val) in kempld_gpio_bitop()
47 static int kempld_gpio_get_bit(struct kempld_device_data *pld, u8 reg, u8 bit) in kempld_gpio_get_bit()
58 static int kempld_gpio_get(struct gpio_chip *chip, unsigned offset) in kempld_gpio_get()
66 static int kempld_gpio_set(struct gpio_chip *chip, unsigned int offset, in kempld_gpio_set()
79 static int kempld_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in kempld_gpio_direction_input()
91 static int kempld_gpio_direction_output(struct gpio_chip *chip, unsigned offset, in kempld_gpio_direction_output()
105 static int kempld_gpio_get_direction(struct gpio_chip *chip, unsigned offset) in kempld_gpio_get_direction()
H A Dgpio-ts5500.c68 #define TS5500_DIO_IN(addr, bit) \ argument
75 #define TS5500_DIO_IN_IRQ(addr, bit, _irq) \ argument
83 #define TS5500_DIO_OUT(addr, bit) \ argument
198 static int ts5500_gpio_input(struct gpio_chip *chip, unsigned offset) in ts5500_gpio_input()
217 static int ts5500_gpio_get(struct gpio_chip *chip, unsigned offset) in ts5500_gpio_get()
225 static int ts5500_gpio_output(struct gpio_chip *chip, unsigned offset, int val) in ts5500_gpio_output()
247 static int ts5500_gpio_set(struct gpio_chip *chip, unsigned offset, int val) in ts5500_gpio_set()
263 static int ts5500_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in ts5500_gpio_to_irq()
H A Dgpio-htc-egpio.c121 static inline int egpio_pos(struct egpio_info *ei, int bit) in egpio_pos()
126 static inline int egpio_bit(struct egpio_info *ei, int bit) in egpio_bit()
135 static int egpio_get(struct gpio_chip *chip, unsigned offset) in egpio_get()
139 unsigned bit; in egpio_get() local
160 static int egpio_direction_input(struct gpio_chip *chip, unsigned offset) in egpio_direction_input()
173 static int egpio_set(struct gpio_chip *chip, unsigned int offset, int value) in egpio_set()
206 unsigned offset, int value) in egpio_direction_output()
217 static int egpio_get_direction(struct gpio_chip *chip, unsigned offset) in egpio_get_direction()
H A Dgpio-pca953x.c258 static inline u8 pca953x_get_bit_mask(struct pca953x_chip *chip, unsigned int offset) in pca953x_get_bit_mask()
319 int offset = reg & (BIT(bank_shift) - 1); in pca953x_check_register() local
351 int offset; in pcal6534_check_register() local
559 static u8 tca6418_recalc_addr(struct pca953x_chip *chip, int reg_base, int offset) in tca6418_recalc_addr()
609 u8 bit = pca953x_get_bit_mask(chip, off); in pca953x_gpio_direction_input() local
625 u8 bit = pca953x_get_bit_mask(chip, off); in pca953x_gpio_direction_output() local
649 u8 bit = pca953x_get_bit_mask(chip, off); in pca953x_gpio_get_value() local
666 u8 bit = pca953x_get_bit_mask(chip, off); in pca953x_gpio_set_value() local
677 u8 bit = pca953x_get_bit_mask(chip, off); in pca953x_gpio_get_direction() local
734 unsigned int offset, in pca953x_gpio_set_pull_up_down()
[all …]
H A Dgpio-bd71815.c28 static int bd71815gpo_get(struct gpio_chip *chip, unsigned int offset) in bd71815gpo_get()
40 static int bd71815gpo_set(struct gpio_chip *chip, unsigned int offset, in bd71815gpo_set()
44 int bit; in bd71815gpo_set() local
54 static int bd71815_gpio_set_config(struct gpio_chip *chip, unsigned int offset, in bd71815_gpio_set_config()
77 static int bd71815gpo_direction_get(struct gpio_chip *gc, unsigned int offset) in bd71815gpo_direction_get()
/linux/drivers/reset/amlogic/
H A Dreset-meson-common.c25 unsigned int *offset, in meson_reset_offset_and_bit()
26 unsigned int *bit) in meson_reset_offset_and_bit()
39 unsigned int offset, bit; in meson_reset_reset() local
52 unsigned int offset, bit; in meson_reset_level() local
67 unsigned int val, offset, bit; in meson_reset_status() local
/linux/drivers/clk/hisilicon/
H A Dreset.c33 u32 offset; in hisi_reset_of_xlate() local
34 u8 bit; in hisi_reset_of_xlate() local
48 u32 offset, reg; in hisi_reset_assert() local
49 u8 bit; in hisi_reset_assert() local
69 u32 offset, reg; in hisi_reset_deassert() local
70 u8 bit; in hisi_reset_deassert() local
/linux/drivers/pinctrl/renesas/
H A Dgpio.c43 static void gpio_get_data_reg(struct sh_pfc_chip *chip, unsigned int offset, in gpio_get_data_reg()
45 unsigned int *bit) in gpio_get_data_reg()
78 unsigned int bit; in gpio_setup_data_reg() local
130 static int gpio_pin_request(struct gpio_chip *gc, unsigned offset) in gpio_pin_request()
141 static void gpio_pin_free(struct gpio_chip *gc, unsigned offset) in gpio_pin_free()
146 static void gpio_pin_set_value(struct sh_pfc_chip *chip, unsigned offset, in gpio_pin_set_value()
150 unsigned int bit; in gpio_pin_set_value() local
165 static int gpio_pin_direction_input(struct gpio_chip *gc, unsigned offset) in gpio_pin_direction_input()
170 static int gpio_pin_direction_output(struct gpio_chip *gc, unsigned offset, in gpio_pin_direction_output()
178 static int gpio_pin_get(struct gpio_chip *gc, unsigned offset) in gpio_pin_get()
[all …]
/linux/drivers/pinctrl/actions/
H A Dpinctrl-owl.c70 u32 bit, u32 width) in owl_read_field()
81 u32 bit, u32 width) in owl_write_field()
121 unsigned int offset) in owl_pin_dbg_show()
225 u32 *bit, in owl_pad_pinconf_reg()
261 u32 reg, bit, width, arg; in owl_pin_config_get() local
292 u32 reg, bit, width, arg; in owl_pin_config_set() local
325 u32 *bit, in owl_group_pinconf_reg()
429 u32 reg, bit, width, arg; in owl_group_config_get() local
458 u32 reg, bit, width, arg; in owl_group_config_set() local
534 static int owl_gpio_request(struct gpio_chip *chip, unsigned int offset) in owl_gpio_request()
[all …]
/linux/drivers/pinctrl/vt8500/
H A Dpinctrl-wmt.c88 u32 bit = WMT_BIT_FROM_PIN(pin); in wmt_set_pinmux() local
137 unsigned offset) in wmt_pmx_gpio_disable_free()
147 unsigned offset, in wmt_pmx_gpio_set_direction()
425 u32 bit = WMT_BIT_FROM_PIN(pin); in wmt_pinconf_set() local
480 static int wmt_gpio_get_direction(struct gpio_chip *chip, unsigned offset) in wmt_gpio_get_direction()
484 u32 bit = WMT_BIT_FROM_PIN(offset); in wmt_gpio_get_direction() local
495 static int wmt_gpio_get_value(struct gpio_chip *chip, unsigned offset) in wmt_gpio_get_value()
499 u32 bit = WMT_BIT_FROM_PIN(offset); in wmt_gpio_get_value() local
510 static int wmt_gpio_set_value(struct gpio_chip *chip, unsigned int offset, in wmt_gpio_set_value()
515 u32 bit = WMT_BIT_FROM_PIN(offset); in wmt_gpio_set_value() local
[all …]
/linux/arch/arm/include/asm/
H A Dbitops.h36 static inline void ____atomic_set_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_set_bit()
48 static inline void ____atomic_clear_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_clear_bit()
60 static inline void ____atomic_change_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_change_bit()
73 ____atomic_test_and_set_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_set_bit()
90 ____atomic_test_and_clear_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_clear_bit()
107 ____atomic_test_and_change_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_change_bit()
255 static inline int find_next_zero_bit_le(const void *p, int size, int offset) in find_next_zero_bit_le()
261 static inline int find_next_bit_le(const void *p, int size, int offset) in find_next_bit_le()
/linux/arch/mips/rb532/
H A Dgpio.c71 unsigned offset, void __iomem *ioaddr) in rb532_set_bit()
90 static inline int rb532_get_bit(unsigned offset, void __iomem *ioaddr) in rb532_get_bit()
97 static int rb532_gpio_get(struct gpio_chip *chip, unsigned offset) in rb532_gpio_get()
108 static int rb532_gpio_set(struct gpio_chip *chip, unsigned int offset, in rb532_gpio_set()
122 static int rb532_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in rb532_gpio_direction_input()
139 unsigned offset, int value) in rb532_gpio_direction_output()
178 void rb532_gpio_set_ilevel(int bit, unsigned gpio) in rb532_gpio_set_ilevel()
187 void rb532_gpio_set_istat(int bit, unsigned gpio) in rb532_gpio_set_istat()
/linux/fs/ufs/
H A Dutil.h283 unsigned int offset) in get_usb_offset()
338 #define ubh_blkmap(ubh,begin,bit) \ argument
366 #define ubh_setbit(ubh,begin,bit) \ argument
369 #define ubh_clrbit(ubh,begin,bit) \ argument
372 #define ubh_isset(ubh,begin,bit) \ argument
375 #define ubh_isclr(ubh,begin,bit) (!ubh_isset(ubh,begin,bit)) argument
379 #define ubh_find_next_zero_bit(ubh,begin,size,offset) _ubh_find_next_zero_bit_(uspi,ubh,begin,size,… argument
382 unsigned begin, unsigned size, unsigned offset) in _ubh_find_next_zero_bit_()
404 unsigned size, unsigned offset) in find_last_zero_bit()
406 unsigned bit, i; in find_last_zero_bit() local
[all …]
/linux/drivers/platform/cznic/
H A Dturris-omnia-mcu-gpio.c79 u8 bit; member
268 static int omnia_gpio_request(struct gpio_chip *gc, unsigned int offset) in omnia_gpio_request()
276 static int omnia_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) in omnia_gpio_get_direction()
303 static int omnia_gpio_direction_input(struct gpio_chip *gc, unsigned int offset) in omnia_gpio_direction_input()
320 unsigned int offset, int value) in omnia_gpio_direction_output()
338 static int omnia_gpio_get(struct gpio_chip *gc, unsigned int offset) in omnia_gpio_get()
442 static int omnia_gpio_set(struct gpio_chip *gc, unsigned int offset, int value) in omnia_gpio_set()
467 u8 bit = omnia_gpios[i].ctl_bit; in omnia_gpio_set_multiple() local
572 u8 bit = omnia_gpios[hwirq].int_bit; in omnia_irq_shutdown() local
583 u8 bit = omnia_gpios[hwirq].int_bit; in omnia_irq_mask() local
[all …]
/linux/net/netlabel/
H A Dnetlabel_kapi.c555 u32 offset, in _netlbl_catmap_getnode()
608 int netlbl_catmap_walk(struct netlbl_lsm_catmap *catmap, u32 offset) in netlbl_catmap_walk()
612 u32 bit; in netlbl_catmap_walk() local
663 int netlbl_catmap_walkrng(struct netlbl_lsm_catmap *catmap, u32 offset) in netlbl_catmap_walkrng()
668 u32 bit; in netlbl_catmap_walkrng() local
726 u32 *offset, in netlbl_catmap_getlong()
776 u32 bit, in netlbl_catmap_setbit()
843 u32 offset, in netlbl_catmap_setlong()
882 u32 offset, u8 state) in netlbl_bitmap_walk()
924 void netlbl_bitmap_setbit(unsigned char *bitmap, u32 bit, u8 state) in netlbl_bitmap_setbit()
/linux/drivers/irqchip/
H A Dirq-loongson-pch-pic.c65 static void pch_pic_bitset(struct pch_pic *priv, int offset, int bit) in pch_pic_bitset()
77 static void pch_pic_bitclr(struct pch_pic *priv, int offset, int bit) in pch_pic_bitclr()
100 int bit = hwirq_to_bit(priv, d->hwirq); in pch_pic_unmask_irq() local
112 int bit = hwirq_to_bit(priv, d->hwirq); in pch_pic_set_type() local
148 int bit = hwirq_to_bit(priv, d->hwirq); in pch_pic_ack_irq() local
H A Dirq-renesas-rzg2l.c96 u32 bit = BIT(hw_irq); in rzg2l_clear_irq_int() local
118 u32 bit = BIT(hwirq - IRQC_TINT_START); in rzg2l_clear_tint_int() local
149 u32 bit = BIT(hwirq - IRQC_IRQ_START); in rzfive_irqc_mask_irq_interrupt() local
157 u32 bit = BIT(hwirq - IRQC_IRQ_START); in rzfive_irqc_unmask_irq_interrupt() local
165 u32 bit = BIT(hwirq - IRQC_TINT_START); in rzfive_irqc_mask_tint_interrupt() local
173 u32 bit = BIT(hwirq - IRQC_TINT_START); in rzfive_irqc_unmask_tint_interrupt() local
212 u32 offset = hwirq - IRQC_TINT_START; in rzfive_tint_irq_endisable() local
257 u32 offset = hw_irq - IRQC_TINT_START; in rzg2l_tint_irq_endisable() local
/linux/drivers/leds/
H A Dleds-pca955x.c306 int bit = pca955x_led->led_num % 4; in pca955x_led_set() local
413 int bit = pca955x_led->led_num % 4; in pca955x_led_blink() local
472 static int pca955x_gpio_request_pin(struct gpio_chip *gc, unsigned int offset) in pca955x_gpio_request_pin()
479 static void pca955x_gpio_free_pin(struct gpio_chip *gc, unsigned int offset) in pca955x_gpio_free_pin()
486 static int pca955x_set_value(struct gpio_chip *gc, unsigned int offset, in pca955x_set_value()
498 static int pca955x_gpio_set_value(struct gpio_chip *gc, unsigned int offset, in pca955x_gpio_set_value()
504 static int pca955x_gpio_get_value(struct gpio_chip *gc, unsigned int offset) in pca955x_gpio_get_value()
517 unsigned int offset) in pca955x_gpio_direction_input()
527 unsigned int offset, int val) in pca955x_gpio_direction_output()
591 int bit, err, reg; in pca955x_probe() local
/linux/drivers/rtc/
H A Drtc-meson.c89 static void meson_rtc_send_bit(struct meson_rtc *rtc, unsigned int bit) in meson_rtc_send_bit()
99 u32 bit = 1 << (nr - 1); in meson_rtc_send_bits() local
118 int bit; in meson_rtc_get_data() local
257 static int meson_rtc_regmem_read(void *context, unsigned int offset, in meson_rtc_regmem_read()
269 static int meson_rtc_regmem_write(void *context, unsigned int offset, in meson_rtc_regmem_write()
/linux/drivers/reset/
H A Dreset-berlin.c40 int offset = id >> 8; in berlin_reset_reset() local
58 unsigned int offset, bit; in berlin_reset_xlate() local

12345678910