Lines Matching refs:buff_len
3419 int buff_len; in ufshcd_read_desc_param() local
3427 ufshcd_map_desc_id_to_length(hba, desc_id, &buff_len); in ufshcd_read_desc_param()
3428 if (!buff_len) { in ufshcd_read_desc_param()
3433 if (param_offset >= buff_len) { in ufshcd_read_desc_param()
3435 __func__, param_offset, desc_id, buff_len); in ufshcd_read_desc_param()
3440 if (param_offset != 0 || param_size < buff_len) { in ufshcd_read_desc_param()
3441 desc_buf = kzalloc(buff_len, GFP_KERNEL); in ufshcd_read_desc_param()
3452 desc_buf, &buff_len); in ufshcd_read_desc_param()
3469 buff_len = desc_buf[QUERY_DESC_LENGTH_OFFSET]; in ufshcd_read_desc_param()
3470 ufshcd_update_desc_length(hba, desc_id, desc_index, buff_len); in ufshcd_read_desc_param()
3474 if (param_offset >= buff_len) in ufshcd_read_desc_param()
3478 min_t(u32, param_size, buff_len - param_offset)); in ufshcd_read_desc_param()
6844 u8 *desc_buff, int *buff_len, in ufshcd_issue_devman_upiu_cmd() argument
6885 memcpy(lrbp->ucd_req_ptr + 1, desc_buff, *buff_len); in ufshcd_issue_devman_upiu_cmd()
6886 *buff_len = 0; in ufshcd_issue_devman_upiu_cmd()
6910 if (*buff_len >= resp_len) { in ufshcd_issue_devman_upiu_cmd()
6912 *buff_len = resp_len; in ufshcd_issue_devman_upiu_cmd()
6916 __func__, resp_len, *buff_len); in ufshcd_issue_devman_upiu_cmd()
6917 *buff_len = 0; in ufshcd_issue_devman_upiu_cmd()
6947 u8 *desc_buff, int *buff_len, in ufshcd_exec_raw_upiu_cmd() argument
6964 desc_buff, buff_len, in ufshcd_exec_raw_upiu_cmd()
7487 int buff_len = hba->desc_size[QUERY_DESC_IDN_POWER]; in ufshcd_set_active_icc_lvl() local
7491 desc_buf = kmalloc(buff_len, GFP_KERNEL); in ufshcd_set_active_icc_lvl()
7496 desc_buf, buff_len); in ufshcd_set_active_icc_lvl()
7500 __func__, buff_len, ret); in ufshcd_set_active_icc_lvl()
7505 buff_len); in ufshcd_set_active_icc_lvl()
7980 size_t buff_len; in ufshcd_device_geo_params_init() local
7983 buff_len = hba->desc_size[QUERY_DESC_IDN_GEOMETRY]; in ufshcd_device_geo_params_init()
7984 desc_buf = kmalloc(buff_len, GFP_KERNEL); in ufshcd_device_geo_params_init()
7991 desc_buf, buff_len); in ufshcd_device_geo_params_init()