/drivers/clk/bcm/ |
D | clk-bcm63xx-gate.c | 19 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/ |
D | bcm63xx-power.c | 35 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/ |
D | intel_pmic_bxtwc.c | 31 .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 …]
|
D | intel_pmic_chtwc.c | 77 .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 …]
|
D | intel_pmic_bytcrc.c | 28 .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 …]
|
D | intel_pmic_xpower.c | 33 .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/ |
D | tegra210.c | 21 .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 …]
|
D | tegra30.c | 45 .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 …]
|
D | tegra114.c | 24 .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 …]
|
D | tegra124.c | 24 .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/ |
D | zd_rf_rf2959.c | 39 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/ |
D | ks0108.c | 61 #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/ |
D | gpio-sta2x11.c | 57 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_set() local 60 writel(bit, ®s->dats); in gsta_gpio_set() 62 writel(bit, ®s->datc); in gsta_gpio_set() 69 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_get() local 71 return !!(readl(®s->dat) & bit); in gsta_gpio_get() 79 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_direction_output() local 81 writel(bit, ®s->dirs); in gsta_gpio_direction_output() 84 writel(bit, ®s->dats); in gsta_gpio_direction_output() 86 writel(bit, ®s->datc); in gsta_gpio_direction_output() 94 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_direction_input() local [all …]
|
/drivers/irqchip/ |
D | irq-renesas-h8300h.c | 31 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/ |
D | vivid-vbi-gen.c | 29 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/ |
D | airq.c | 225 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/ |
D | mxl5005s.c | 237 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/ |
D | pinctrl-rockchip.c | 333 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/ |
D | pinctrl-meson.c | 99 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, ®, &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, ®, &bit); in meson_pinconf_get_gpio_bit() [all …]
|
/drivers/soc/zte/ |
D | zx296718_pm_domains.c | 38 .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/ |
D | spectrum2_kvdl.c | 60 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/ |
D | allowedips.c | 63 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/ |
D | emc1403.c | 169 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/ |
D | cx25821-gpio.c | 16 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/ |
D | drbd_vli.h | 195 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 …]
|