/drivers/target/tcm_fc/ |
D | tfc_io.c | 49 size_t remaining; in ft_queue_data_in() local 75 remaining = se_cmd->data_length; in ft_queue_data_in() 80 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in() 81 if (remaining) { in ft_queue_data_in() 89 use_sg = !(remaining % 4); in ft_queue_data_in() 91 while (remaining) { in ft_queue_data_in() 101 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in() 113 frame_len = min(frame_len, remaining); in ft_queue_data_in() 155 remaining -= tlen; in ft_queue_data_in() 160 if (!remaining) in ft_queue_data_in() [all …]
|
/drivers/md/bcache/ |
D | closure.h | 156 atomic_t remaining; member 183 if ((atomic_read(&cl->remaining) & CLOSURE_REMAINING_MASK) != 1) in closure_sync() 224 atomic_sub(CLOSURE_RUNNING, &cl->remaining); in closure_set_stopped() 259 BUG_ON((atomic_inc_return(&cl->remaining) & in closure_get() 262 atomic_inc(&cl->remaining); in closure_get() 279 atomic_set(&cl->remaining, CLOSURE_REMAINING_INITIALIZER); in closure_init() 288 atomic_set(&cl->remaining, CLOSURE_REMAINING_INITIALIZER); in closure_init_stack()
|
D | closure.c | 25 atomic_set(&cl->remaining, in closure_put_after_sub() 46 closure_put_after_sub(cl, atomic_sub_return(v, &cl->remaining)); in closure_sub() 55 closure_put_after_sub(cl, atomic_dec_return(&cl->remaining)); in closure_put() 90 if (atomic_read(&cl->remaining) & CLOSURE_WAITING) in closure_wait() 94 atomic_add(CLOSURE_WAITING + 1, &cl->remaining); in closure_wait() 176 int r = atomic_read(&cl->remaining); in debug_seq_show()
|
/drivers/staging/wusbcore/host/whci/ |
D | qset.c | 256 size_t remaining, offset; in qset_copy_bounce_to_sg() local 259 remaining = std->len; in qset_copy_bounce_to_sg() 264 while (remaining) { in qset_copy_bounce_to_sg() 267 len = min(sg->length - offset, remaining); in qset_copy_bounce_to_sg() 271 remaining -= len; in qset_copy_bounce_to_sg() 426 size_t remaining; in qset_add_urb_sg() local 436 remaining = urb->transfer_buffer_length; in qset_add_urb_sg() 444 if (remaining == 0) { in qset_add_urb_sg() 449 dma_remaining = min_t(size_t, sg_dma_len(sg), remaining); in qset_add_urb_sg() 518 remaining -= dma_len; in qset_add_urb_sg() [all …]
|
/drivers/gpu/drm/radeon/ |
D | atombios_i2c.c | 110 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local 127 remaining = p->len; in radeon_atom_hw_i2c_xfer() 137 while (remaining) { in radeon_atom_hw_i2c_xfer() 138 if (remaining > max_bytes) in radeon_atom_hw_i2c_xfer() 141 current_count = remaining; in radeon_atom_hw_i2c_xfer() 147 remaining -= current_count; in radeon_atom_hw_i2c_xfer()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | atombios_i2c.c | 117 int i, remaining, current_count, buffer_offset, max_bytes, ret; in amdgpu_atombios_i2c_xfer() local 134 remaining = p->len; in amdgpu_atombios_i2c_xfer() 144 while (remaining) { in amdgpu_atombios_i2c_xfer() 145 if (remaining > max_bytes) in amdgpu_atombios_i2c_xfer() 148 current_count = remaining; in amdgpu_atombios_i2c_xfer() 154 remaining -= current_count; in amdgpu_atombios_i2c_xfer()
|
/drivers/char/ |
D | ps3flash.c | 100 size_t remaining, n; in ps3flash_read() local 121 remaining = count; in ps3flash_read() 123 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_read() 150 remaining -= n; in ps3flash_read() 153 } while (remaining > 0); in ps3flash_read() 169 size_t remaining, n; in ps3flash_write() local 190 remaining = count; in ps3flash_write() 192 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_write() 225 remaining -= n; in ps3flash_write() 228 } while (remaining > 0); in ps3flash_write()
|
/drivers/md/ |
D | dm-io.c | 305 sector_t remaining = where->count; in do_region() local 345 dm_sector_div_up(remaining, (PAGE_SIZE >> SECTOR_SHIFT))); in do_region() 349 bio->bi_iter.bi_sector = where->sector + (where->count - remaining); in do_region() 356 num_sectors = min_t(sector_t, special_cmd_max_sectors, remaining); in do_region() 358 remaining -= num_sectors; in do_region() 365 num_sectors = min_t(sector_t, special_cmd_max_sectors, remaining); in do_region() 369 remaining -= num_sectors; in do_region() 371 } else while (remaining) { in do_region() 376 len = min(len, to_bytes(remaining)); in do_region() 381 remaining -= to_sector(len); in do_region() [all …]
|
/drivers/misc/lkdtm/ |
D | bugs.c | 42 static int noinline recursive_loop(int remaining) in recursive_loop() argument 46 memset((void *)buf, remaining & 0xFF, sizeof(buf)); in recursive_loop() 47 pr_info("loop %d/%d ...\n", (int)buf[remaining % sizeof(buf)], in recursive_loop() 49 if (!remaining) in recursive_loop() 52 return recursive_loop(remaining - 1); in recursive_loop()
|
/drivers/net/wireless/intel/iwlwifi/fw/ |
D | paging.c | 230 int remaining = image->sec[sec_idx].len - offset; in iwl_fill_paging_mem() local 238 len = remaining; in iwl_fill_paging_mem() 239 if (remaining != in iwl_fill_paging_mem() 243 remaining); in iwl_fill_paging_mem() 247 } else if (block->fw_paging_size > remaining) { in iwl_fill_paging_mem() 250 idx, remaining); in iwl_fill_paging_mem()
|
/drivers/net/ethernet/rocker/ |
D | rocker_tlv.h | 30 int *remaining) in rocker_tlv_next() argument 34 *remaining -= totlen; in rocker_tlv_next() 38 static inline int rocker_tlv_ok(const struct rocker_tlv *tlv, int remaining) in rocker_tlv_ok() argument 40 return remaining >= (int) ROCKER_TLV_HDRLEN && in rocker_tlv_ok() 42 tlv->len <= remaining; in rocker_tlv_ok()
|
/drivers/media/tuners/ |
D | tda18218.c | 16 int ret = 0, len2, remaining; in tda18218_wr_regs() local 33 for (remaining = len; remaining > 0; in tda18218_wr_regs() 34 remaining -= (priv->cfg->i2c_wr_max - 1)) { in tda18218_wr_regs() 35 len2 = remaining; in tda18218_wr_regs() 40 buf[0] = reg + len - remaining; in tda18218_wr_regs() 41 memcpy(&buf[1], &val[len - remaining], len2); in tda18218_wr_regs()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | aux.c | 39 u8 remaining = msg->len; in nvkm_i2c_aux_i2c_xfer() local 42 while (remaining) { in nvkm_i2c_aux_i2c_xfer() 50 if (mcnt || remaining > 16) in nvkm_i2c_aux_i2c_xfer() 56 cnt = min_t(u8, remaining, 16); in nvkm_i2c_aux_i2c_xfer() 69 remaining -= cnt; in nvkm_i2c_aux_i2c_xfer()
|
D | bit.c | 189 u8 remaining = msg->len; in nvkm_i2c_bit_xfer() local 197 while (!ret && remaining--) in nvkm_i2c_bit_xfer() 198 ret = nvkm_i2c_get_byte(bus, ptr++, !remaining); in nvkm_i2c_bit_xfer() 200 while (!ret && remaining--) in nvkm_i2c_bit_xfer()
|
/drivers/net/usb/ |
D | asix_common.c | 82 rx->remaining = 0; in reset_asix_rx_fixup_info() 102 if (rx->remaining && (rx->remaining + sizeof(u32) <= skb->len)) { in asix_rx_fixup_internal() 103 offset = ((rx->remaining + 1) & 0xfffe); in asix_rx_fixup_internal() 110 rx->remaining); in asix_rx_fixup_internal() 118 if (!rx->remaining) { in asix_rx_fixup_internal() 160 rx->remaining = size; in asix_rx_fixup_internal() 163 if (rx->remaining > skb->len - offset) { in asix_rx_fixup_internal() 165 rx->remaining -= copy_length; in asix_rx_fixup_internal() 167 copy_length = rx->remaining; in asix_rx_fixup_internal() 168 rx->remaining = 0; in asix_rx_fixup_internal() [all …]
|
/drivers/media/usb/dvb-usb-v2/ |
D | ec168.c | 200 int ret, len, remaining; in ec168_download_firmware() local 205 for (remaining = fw->size; remaining > 0; remaining -= LEN_MAX) { in ec168_download_firmware() 206 len = remaining; in ec168_download_firmware() 211 req.data = (u8 *) &fw->data[fw->size - remaining]; in ec168_download_firmware() 212 req.index = fw->size - remaining; in ec168_download_firmware()
|
/drivers/staging/rtl8188eu/ |
D | TODO | 2 - find and remove remaining code valid only for 5 GHz. Most of the obvious 5 - convert any remaining unusual variable types 7 - checkpatch.pl fixes - most of the remaining ones are lines too long. Many
|
/drivers/net/ethernet/intel/e1000e/ |
D | manage.c | 187 u16 remaining, i, j, prev_bytes; in e1000_mng_host_if_write() local 209 remaining = length & 0x3; in e1000_mng_host_if_write() 210 length -= remaining; in e1000_mng_host_if_write() 226 if (remaining) { in e1000_mng_host_if_write() 228 if (j < remaining) in e1000_mng_host_if_write()
|
/drivers/usb/musb/ |
D | tusb6010_omap.c | 107 unsigned long remaining, flags, pio; in tusb_omap_dma_cb() local 115 remaining = musb_readl(ep_conf, TUSB_EP_TX_OFFSET); in tusb_omap_dma_cb() 117 remaining = musb_readl(ep_conf, TUSB_EP_RX_OFFSET); in tusb_omap_dma_cb() 119 remaining = TUSB_EP_CONFIG_XFR_SIZE(remaining); in tusb_omap_dma_cb() 122 if (unlikely(remaining > chdat->transfer_len)) { in tusb_omap_dma_cb() 124 chdat->tx ? "tx" : "rx", remaining); in tusb_omap_dma_cb() 125 remaining = 0; in tusb_omap_dma_cb() 128 channel->actual_len = chdat->transfer_len - remaining; in tusb_omap_dma_cb() 131 dev_dbg(musb->controller, "DMA remaining %lu/%u\n", remaining, chdat->transfer_len); in tusb_omap_dma_cb()
|
/drivers/staging/rtl8723bs/ |
D | TODO | 3 - find and remove remaining code valid only for 5 GHz. Most of the obvious 6 - convert any remaining unusual variable types 8 - checkpatch.pl fixes - most of the remaining ones are lines too long. Many
|
/drivers/usb/class/ |
D | usbtmc.c | 796 u32 remaining; in usbtmc_generic_read() local 815 remaining = transfer_size; in usbtmc_generic_read() 825 remaining = max_transfer_size; in usbtmc_generic_read() 952 if (remaining > urb->actual_length) in usbtmc_generic_read() 955 this_part = remaining; in usbtmc_generic_read() 967 remaining -= this_part; in usbtmc_generic_read() 1083 u32 remaining; in usbtmc_generic_write() local 1112 remaining = transfer_size; in usbtmc_generic_write() 1113 if (remaining > INT_MAX) in usbtmc_generic_write() 1114 remaining = INT_MAX; in usbtmc_generic_write() [all …]
|
/drivers/i2c/busses/ |
D | i2c-imx-lpi2c.c | 347 unsigned int temp, remaining; in lpi2c_imx_set_rx_watermark() local 349 remaining = lpi2c_imx->msglen - lpi2c_imx->delivered; in lpi2c_imx_set_rx_watermark() 351 if (remaining > (lpi2c_imx->rxfifosize >> 1)) in lpi2c_imx_set_rx_watermark() 382 unsigned int blocklen, remaining; in lpi2c_imx_read_rxfifo() local 402 remaining = lpi2c_imx->msglen - lpi2c_imx->delivered; in lpi2c_imx_read_rxfifo() 404 if (!remaining) { in lpi2c_imx_read_rxfifo() 415 temp = remaining; in lpi2c_imx_read_rxfifo() 419 temp = (remaining > CHUNK_DATA ? CHUNK_DATA : remaining) - 1; in lpi2c_imx_read_rxfifo()
|
/drivers/media/dvb-frontends/ |
D | si2168.c | 413 int ret, len, remaining; in si2168_init() local 475 for (remaining = fw->size; remaining > 0; remaining -= 17) { in si2168_init() 476 len = fw->data[fw->size - remaining]; in si2168_init() 481 cmd_init(&cmd, &fw->data[(fw->size - remaining) + 1], in si2168_init() 489 for (remaining = fw->size; remaining > 0; remaining -= 8) { in si2168_init() 490 cmd_init(&cmd, &fw->data[fw->size - remaining], 8, 1); in si2168_init()
|
/drivers/firmware/efi/ |
D | apple-properties.c | 55 int remaining = dev_header->len - (ptr - (void *)dev_header); in unmarshal_key_value_pairs() local 59 if (sizeof(key_len) > remaining) in unmarshal_key_value_pairs() 63 if (key_len + sizeof(val_len) > remaining || in unmarshal_key_value_pairs() 72 if (key_len + val_len > remaining || in unmarshal_key_value_pairs()
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls_rxtx.c | 104 int remaining, i = 0, ret = -EINVAL; in mlx5e_tls_get_sync_data() local 124 remaining = sync_size; in mlx5e_tls_get_sync_data() 125 while (remaining > 0) { in mlx5e_tls_get_sync_data() 128 remaining -= skb_frag_size(&info->frags[i]); in mlx5e_tls_get_sync_data() 130 if (remaining < 0) in mlx5e_tls_get_sync_data() 131 skb_frag_size_add(&info->frags[i], remaining); in mlx5e_tls_get_sync_data()
|