Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 25 of 837) sorted by relevance

12345678910>>...34

/drivers/clk/bcm/
Dclk-bcm63xx-gate.c19 u8 bit; member
33 .bit = BCM3368_CLK_MAC,
36 .bit = BCM3368_CLK_TC,
39 .bit = BCM3368_CLK_US_TOP,
42 .bit = BCM3368_CLK_DS_TOP,
45 .bit = BCM3368_CLK_ACM,
48 .bit = BCM3368_CLK_SPI,
51 .bit = BCM3368_CLK_USBS,
54 .bit = BCM3368_CLK_BMU,
57 .bit = BCM3368_CLK_PCM,
[all …]
/drivers/soc/bcm/bcm63xx/
Dbcm63xx-power.c35 uint8_t bit; member
117 max_bit = max(max_bit, entry->bit); in bcm63xx_power_probe()
146 pmd->mask = BIT(entry->bit); in bcm63xx_power_probe()
159 power->genpd[entry->bit] = &pmd->genpd; in bcm63xx_power_probe()
180 .bit = BCM6318_POWER_DOMAIN_PCIE,
183 .bit = BCM6318_POWER_DOMAIN_USB,
186 .bit = BCM6318_POWER_DOMAIN_EPHY0,
189 .bit = BCM6318_POWER_DOMAIN_EPHY1,
192 .bit = BCM6318_POWER_DOMAIN_EPHY2,
195 .bit = BCM6318_POWER_DOMAIN_EPHY3,
[all …]
/drivers/acpi/pmic/
Dintel_pmic_bxtwc.c31 .bit = VR_MODE_AUTO,
36 .bit = VR_MODE_AUTO,
41 .bit = VR_MODE_AUTO,
46 .bit = VR_MODE_AUTO,
51 .bit = VR_MODE_NORMAL,
56 .bit = VR_MODE_NORMAL,
61 .bit = VR_MODE_NORMAL,
66 .bit = VR_MODE_NORMAL,
71 .bit = VR_MODE_NORMAL,
76 .bit = VR_MODE_NORMAL,
[all …]
Dintel_pmic_chtwc.c77 .bit = 0x01,
82 .bit = 0x07,
87 .bit = 0x01,
92 .bit = 0x07,
97 .bit = 0x07,
102 .bit = 0x07,
107 .bit = 0x01,
112 .bit = 0x07,
117 .bit = 0x07,
142 .bit = 0x07,
[all …]
Dintel_pmic_bytcrc.c28 .bit = 0x00,
33 .bit = 0x00,
38 .bit = 0x00,
43 .bit = 0x00,
48 .bit = 0x00,
53 .bit = 0x00,
58 .bit = 0x00,
68 .bit = 0x00,
78 .bit = 0x00,
83 .bit = 0x00,
[all …]
Dintel_pmic_xpower.c33 .bit = 0x05,
38 .bit = 0x06,
43 .bit = 0x07,
48 .bit = 0x03,
53 .bit = 0x04,
58 .bit = 0x05,
63 .bit = 0x06,
68 .bit = 0x00,
73 .bit = 0x01,
78 .bit = 0x02,
[all …]
/drivers/memory/tegra/
Dtegra210.c21 .bit = 1,
35 .bit = 2,
49 .bit = 3,
63 .bit = 4,
77 .bit = 5,
91 .bit = 6,
105 .bit = 14,
119 .bit = 15,
133 .bit = 16,
147 .bit = 17,
[all …]
Dtegra30.c45 .bit = 1,
59 .bit = 2,
73 .bit = 3,
87 .bit = 4,
101 .bit = 5,
115 .bit = 6,
129 .bit = 7,
143 .bit = 8,
157 .bit = 9,
171 .bit = 10,
[all …]
Dtegra114.c24 .bit = 1,
38 .bit = 2,
52 .bit = 3,
66 .bit = 4,
80 .bit = 5,
94 .bit = 6,
108 .bit = 9,
122 .bit = 10,
136 .bit = 11,
150 .bit = 15,
[all …]
Dtegra124.c24 .bit = 1,
38 .bit = 2,
52 .bit = 3,
66 .bit = 4,
80 .bit = 5,
94 .bit = 6,
108 .bit = 14,
122 .bit = 15,
136 .bit = 16,
150 .bit = 17,
[all …]
/drivers/net/wireless/zydas/zd1211rw/
Dzd_rf_rf2959.c39 static int bit(u32 rw, int bit)
41 return bits(rw, bit, bit);
54 bits(rw, 14, 15), bit(rw, 3), bit(rw, 2), bit(rw, 1),
55 bit(rw, 0));
61 bit(rw, 17), bit(rw, 16), bit(rw, 15), bit(rw, 14),
62 bit(rw, 13), bit(rw, 12), bit(rw, 11), bit(rw, 10),
80 bit(rw, 17), bit(rw, 16), bit(rw, 15), bit(rw, 14),
81 bit(rw, 13), bit(rw, 12), bit(rw, 11), bit(rw, 10),
104 bit(rw, 17), bits(rw, 15, 16), bits(rw, 10, 14),
105 bits(rw, 7, 9), bits(rw, 4, 6), bit(rw, 3), bit(rw, 2),
[all …]
/drivers/auxdisplay/
Dks0108.c61 #define bit(n) (((unsigned char)1)<<(n)) macro
71 parport_write_control(ks0108_parport, byte ^ (bit(0) | bit(1) | bit(3))); in ks0108_writecontrol()
76 ks0108_writedata((state ? bit(0) : 0) | bit(1) | bit(2) | bit(3) | bit(4) | bit(5)); in ks0108_displaystate()
81 ks0108_writedata(min_t(unsigned char, startline, 63) | bit(6) | in ks0108_startline()
82 bit(7)); in ks0108_startline()
87 ks0108_writedata(min_t(unsigned char, address, 63) | bit(6)); in ks0108_address()
92 ks0108_writedata(min_t(unsigned char, page, 7) | bit(3) | bit(4) | in ks0108_page()
93 bit(5) | bit(7)); in ks0108_page()
/drivers/gpio/
Dgpio-sta2x11.c57 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_set() local
60 writel(bit, &regs->dats); in gsta_gpio_set()
62 writel(bit, &regs->datc); in gsta_gpio_set()
69 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_get() local
71 return !!(readl(&regs->dat) & bit); in gsta_gpio_get()
79 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_direction_output() local
81 writel(bit, &regs->dirs); in gsta_gpio_direction_output()
84 writel(bit, &regs->dats); in gsta_gpio_direction_output()
86 writel(bit, &regs->datc); in gsta_gpio_direction_output()
94 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_direction_input() local
[all …]
/drivers/irqchip/
Dirq-renesas-h8300h.c31 int bit; in h8300h_disable_irq() local
34 bit = ipr_bit[irq]; in h8300h_disable_irq()
35 if (bit >= 0) { in h8300h_disable_irq()
36 if (bit < 8) in h8300h_disable_irq()
37 ctrl_bclr(bit & 7, IPR); in h8300h_disable_irq()
39 ctrl_bclr(bit & 7, (IPR+1)); in h8300h_disable_irq()
45 int bit; in h8300h_enable_irq() local
48 bit = ipr_bit[irq]; in h8300h_enable_irq()
49 if (bit >= 0) { in h8300h_enable_irq()
50 if (bit < 8) in h8300h_enable_irq()
[all …]
/drivers/media/test-drivers/vivid/
Dvivid-vbi-gen.c29 unsigned bit = 0; in vivid_vbi_gen_wss_raw() local
33 wss_insert(wss + bit, 0x1f1c71c7, 29); bit += 29; in vivid_vbi_gen_wss_raw()
34 wss_insert(wss + bit, 0x1e3c1f, 24); bit += 24; in vivid_vbi_gen_wss_raw()
37 for (i = 0; i <= 13; i++, bit += 6) in vivid_vbi_gen_wss_raw()
38 wss_insert(wss + bit, (wss_data & (1 << i)) ? one : zero, 6); in vivid_vbi_gen_wss_raw()
40 for (i = 0, bit = 0; bit < sizeof(wss); bit++) { in vivid_vbi_gen_wss_raw()
41 unsigned n = ((bit + 1) * sampling_rate) / rate; in vivid_vbi_gen_wss_raw()
44 buf[i++] = wss[bit]; in vivid_vbi_gen_wss_raw()
53 unsigned bit = 0; in vivid_vbi_gen_teletext_raw() local
60 for (i = 0, bit = 0; bit < sizeof(teletext) * 8; bit++) { in vivid_vbi_gen_teletext_raw()
[all …]
/drivers/s390/cio/
Dairq.c225 unsigned long bit, i, flags; in airq_iv_alloc() local
230 bit = find_first_bit_inv(iv->avail, iv->bits); in airq_iv_alloc()
231 while (bit + num <= iv->bits) { in airq_iv_alloc()
233 if (!test_bit_inv(bit + i, iv->avail)) in airq_iv_alloc()
238 clear_bit_inv(bit + i, iv->avail); in airq_iv_alloc()
239 if (bit + num >= iv->end) in airq_iv_alloc()
240 iv->end = bit + num + 1; in airq_iv_alloc()
243 bit = find_next_bit_inv(iv->avail, iv->bits, bit + i + 1); in airq_iv_alloc()
245 if (bit + num > iv->bits) in airq_iv_alloc()
246 bit = -1UL; in airq_iv_alloc()
[all …]
/drivers/media/tuners/
Dmxl5005s.c237 u16 bit[25]; /* Array of bit pos in Reg Addr for each bit pos */ member
301 static void MXL_RegWriteBit(struct dvb_frontend *fe, u8 address, u8 bit,
730 state->Init_Ctrl[0].bit[0] = 7; in MXL5005_ControlInit()
736 state->Init_Ctrl[1].bit[0] = 2; in MXL5005_ControlInit()
742 state->Init_Ctrl[2].bit[0] = 1; in MXL5005_ControlInit()
745 state->Init_Ctrl[2].bit[1] = 0; in MXL5005_ControlInit()
751 state->Init_Ctrl[3].bit[0] = 0; in MXL5005_ControlInit()
757 state->Init_Ctrl[4].bit[0] = 5; in MXL5005_ControlInit()
760 state->Init_Ctrl[4].bit[1] = 6; in MXL5005_ControlInit()
763 state->Init_Ctrl[4].bit[2] = 7; in MXL5005_ControlInit()
[all …]
/drivers/pinctrl/
Dpinctrl-rockchip.c333 u8 bit; member
378 int *reg, u8 *bit);
381 int *reg, u8 *bit);
384 int *reg, u8 *bit);
599 .bit = 0,
605 .bit = 2,
611 .bit = 4,
617 .bit = 6,
623 .bit = 8,
629 .bit = 10,
[all …]
/drivers/pinctrl/meson/
Dpinctrl-meson.c99 unsigned int *reg, unsigned int *bit) in meson_calc_reg_and_bit() argument
103 *bit = (desc->bit + pin - bank->first) * meson_bit_strides[reg_type]; in meson_calc_reg_and_bit()
104 *reg = (desc->reg + (*bit / 32)) * 4; in meson_calc_reg_and_bit()
105 *bit &= 0x1f; in meson_calc_reg_and_bit()
185 unsigned int reg, bit; in meson_pinconf_set_gpio_bit() local
192 meson_calc_reg_and_bit(bank, pin, reg_type, &reg, &bit); in meson_pinconf_set_gpio_bit()
193 return regmap_update_bits(pc->reg_gpio, reg, BIT(bit), in meson_pinconf_set_gpio_bit()
194 arg ? BIT(bit) : 0); in meson_pinconf_set_gpio_bit()
202 unsigned int reg, bit, val; in meson_pinconf_get_gpio_bit() local
209 meson_calc_reg_and_bit(bank, pin, reg_type, &reg, &bit); in meson_pinconf_get_gpio_bit()
[all …]
/drivers/soc/zte/
Dzx296718_pm_domains.c38 .bit = PCU_DM_VOU,
47 .bit = PCU_DM_SAPPU,
56 .bit = PCU_DM_VDE,
65 .bit = PCU_DM_VCE,
74 .bit = PCU_DM_HDE,
83 .bit = PCU_DM_VIU,
92 .bit = PCU_DM_USB20,
101 .bit = PCU_DM_USB21,
110 .bit = PCU_DM_USB30,
119 .bit = PCU_DM_HSIC,
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum2_kvdl.c60 unsigned int bit; in mlxsw_sp2_kvdl_part_find_zero_bits() local
67 bit = start_bit; in mlxsw_sp2_kvdl_part_find_zero_bits()
69 bit = find_next_zero_bit(part->usage, part->usage_bit_count, bit); in mlxsw_sp2_kvdl_part_find_zero_bits()
70 if (!wrap && bit + bit_count >= part->usage_bit_count) { in mlxsw_sp2_kvdl_part_find_zero_bits()
72 bit = 0; in mlxsw_sp2_kvdl_part_find_zero_bits()
75 if (wrap && bit + bit_count >= start_bit) in mlxsw_sp2_kvdl_part_find_zero_bits()
78 if (test_bit(bit + i, part->usage)) { in mlxsw_sp2_kvdl_part_find_zero_bits()
79 bit += bit_count; in mlxsw_sp2_kvdl_part_find_zero_bits()
83 *p_bit = bit; in mlxsw_sp2_kvdl_part_find_zero_bits()
92 unsigned int bit; in mlxsw_sp2_kvdl_part_alloc() local
[all …]
/drivers/net/wireguard/
Dallowedips.c63 push_rcu(stack, node->bit[0], &len); in root_free_rcu()
64 push_rcu(stack, node->bit[1], &len); in root_free_rcu()
75 push_rcu(stack, node->bit[0], &len); in root_remove_peer_lists()
76 push_rcu(stack, node->bit[1], &len); in root_remove_peer_lists()
121 node = rcu_dereference_bh(node->bit[choose(node, key)]); in find_node()
163 node = rcu_dereference_protected(parent->bit[choose(parent, key)], lockdep_is_held(lock)); in node_placement()
169 static inline void connect_node(struct allowedips_node __rcu **parent, u8 bit, struct allowedips_no… in connect_node() argument
171 node->parent_bit_packed = (unsigned long)parent | bit; in connect_node()
177 u8 bit = choose(parent, node->bits); in choose_and_connect_node() local
178 connect_node(&parent->bit[bit], bit, node); in choose_and_connect_node()
[all …]
/drivers/hwmon/
Demc1403.c169 static SENSOR_DEVICE_ATTR_2_RO(temp1_min_alarm, bit, 0x36, 0x01);
170 static SENSOR_DEVICE_ATTR_2_RO(temp1_max_alarm, bit, 0x35, 0x01);
171 static SENSOR_DEVICE_ATTR_2_RO(temp1_crit_alarm, bit, 0x37, 0x01);
180 static SENSOR_DEVICE_ATTR_2_RO(temp2_fault, bit, 0x1b, 0x02);
181 static SENSOR_DEVICE_ATTR_2_RO(temp2_min_alarm, bit, 0x36, 0x02);
182 static SENSOR_DEVICE_ATTR_2_RO(temp2_max_alarm, bit, 0x35, 0x02);
183 static SENSOR_DEVICE_ATTR_2_RO(temp2_crit_alarm, bit, 0x37, 0x02);
192 static SENSOR_DEVICE_ATTR_2_RO(temp3_fault, bit, 0x1b, 0x04);
193 static SENSOR_DEVICE_ATTR_2_RO(temp3_min_alarm, bit, 0x36, 0x04);
194 static SENSOR_DEVICE_ATTR_2_RO(temp3_max_alarm, bit, 0x35, 0x04);
[all …]
/drivers/media/pci/cx25821/
Dcx25821-gpio.c16 int bit = pin_number; in cx25821_set_gpiopin_direction() local
26 bit = pin_number - 31; in cx25821_set_gpiopin_direction()
34 value = gpio_register | Set_GPIO_Bit(bit); in cx25821_set_gpiopin_direction()
36 value = gpio_register & Clear_GPIO_Bit(bit); in cx25821_set_gpiopin_direction()
45 int bit = pin_number; in cx25821_set_gpiopin_logicvalue() local
57 bit = pin_number - 31; in cx25821_set_gpiopin_logicvalue()
64 value &= Clear_GPIO_Bit(bit); in cx25821_set_gpiopin_logicvalue()
66 value |= Set_GPIO_Bit(bit); in cx25821_set_gpiopin_logicvalue()
/drivers/block/drbd/
Ddrbd_vli.h195 unsigned int bit; member
202 cur->bit = 0; in bitstream_cursor_reset()
209 bits += cur->bit; in bitstream_cursor_advance()
211 cur->bit = bits & 7; in bitstream_cursor_advance()
256 if ((bs->cur.b + ((bs->cur.bit + bits -1) >> 3)) - bs->buf >= bs->buf_len) in bitstream_put_bits()
263 *b++ |= (val & 0xff) << bs->cur.bit; in bitstream_put_bits()
265 for (tmp = 8 - bs->cur.bit; tmp < bits; tmp += 8) in bitstream_put_bits()
289 if (bs->cur.b + ((bs->cur.bit + bs->pad_bits + bits -1) >> 3) - bs->buf >= bs->buf_len) in bitstream_get_bits()
291 - bs->cur.bit - bs->pad_bits; in bitstream_get_bits()
300 n = (bs->cur.bit + bits + 7) >> 3; in bitstream_get_bits()
[all …]

12345678910>>...34