| /Linux-v5.4/drivers/spi/ |
| D | spi-geni-qcom.c | 93 struct spi_geni_master *mas, in get_spi_clk_cfg() argument 99 struct geni_se *se = &mas->se; in get_spi_clk_cfg() 102 ret = geni_se_clk_freq_match(&mas->se, in get_spi_clk_cfg() 103 speed_hz * mas->oversampling, in get_spi_clk_cfg() 106 dev_err(mas->dev, "Failed(%d) to find src clk for %dHz\n", in get_spi_clk_cfg() 111 *clk_div = DIV_ROUND_UP(sclk_freq, mas->oversampling * speed_hz); in get_spi_clk_cfg() 112 actual_hz = sclk_freq / (mas->oversampling * *clk_div); in get_spi_clk_cfg() 114 dev_dbg(mas->dev, "req %u=>%u sclk %lu, idx %d, div %d\n", speed_hz, in get_spi_clk_cfg() 118 dev_err(mas->dev, "clk_set_rate failed %d\n", ret); in get_spi_clk_cfg() 125 struct spi_geni_master *mas = spi_master_get_devdata(spi); in handle_fifo_timeout() local [all …]
|
| /Linux-v5.4/drivers/staging/uwb/ |
| D | allocator.c | 15 int col, mas, safe_mas, unsafe_mas; in uwb_rsv_fill_column_alloc() local 25 for (mas = 0; mas < UWB_MAS_PER_ZONE; mas++ ) { in uwb_rsv_fill_column_alloc() 26 if (bm[col * UWB_MAS_PER_ZONE + mas] == 0) { in uwb_rsv_fill_column_alloc() 37 bm[col * UWB_MAS_PER_ZONE + mas] = c; in uwb_rsv_fill_column_alloc() 45 int mas, col, rows; in uwb_rsv_fill_row_alloc() local 52 for (mas = UWB_MAS_PER_ZONE - 1; mas >= 0; mas--) { in uwb_rsv_fill_row_alloc() 53 if (ri->avail[mas] == 1) { in uwb_rsv_fill_row_alloc() 62 if (bm[col * UWB_NUM_ZONES + mas] != UWB_RSV_MAS_NOT_AVAIL) { in uwb_rsv_fill_row_alloc() 63 bm[col * UWB_NUM_ZONES + mas] = c; in uwb_rsv_fill_row_alloc() 197 int col, mas; in get_row_descriptors() local [all …]
|
| D | drp.c | 264 bitmap_and(mv->companion_mas.bm, rsv->mas.bm, conflicting_mas->bm, UWB_NUM_MAS); in handle_conflict_normal() 324 bitmap_andnot(mv->companion_mas.bm, rsv->mas.bm, in handle_conflict_expanding() 344 if (bitmap_intersects(rsv->mas.bm, conflicting_mas->bm, in uwb_drp_handle_conflict_rsv() 357 } else if (bitmap_intersects(rsv->mas.bm, conflicting_mas->bm, in uwb_drp_handle_conflict_rsv() 379 struct uwb_ie_drp *drp_ie, struct uwb_mas_bm *mas) in uwb_drp_process_target_accepted() argument 393 if (!bitmap_equal(rsv->mas.bm, mas->bm, UWB_NUM_MAS)) { in uwb_drp_process_target_accepted() 399 if (!bitmap_equal(rsv->mas.bm, mas->bm, UWB_NUM_MAS)) { in uwb_drp_process_target_accepted() 400 if (uwb_drp_avail_reserve_pending(rc, mas) == -EBUSY) { in uwb_drp_process_target_accepted() 407 drp_ie, mas); in uwb_drp_process_target_accepted() 410 bitmap_copy(mv->companion_mas.bm, mas->bm, in uwb_drp_process_target_accepted() [all …]
|
| D | drp-avail.c | 62 int uwb_drp_avail_reserve_pending(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_reserve_pending() argument 67 if (!bitmap_subset(mas->bm, avail.bm, UWB_NUM_MAS)) in uwb_drp_avail_reserve_pending() 70 bitmap_andnot(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); in uwb_drp_avail_reserve_pending() 79 void uwb_drp_avail_reserve(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_reserve() argument 81 bitmap_or(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); in uwb_drp_avail_reserve() 82 bitmap_andnot(rc->drp_avail.local, rc->drp_avail.local, mas->bm, UWB_NUM_MAS); in uwb_drp_avail_reserve() 91 void uwb_drp_avail_release(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_release() argument 93 bitmap_or(rc->drp_avail.local, rc->drp_avail.local, mas->bm, UWB_NUM_MAS); in uwb_drp_avail_release() 94 bitmap_or(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); in uwb_drp_avail_release()
|
| D | rsv.c | 329 bitmap_andnot(rsv->mas.bm, rsv->mas.bm, mv->companion_mas.bm, UWB_NUM_MAS); in uwb_rsv_set_state() 338 uwb_drp_avail_reserve(rsv->rc, &rsv->mas); in uwb_rsv_set_state() 349 bitmap_or(rsv->mas.bm, rsv->mas.bm, mv->companion_mas.bm, UWB_NUM_MAS); in uwb_rsv_set_state() 350 rsv->mas.safe += mv->companion_mas.safe; in uwb_rsv_set_state() 351 rsv->mas.unsafe += mv->companion_mas.unsafe; in uwb_rsv_set_state() 355 bitmap_andnot(mv->companion_mas.bm, rsv->mas.bm, mv->final_mas.bm, UWB_NUM_MAS); in uwb_rsv_set_state() 357 rsv->mas.safe = mv->final_mas.safe; in uwb_rsv_set_state() 358 rsv->mas.unsafe = mv->final_mas.unsafe; in uwb_rsv_set_state() 359 bitmap_copy(rsv->mas.bm, mv->final_mas.bm, UWB_NUM_MAS); in uwb_rsv_set_state() 360 bitmap_copy(rsv->mas.unsafe_bm, mv->final_mas.unsafe_bm, UWB_NUM_MAS); in uwb_rsv_set_state() [all …]
|
| D | drp-ie.c | 129 struct uwb_mas_bm *mas) in uwb_drp_ie_from_bm() argument 139 bitmap_copy(tmp_bmp, mas->bm, UWB_NUM_MAS); in uwb_drp_ie_from_bm() 190 unsafe = rsv->mas.unsafe ? 1 : 0; in uwb_drp_ie_update() 219 uwb_drp_ie_from_bm(drp_ie, &rsv->mas); in uwb_drp_ie_update() 258 int mas; in uwb_drp_ie_single_zone_to_bm() local 261 for (mas = 0; mas < UWB_MAS_PER_ZONE; mas++) { in uwb_drp_ie_single_zone_to_bm() 262 mas_mask = 1 << mas; in uwb_drp_ie_single_zone_to_bm() 264 set_bit(zone * UWB_NUM_ZONES + mas, bm->bm); in uwb_drp_ie_single_zone_to_bm()
|
| D | uwb-internal.h | 108 struct uwb_mas_bm mas; member 336 int uwb_drp_avail_reserve_pending(struct uwb_rc *rc, struct uwb_mas_bm *mas); 337 void uwb_drp_avail_reserve(struct uwb_rc *rc, struct uwb_mas_bm *mas); 338 void uwb_drp_avail_release(struct uwb_rc *rc, struct uwb_mas_bm *mas);
|
| D | uwb.h | 246 struct uwb_mas_bm mas; member 257 static inline void uwb_mas_bm_copy_le(void *dst, const struct uwb_mas_bm *mas) in uwb_mas_bm_copy_le() argument 259 bitmap_copy_le(dst, mas->bm, UWB_NUM_MAS); in uwb_mas_bm_copy_le() 315 void uwb_rsv_get_usable_mas(struct uwb_rsv *orig_rsv, struct uwb_mas_bm *mas);
|
| D | uwb-debug.c | 221 seq_printf(s, " %*pb\n", UWB_NUM_MAS, rsv->mas.bm); in reservations_show()
|
| /Linux-v5.4/drivers/staging/wusbcore/ |
| D | reservation.c | 21 const struct uwb_mas_bm *mas) in wusbhc_bwa_set() argument 23 if (mas == NULL) in wusbhc_bwa_set() 24 mas = &uwb_mas_bm_zero; in wusbhc_bwa_set() 25 return wusbhc->bwa_set(wusbhc, stream, mas); in wusbhc_bwa_set() 40 struct uwb_mas_bm mas; in wusbhc_rsv_complete_cb() local 45 uwb_rsv_get_usable_mas(rsv, &mas); in wusbhc_rsv_complete_cb() 47 UWB_NUM_MAS, mas.bm); in wusbhc_rsv_complete_cb() 48 wusbhc_bwa_set(wusbhc, rsv->stream, &mas); in wusbhc_rsv_complete_cb()
|
| /Linux-v5.4/drivers/media/pci/saa7164/ |
| D | saa7164-api.c | 615 u8 mas; in saa7164_api_set_dif() local 621 mas = 0xd0; in saa7164_api_set_dif() 623 mas = 0xe0; in saa7164_api_set_dif() 639 buf[0x0a] = mas; in saa7164_api_set_dif()
|
| /Linux-v5.4/drivers/staging/wusbcore/host/ |
| D | hwa-hc.c | 320 const struct uwb_mas_bm *mas) in __hwahc_op_bwa_set() argument 339 uwb_mas_bm_copy_le(mas_le, mas); in __hwahc_op_bwa_set()
|
| /Linux-v5.4/tools/power/cpupower/po/ |
| D | pt.po | 639 "- Tentando setar uma frequência específica, mas o regulador em nível de "
|