Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum2_kvdl.c59 unsigned int start_bit; in mlxsw_sp2_kvdl_part_find_zero_bits() local
64 start_bit = part->last_allocated_bit + 1; in mlxsw_sp2_kvdl_part_find_zero_bits()
65 if (start_bit == part->usage_bit_count) in mlxsw_sp2_kvdl_part_find_zero_bits()
66 start_bit = 0; in mlxsw_sp2_kvdl_part_find_zero_bits()
67 bit = start_bit; in mlxsw_sp2_kvdl_part_find_zero_bits()
75 if (wrap && bit + bit_count >= start_bit) in mlxsw_sp2_kvdl_part_find_zero_bits()
/drivers/staging/android/ion/
Dion.c235 int start_bit = -1, end_bit = -1; in ion_assign_heap_id() local
248 start_bit = __ffs(ION_HEAP_CARVEOUT_START); in ion_assign_heap_id()
252 start_bit = __ffs(ION_HEAP_DMA_START); in ion_assign_heap_id()
256 start_bit = __ffs(ION_HEAP_CUSTOM_START); in ion_assign_heap_id()
274 if (id_bit < start_bit || id_bit > end_bit) in ion_assign_heap_id()
278 start_bit); in ion_assign_heap_id()
/drivers/usb/mtu3/
Dmtu3_core.c27 u32 start_bit; in ep_fifo_alloc() local
36 start_bit = bitmap_find_next_zero_area(fifo->bitmap, in ep_fifo_alloc()
38 if (start_bit >= fifo->limit) in ep_fifo_alloc()
41 bitmap_set(fifo->bitmap, start_bit, num_bits); in ep_fifo_alloc()
43 mep->fifo_addr = fifo->base + MTU3_EP_FIFO_UNIT * start_bit; in ep_fifo_alloc()
46 __func__, mep->fifo_seg_size, mep->fifo_size, start_bit); in ep_fifo_alloc()
56 u32 start_bit; in ep_fifo_free() local
61 start_bit = (addr - fifo->base) / MTU3_EP_FIFO_UNIT; in ep_fifo_free()
62 bitmap_clear(fifo->bitmap, start_bit, bits); in ep_fifo_free()
67 __func__, mep->fifo_seg_size, mep->fifo_size, start_bit); in ep_fifo_free()
/drivers/i2c/busses/
Di2c-riic.c117 u8 start_bit; in riic_xfer() local
131 for (i = 0, start_bit = ICCR2_ST; i < num; i++) { in riic_xfer()
139 writeb(start_bit, riic->base + RIIC_ICCR2); in riic_xfer()
148 start_bit = ICCR2_RS; in riic_xfer()
Di2c-pnx.c80 start_bit = 1 << 8, enumerator
184 (slave_addr << 1) | start_bit | alg_data->mif.mode); in i2c_pnx_start()
187 iowrite32((slave_addr << 1) | start_bit | alg_data->mif.mode, in i2c_pnx_start()
/drivers/phy/cadence/
Dphy-cadence-dp.c123 unsigned char start_bit,
430 unsigned char start_bit, in cdns_dp_phy_write_field() argument
437 writel(((val << start_bit) | (read_val & ~(((1 << num_bits) - 1) << in cdns_dp_phy_write_field()
438 start_bit))), cdns_phy->base + offset); in cdns_dp_phy_write_field()
/drivers/iio/adc/
Dmcp320x.c101 int start_bit = 1; in mcp320x_channel_to_tx_data() local
106 return ((start_bit << 4) | (!differential << 3) | in mcp320x_channel_to_tx_data()
112 return ((start_bit << 6) | (!differential << 5) | in mcp320x_channel_to_tx_data()
/drivers/input/mouse/
Dalps.c369 point->start_bit = i; in alps_get_bitmap_points()
419 x_high.start_bit = x_low.start_bit + i; in alps_process_bitmap()
425 y_high.start_bit = y_low.start_bit + i; in alps_process_bitmap()
431 (priv->x_max * (2 * x_low.start_bit + x_low.num_bits - 1)) / in alps_process_bitmap()
434 (priv->y_max * (2 * y_low.start_bit + y_low.num_bits - 1)) / in alps_process_bitmap()
439 (priv->x_max * (2 * x_high.start_bit + x_high.num_bits - 1)) / in alps_process_bitmap()
442 (priv->y_max * (2 * y_low.start_bit + y_low.num_bits - 1)) / in alps_process_bitmap()
447 (priv->x_max * (2 * x_high.start_bit + x_high.num_bits - 1)) / in alps_process_bitmap()
450 (priv->y_max * (2 * y_high.start_bit + y_high.num_bits - 1)) / in alps_process_bitmap()
455 (priv->x_max * (2 * x_low.start_bit + x_low.num_bits - 1)) / in alps_process_bitmap()
[all …]
Dalps.h211 int start_bit; member
/drivers/net/ethernet/microchip/
Dlan743x_main.h749 #define DMAC_CHANNEL_STATE_SET(start_bit, stop_bit) \ argument
750 (((start_bit) ? 2 : 0) | ((stop_bit) ? 1 : 0))
/drivers/gpu/drm/rockchip/
Dcdn-dp-reg.c199 u8 start_bit, u8 bits_no, u32 val) in cdn_dp_reg_write_bit() argument
205 field[2] = start_bit; in cdn_dp_reg_write_bit()
/drivers/video/fbdev/via/
Dhw.h345 u8 start_bit; member
Dhw.c979 start_index = reg[i].start_bit; in viafb_load_reg()
/drivers/mmc/host/
Dmtk-sd.c1707 static int get_delay_len(u32 delay, u32 start_bit) in get_delay_len() argument
1711 for (i = 0; i < (PAD_DELAY_MAX - start_bit); i++) { in get_delay_len()
1712 if (test_delay_bit(delay, start_bit + i) == 0) in get_delay_len()
1715 return PAD_DELAY_MAX - start_bit; in get_delay_len()
Drtsx_pci_sdmmc.c635 static int sd_get_phase_len(u32 phase_map, unsigned int start_bit) in sd_get_phase_len() argument
640 if (test_phase_bit(phase_map, start_bit + i) == 0) in sd_get_phase_len()
/drivers/edac/
Damd64_edac.c1147 u8 start_bit = 1; in get_error_address() local
1158 start_bit = 3; in get_error_address()
1162 addr = m->addr & GENMASK_ULL(end_bit, start_bit); in get_error_address()