Searched refs:remain_len (Results 1 - 10 of 10) sorted by relevance

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-viperboard.c121 u16 remain_len, len1, len2, start = 0x0000; vprbrd_i2c_read() local
125 remain_len = msg->len; vprbrd_i2c_read()
127 while (remain_len > 0) { vprbrd_i2c_read()
129 if (remain_len <= 255) { vprbrd_i2c_read()
130 len1 = remain_len; vprbrd_i2c_read()
132 rmsg->header.len0 = remain_len; vprbrd_i2c_read()
138 remain_len = 0; vprbrd_i2c_read()
139 } else if (remain_len <= 510) { vprbrd_i2c_read()
140 len1 = remain_len; vprbrd_i2c_read()
142 rmsg->header.len0 = remain_len - 255; vprbrd_i2c_read()
148 remain_len = 0; vprbrd_i2c_read()
149 } else if (remain_len <= 512) { vprbrd_i2c_read()
150 len1 = remain_len; vprbrd_i2c_read()
152 rmsg->header.len0 = remain_len - 510; vprbrd_i2c_read()
158 remain_len = 0; vprbrd_i2c_read()
159 } else if (remain_len <= 767) { vprbrd_i2c_read()
161 len2 = remain_len - 512; vprbrd_i2c_read()
165 rmsg->header.len3 = remain_len - 512; vprbrd_i2c_read()
168 remain_len = 0; vprbrd_i2c_read()
169 } else if (remain_len <= 1022) { vprbrd_i2c_read()
171 len2 = remain_len - 512; vprbrd_i2c_read()
175 rmsg->header.len3 = remain_len - 767; vprbrd_i2c_read()
178 remain_len = 0; vprbrd_i2c_read()
179 } else if (remain_len <= 1024) { vprbrd_i2c_read()
181 len2 = remain_len - 512; vprbrd_i2c_read()
185 rmsg->header.len3 = remain_len - 1022; vprbrd_i2c_read()
188 remain_len = 0; vprbrd_i2c_read()
198 remain_len -= 1024; vprbrd_i2c_read()
226 u16 remain_len, bytes_xfer, vprbrd_i2c_write() local
231 remain_len = msg->len; vprbrd_i2c_write()
236 while (remain_len > 0) { vprbrd_i2c_write()
238 if (remain_len > 503) { vprbrd_i2c_write()
241 remain_len -= 503; vprbrd_i2c_write()
244 } else if (remain_len > 255) { vprbrd_i2c_write()
246 wmsg->header.len2 = (remain_len - 255); vprbrd_i2c_write()
247 bytes_xfer = remain_len + vprbrd_i2c_write()
249 remain_len = 0; vprbrd_i2c_write()
251 wmsg->header.len1 = remain_len; vprbrd_i2c_write()
253 bytes_xfer = remain_len + vprbrd_i2c_write()
255 remain_len = 0; vprbrd_i2c_write()
/linux-4.4.14/drivers/staging/rtl8723au/core/
H A Drtw_ieee80211.c282 uint remain_len = search_len - (remain_ies - start); rtw_ies_remove_ie23a() local
284 memcpy(buf, remain_ies, remain_len); rtw_ies_remove_ie23a()
285 memcpy(target_ie, buf, remain_len); rtw_ies_remove_ie23a()
290 search_len = remain_len; rtw_ies_remove_ie23a()
H A Drtw_mlme_ext.c2321 u32 remain_len; update_hidden_ssid() local
2332 remain_len = ies_len -(next_ie-ies); update_hidden_ssid()
2335 memcpy(ssid_ie+2, next_ie, remain_len); update_hidden_ssid()
/linux-4.4.14/drivers/spi/
H A Dspi-tegra20-sflash.c172 unsigned remain_len = t->len - tsd->cur_pos; tegra_sflash_calculate_curr_xfer_param() local
176 max_word = remain_len / tsd->bytes_per_word; tegra_sflash_calculate_curr_xfer_param()
H A Dspi-tegra114.c254 unsigned remain_len = t->len - tspi->cur_pos; tegra_spi_calculate_curr_xfer_param() local
271 max_len = min(remain_len, tspi->max_buf_size); tegra_spi_calculate_curr_xfer_param()
275 max_word = (remain_len - 1) / tspi->bytes_per_word + 1; tegra_spi_calculate_curr_xfer_param()
H A Dspi-tegra20-slink.c269 unsigned remain_len = t->len - tspi->cur_pos; tegra_slink_calculate_curr_xfer_param() local
288 max_len = min(remain_len, tspi->max_buf_size); tegra_slink_calculate_curr_xfer_param()
292 max_word = (remain_len - 1) / tspi->bytes_per_word + 1; tegra_slink_calculate_curr_xfer_param()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
H A Drtw_ieee80211.c318 uint remain_len = search_len - (remain_ies - start); rtw_ies_remove_ie() local
320 memcpy(buf, remain_ies, remain_len); rtw_ies_remove_ie()
321 memcpy(target_ie, buf, remain_len); rtw_ies_remove_ie()
326 search_len = remain_len; rtw_ies_remove_ie()
H A Drtw_mlme_ext.c301 u32 remain_len = 0; update_hidden_ssid() local
303 remain_len = ies_len - (next_ie - ies); update_hidden_ssid()
306 memcpy(ssid_ie+2, next_ie, remain_len); update_hidden_ssid()
/linux-4.4.14/drivers/dma/
H A Dtegra20-apb-dma.c1062 size_t remain_len; tegra_dma_prep_dma_cyclic() local
1132 remain_len = buf_len; tegra_dma_prep_dma_cyclic()
1135 while (remain_len) { tegra_dma_prep_dma_cyclic()
1156 remain_len -= len; tegra_dma_prep_dma_cyclic()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.c6223 u16 remain_len = len; bnx2x_get_ext_phy_fw_version() local
6235 &remain_len); bnx2x_get_ext_phy_fw_version()
6236 ver_p += (len - remain_len); bnx2x_get_ext_phy_fw_version()
6244 remain_len--; bnx2x_get_ext_phy_fw_version()
6248 &remain_len); bnx2x_get_ext_phy_fw_version()
6249 ver_p = version + (len - remain_len); bnx2x_get_ext_phy_fw_version()

Completed in 375 milliseconds