Lines Matching refs:minfo
114 struct ti_sci_xfers_info minfo; member
248 struct ti_sci_xfers_info *minfo = &info->minfo; in ti_sci_rx_callback() local
260 if (!test_bit(xfer_id, minfo->xfer_alloc_table)) { in ti_sci_rx_callback()
265 xfer = &minfo->xfer_block[xfer_id]; in ti_sci_rx_callback()
309 struct ti_sci_xfers_info *minfo = &info->minfo; in ti_sci_get_one_xfer() local
330 ret = down_timeout(&minfo->sem_xfer_count, timeout); in ti_sci_get_one_xfer()
335 spin_lock_irqsave(&minfo->xfer_lock, flags); in ti_sci_get_one_xfer()
336 bit_pos = find_first_zero_bit(minfo->xfer_alloc_table, in ti_sci_get_one_xfer()
338 set_bit(bit_pos, minfo->xfer_alloc_table); in ti_sci_get_one_xfer()
339 spin_unlock_irqrestore(&minfo->xfer_lock, flags); in ti_sci_get_one_xfer()
350 xfer = &minfo->xfer_block[xfer_id]; in ti_sci_get_one_xfer()
375 static void ti_sci_put_one_xfer(struct ti_sci_xfers_info *minfo, in ti_sci_put_one_xfer() argument
390 spin_lock_irqsave(&minfo->xfer_lock, flags); in ti_sci_put_one_xfer()
391 clear_bit(xfer_id, minfo->xfer_alloc_table); in ti_sci_put_one_xfer()
392 spin_unlock_irqrestore(&minfo->xfer_lock, flags); in ti_sci_put_one_xfer()
395 up(&minfo->sem_xfer_count); in ti_sci_put_one_xfer()
494 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_get_revision()
561 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_set_device_state()
631 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_get_device_state()
924 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_set_device_resets()
1005 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_set_clock_state()
1080 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_get_clock_state()
1309 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_clk_set_parent()
1378 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_clk_get_parent()
1448 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_clk_get_num_parents()
1526 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_clk_get_match_freq()
1599 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_clk_set_freq()
1664 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_clk_get_freq()
1710 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_core_reboot()
1783 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_get_resource_range()
1900 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_manage_irq()
2126 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_rm_ring_cfg()
2182 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_rm_psil_pair()
2238 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_rm_psil_unpair()
2310 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_rm_udmap_tx_ch_cfg()
2379 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_rm_udmap_rx_ch_cfg()
2453 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_rm_udmap_rx_flow_cfg()
2505 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_proc_request()
2557 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_proc_release()
2613 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_proc_handover()
2675 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_proc_set_config()
2733 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_proc_set_control()
2795 ti_sci_put_one_xfer(&info->minfo, xfer); in ti_sci_cmd_proc_get_status()
3348 struct ti_sci_xfers_info *minfo; in ti_sci_probe() local
3384 minfo = &info->minfo; in ti_sci_probe()
3395 minfo->xfer_block = devm_kcalloc(dev, in ti_sci_probe()
3397 sizeof(*minfo->xfer_block), in ti_sci_probe()
3399 if (!minfo->xfer_block) in ti_sci_probe()
3402 minfo->xfer_alloc_table = devm_kcalloc(dev, in ti_sci_probe()
3406 if (!minfo->xfer_alloc_table) in ti_sci_probe()
3408 bitmap_zero(minfo->xfer_alloc_table, desc->max_msgs); in ti_sci_probe()
3411 for (i = 0, xfer = minfo->xfer_block; i < desc->max_msgs; i++, xfer++) { in ti_sci_probe()
3433 spin_lock_init(&minfo->xfer_lock); in ti_sci_probe()
3434 sema_init(&minfo->sem_xfer_count, desc->max_msgs); in ti_sci_probe()