/drivers/mtd/nand/ |
D | nand_ecc.c | 165 uint32_t cur; /* current value in buffer */ in __nand_calculate_ecc() local 195 cur = *bp++; in __nand_calculate_ecc() 196 tmppar = cur; in __nand_calculate_ecc() 197 rp4 ^= cur; in __nand_calculate_ecc() 198 cur = *bp++; in __nand_calculate_ecc() 199 tmppar ^= cur; in __nand_calculate_ecc() 201 cur = *bp++; in __nand_calculate_ecc() 202 tmppar ^= cur; in __nand_calculate_ecc() 203 rp4 ^= cur; in __nand_calculate_ecc() 204 cur = *bp++; in __nand_calculate_ecc() [all …]
|
/drivers/char/ |
D | bsr.c | 168 struct bsr_dev *cur, *n; in bsr_cleanup_devs() local 170 list_for_each_entry_safe(cur, n, &bsr_devs, bsr_list) { in bsr_cleanup_devs() 171 if (cur->bsr_device) { in bsr_cleanup_devs() 172 cdev_del(&cur->bsr_cdev); in bsr_cleanup_devs() 173 device_del(cur->bsr_device); in bsr_cleanup_devs() 175 list_del(&cur->bsr_list); in bsr_cleanup_devs() 176 kfree(cur); in bsr_cleanup_devs() 200 struct bsr_dev *cur = kzalloc(sizeof(struct bsr_dev), in bsr_add_node() local 205 if (!cur) { in bsr_add_node() 214 kfree(cur); in bsr_add_node() [all …]
|
/drivers/block/drbd/ |
D | drbd_vli.h | 211 static inline void bitstream_cursor_reset(struct bitstream_cursor *cur, void *s) in bitstream_cursor_reset() argument 213 cur->b = s; in bitstream_cursor_reset() 214 cur->bit = 0; in bitstream_cursor_reset() 219 static inline void bitstream_cursor_advance(struct bitstream_cursor *cur, unsigned int bits) in bitstream_cursor_advance() argument 221 bits += cur->bit; in bitstream_cursor_advance() 222 cur->b = cur->b + (bits >> 3); in bitstream_cursor_advance() 223 cur->bit = bits & 7; in bitstream_cursor_advance() 228 struct bitstream_cursor cur; member 243 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_init() 248 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_rewind() [all …]
|
/drivers/char/agp/ |
D | isoch.c | 24 struct agp_3_5_dev *cur, *n = list_entry(new, struct agp_3_5_dev, list); in agp_3_5_dev_list_insert() local 28 cur = list_entry(pos, struct agp_3_5_dev, list); in agp_3_5_dev_list_insert() 29 if (cur->maxbw > n->maxbw) in agp_3_5_dev_list_insert() 37 struct agp_3_5_dev *cur; in agp_3_5_dev_list_sort() local 45 cur = list_entry(pos, struct agp_3_5_dev, list); in agp_3_5_dev_list_sort() 46 dev = cur->dev; in agp_3_5_dev_list_sort() 48 pci_read_config_dword(dev, cur->capndx+AGPNISTAT, &nistat); in agp_3_5_dev_list_sort() 49 cur->maxbw = (nistat >> 16) & 0xff; in agp_3_5_dev_list_sort() 81 struct agp_3_5_dev *cur; in agp_3_5_isochronous_node_enable() local 136 cur = list_entry(pos, struct agp_3_5_dev, list); in agp_3_5_isochronous_node_enable() [all …]
|
/drivers/clk/rockchip/ |
D | clk-pll.c | 164 struct rockchip_pll_rate_table cur; in rockchip_rk3036_pll_recalc_rate() local 167 rockchip_rk3036_pll_get_params(pll, &cur); in rockchip_rk3036_pll_recalc_rate() 169 rate64 *= cur.fbdiv; in rockchip_rk3036_pll_recalc_rate() 170 do_div(rate64, cur.refdiv); in rockchip_rk3036_pll_recalc_rate() 172 if (cur.dsmpd == 0) { in rockchip_rk3036_pll_recalc_rate() 174 u64 frac_rate64 = prate * cur.frac; in rockchip_rk3036_pll_recalc_rate() 176 do_div(frac_rate64, cur.refdiv); in rockchip_rk3036_pll_recalc_rate() 180 do_div(rate64, cur.postdiv1); in rockchip_rk3036_pll_recalc_rate() 181 do_div(rate64, cur.postdiv2); in rockchip_rk3036_pll_recalc_rate() 191 struct rockchip_pll_rate_table cur; in rockchip_rk3036_pll_set_params() local [all …]
|
/drivers/video/backlight/ |
D | cr_bllcd.c | 78 u32 cur = inl(addr); in cr_backlight_set_intensity() local 90 cur &= ~CRVML_BACKLIGHT_OFF; in cr_backlight_set_intensity() 91 outl(cur, addr); in cr_backlight_set_intensity() 93 cur |= CRVML_BACKLIGHT_OFF; in cr_backlight_set_intensity() 94 outl(cur, addr); in cr_backlight_set_intensity() 103 u32 cur = inl(addr); in cr_backlight_get_intensity() local 106 if (cur & CRVML_BACKLIGHT_OFF) in cr_backlight_get_intensity() 122 u32 cur = inl(addr); in cr_panel_on() local 124 if (!(cur & CRVML_PANEL_ON)) { in cr_panel_on() 126 if (cur & 0x00000001) { in cr_panel_on() [all …]
|
/drivers/misc/vmw_vmci/ |
D | vmci_event.c | 56 struct vmci_subscription *cur, *p2; in vmci_event_exit() local 57 list_for_each_entry_safe(cur, p2, &subscriber_array[e], node) { in vmci_event_exit() 65 list_del(&cur->node); in vmci_event_exit() 66 kfree(cur); in vmci_event_exit() 79 struct vmci_subscription *cur; in event_find() local 80 list_for_each_entry(cur, &subscriber_array[e], node) { in event_find() 81 if (cur->id == sub_id) in event_find() 82 return cur; in event_find() 94 struct vmci_subscription *cur; in event_deliver() local 99 list_for_each_entry_rcu(cur, subscriber_list, node) { in event_deliver() [all …]
|
/drivers/gpu/drm/mediatek/ |
D | mtk_drm_ddp.c | 100 static unsigned int mtk_ddp_mout_en(enum mtk_ddp_comp_id cur, in mtk_ddp_mout_en() argument 106 if (cur == DDP_COMPONENT_OVL0 && next == DDP_COMPONENT_COLOR0) { in mtk_ddp_mout_en() 109 } else if (cur == DDP_COMPONENT_OD && next == DDP_COMPONENT_RDMA0) { in mtk_ddp_mout_en() 112 } else if (cur == DDP_COMPONENT_UFOE && next == DDP_COMPONENT_DSI0) { in mtk_ddp_mout_en() 115 } else if (cur == DDP_COMPONENT_OVL1 && next == DDP_COMPONENT_COLOR1) { in mtk_ddp_mout_en() 118 } else if (cur == DDP_COMPONENT_GAMMA && next == DDP_COMPONENT_RDMA1) { in mtk_ddp_mout_en() 121 } else if (cur == DDP_COMPONENT_RDMA1 && next == DDP_COMPONENT_DPI0) { in mtk_ddp_mout_en() 131 static unsigned int mtk_ddp_sel_in(enum mtk_ddp_comp_id cur, in mtk_ddp_sel_in() argument 137 if (cur == DDP_COMPONENT_OVL0 && next == DDP_COMPONENT_COLOR0) { in mtk_ddp_sel_in() 140 } else if (cur == DDP_COMPONENT_RDMA1 && next == DDP_COMPONENT_DPI0) { in mtk_ddp_sel_in() [all …]
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_fw.c | 368 u32 *end, *cur; in sym_fw_bind_script() local 371 cur = start; in sym_fw_bind_script() 374 while (cur < end) { in sym_fw_bind_script() 376 opcode = *cur; in sym_fw_bind_script() 386 sym_name(np), (int) (cur-start)); in sym_fw_bind_script() 387 ++cur; in sym_fw_bind_script() 396 *cur++ = 0; in sym_fw_bind_script() 401 printf ("%d: <%x>\n", (int) (cur-start), in sym_fw_bind_script() 425 tmp1 = cur[1]; in sym_fw_bind_script() 426 tmp2 = cur[2]; in sym_fw_bind_script() [all …]
|
/drivers/gpu/drm/savage/ |
D | savage_bci.c | 364 unsigned int cur = dev_priv->current_dma_page; in savage_dma_alloc() local 366 dev_priv->dma_pages[cur].used; in savage_dma_alloc() 373 cur, dev_priv->dma_pages[cur].used, n, rest, nr_pages); in savage_dma_alloc() 375 if (cur + nr_pages < dev_priv->nr_dma_pages) { in savage_dma_alloc() 377 cur * SAVAGE_DMA_PAGE_SIZE + dev_priv->dma_pages[cur].used; in savage_dma_alloc() 380 dev_priv->dma_pages[cur].used += rest; in savage_dma_alloc() 382 cur++; in savage_dma_alloc() 387 for (i = cur; i < dev_priv->nr_dma_pages; ++i) { in savage_dma_alloc() 393 dev_priv->first_dma_page = cur = 0; in savage_dma_alloc() 395 for (i = cur; nr_pages > 0; ++i, --nr_pages) { in savage_dma_alloc() [all …]
|
/drivers/infiniband/core/ |
D | netlink.c | 63 struct ibnl_client *cur; in ibnl_add_client() local 76 list_for_each_entry(cur, &client_list, list) { in ibnl_add_client() 77 if (cur->index == index) { in ibnl_add_client() 95 struct ibnl_client *cur, *next; in ibnl_remove_client() local 98 list_for_each_entry_safe(cur, next, &client_list, list) { in ibnl_remove_client() 99 if (cur->index == index) { in ibnl_remove_client() 100 list_del(&(cur->list)); in ibnl_remove_client() 102 kfree(cur); in ibnl_remove_client() 264 struct ibnl_client *cur, *next; in ibnl_cleanup() local 267 list_for_each_entry_safe(cur, next, &client_list, list) { in ibnl_cleanup() [all …]
|
/drivers/cpufreq/ |
D | amd_freq_sensitivity.c | 64 freq_next = policy->cur; in amd_powersave_bias_target() 73 freq_next = policy->cur; in amd_powersave_bias_target() 84 if (data->freq_prev == policy->cur) in amd_powersave_bias_target() 85 freq_next = policy->cur; in amd_powersave_bias_target() 87 if (freq_next > policy->cur) in amd_powersave_bias_target() 88 freq_next = policy->cur; in amd_powersave_bias_target() 89 else if (freq_next < policy->cur) in amd_powersave_bias_target() 95 policy->cur - 1); in amd_powersave_bias_target()
|
D | sa1100-cpufreq.c | 182 unsigned int cur = sa11x0_getspeed(0); in sa1100_target() local 187 if (new_freq > cur) in sa1100_target() 188 sa1100_update_dram_timings(cur, new_freq); in sa1100_target() 192 if (new_freq < cur) in sa1100_target() 193 sa1100_update_dram_timings(cur, new_freq); in sa1100_target()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cmdbuf.c | 112 struct vmw_cmdbuf_header *cur; member 566 struct vmw_cmdbuf_header *cur = man->cur; in __vmw_cmdbuf_cur_flush() local 570 if (!cur) in __vmw_cmdbuf_cur_flush() 575 __vmw_cmdbuf_header_free(cur); in __vmw_cmdbuf_cur_flush() 579 man->cur->cb_header->length = man->cur_pos; in __vmw_cmdbuf_cur_flush() 580 vmw_cmdbuf_ctx_add(man, man->cur, SVGA_CB_CONTEXT_0); in __vmw_cmdbuf_cur_flush() 583 man->cur = NULL; in __vmw_cmdbuf_cur_flush() 915 struct vmw_cmdbuf_header *cur; in vmw_cmdbuf_reserve_cur() local 921 cur = man->cur; in vmw_cmdbuf_reserve_cur() 922 if (cur && (size + man->cur_pos > cur->size || in vmw_cmdbuf_reserve_cur() [all …]
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | core.c | 39 u32 cur; in mt76_poll() local 46 cur = mt7601u_rr(dev, offset) & mask; in mt76_poll() 47 if (cur == val) in mt76_poll() 61 u32 cur; in mt76_poll_msec() local 68 cur = mt7601u_rr(dev, offset) & mask; in mt76_poll_msec() 69 if (cur == val) in mt76_poll_msec()
|
/drivers/media/platform/vivid/ |
D | vivid-radio-common.c | 82 rds->picode = dev->radio_tx_rds_pi->cur.val; in vivid_radio_rds_init() 83 rds->pty = dev->radio_tx_rds_pty->cur.val; in vivid_radio_rds_init() 84 rds->mono_stereo = dev->radio_tx_rds_mono_stereo->cur.val; in vivid_radio_rds_init() 85 rds->art_head = dev->radio_tx_rds_art_head->cur.val; in vivid_radio_rds_init() 86 rds->compressed = dev->radio_tx_rds_compressed->cur.val; in vivid_radio_rds_init() 87 rds->dyn_pty = dev->radio_tx_rds_dyn_pty->cur.val; in vivid_radio_rds_init() 88 rds->ta = dev->radio_tx_rds_ta->cur.val; in vivid_radio_rds_init() 89 rds->tp = dev->radio_tx_rds_tp->cur.val; in vivid_radio_rds_init() 90 rds->ms = dev->radio_tx_rds_ms->cur.val; in vivid_radio_rds_init()
|
/drivers/video/fbdev/core/ |
D | fb_defio.c | 100 struct page *cur; in fb_deferred_io_mkwrite() local 129 list_for_each_entry(cur, &fbdefio->pagelist, lru) { in fb_deferred_io_mkwrite() 135 if (unlikely(cur == page)) in fb_deferred_io_mkwrite() 137 else if (cur->index > page->index) in fb_deferred_io_mkwrite() 141 list_add_tail(&page->lru, &cur->lru); in fb_deferred_io_mkwrite() 184 struct page *cur; in fb_deferred_io_work() local 189 list_for_each_entry(cur, &fbdefio->pagelist, lru) { in fb_deferred_io_work() 190 lock_page(cur); in fb_deferred_io_work() 191 page_mkclean(cur); in fb_deferred_io_work() 192 unlock_page(cur); in fb_deferred_io_work()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_dma.c | 35 mem = &mem[chan->dma.cur]; in OUT_RINGp() 40 chan->dma.cur += nr_dwords; in OUT_RINGp() 155 if (get <= chan->dma.cur) { in nv50_dma_wait() 156 chan->dma.free = chan->dma.max - chan->dma.cur; in nv50_dma_wait() 169 chan->dma.cur = 0; in nv50_dma_wait() 173 chan->dma.free = get - chan->dma.cur - 1; in nv50_dma_wait() 205 if (get <= chan->dma.cur) { in nouveau_dma_wait() 219 chan->dma.free = chan->dma.max - chan->dma.cur; in nouveau_dma_wait() 246 chan->dma.cur = in nouveau_dma_wait() 256 chan->dma.free = get - chan->dma.cur - 1; in nouveau_dma_wait()
|
/drivers/gpu/drm/nouveau/dispnv04/ |
D | overlay.c | 41 struct nouveau_bo *cur; member 105 struct nouveau_bo *cur = nv_plane->cur; in nv10_update_plane() local 134 nv_plane->cur = nv_fb->nvbo; in nv10_update_plane() 168 if (cur) in nv10_update_plane() 169 nouveau_bo_unpin(cur); in nv10_update_plane() 182 if (nv_plane->cur) { in nv10_disable_plane() 183 nouveau_bo_unpin(nv_plane->cur); in nv10_disable_plane() 184 nv_plane->cur = NULL; in nv10_disable_plane() 213 if (plane->cur) { in nv10_set_params() 354 struct nouveau_bo *cur = nv_plane->cur; in nv04_update_plane() local [all …]
|
/drivers/infiniband/hw/cxgb4/ |
D | resource.c | 115 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_cqid() 146 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_cqid() 147 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_cqid() 189 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_qpid() 220 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_qpid() 221 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_qpid() 260 rdev->stats.pbl.cur += roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_alloc() 261 if (rdev->stats.pbl.cur > rdev->stats.pbl.max) in c4iw_pblpool_alloc() 262 rdev->stats.pbl.max = rdev->stats.pbl.cur; in c4iw_pblpool_alloc() 273 rdev->stats.pbl.cur -= roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_free() [all …]
|
/drivers/misc/cxl/ |
D | of.c | 291 struct irq_avail *cur; in read_adapter_irq_config() local 312 cur = &adapter->guest->irq_avail[i]; in read_adapter_irq_config() 313 cur->offset = be32_to_cpu(ranges[i * 2]); in read_adapter_irq_config() 314 cur->range = be32_to_cpu(ranges[i * 2 + 1]); in read_adapter_irq_config() 315 cur->bitmap = kcalloc(BITS_TO_LONGS(cur->range), in read_adapter_irq_config() 316 sizeof(*cur->bitmap), GFP_KERNEL); in read_adapter_irq_config() 317 if (cur->bitmap == NULL) in read_adapter_irq_config() 319 if (cur->offset < adapter->guest->irq_base_offset) in read_adapter_irq_config() 320 adapter->guest->irq_base_offset = cur->offset; in read_adapter_irq_config() 323 cur->offset, cur->offset + cur->range - 1, in read_adapter_irq_config() [all …]
|
/drivers/parisc/ |
D | led.c | 183 char *cur, lbuf[32]; in led_proc_write() local 196 cur = lbuf; in led_proc_write() 201 d = *cur++ - '0'; in led_proc_write() 205 if (*cur++ != ' ') goto parse_error; in led_proc_write() 207 d = *cur++ - '0'; in led_proc_write() 211 if (*cur++ != ' ') goto parse_error; in led_proc_write() 213 d = *cur++ - '0'; in led_proc_write() 219 if (*cur && cur[strlen(cur)-1] == '\n') in led_proc_write() 220 cur[strlen(cur)-1] = 0; in led_proc_write() 221 if (*cur == 0) in led_proc_write() [all …]
|
/drivers/lightnvm/ |
D | sysblk.c | 213 struct nvm_system_block *cur; in nvm_scan_block() local 219 cur = kmalloc(dev->pfpg_size, GFP_KERNEL); in nvm_scan_block() 220 if (!cur) in nvm_scan_block() 228 cur, dev->pfpg_size); in nvm_scan_block() 249 if (be32_to_cpu(cur->magic) != NVM_SYSBLK_MAGIC) { in nvm_scan_block() 258 if (be32_to_cpu(cur->seqnr) < be32_to_cpu(sblk->seqnr)) in nvm_scan_block() 261 memcpy(sblk, cur, sizeof(struct nvm_system_block)); in nvm_scan_block() 265 kfree(cur); in nvm_scan_block() 396 struct nvm_system_block *cur; in nvm_get_sysblock() local 422 cur = kzalloc(sizeof(struct nvm_system_block), GFP_KERNEL); in nvm_get_sysblock() [all …]
|
/drivers/power/supply/ |
D | twl4030_charger.c | 274 int cur; in twl4030_charger_update_current() local 285 cur = bci->ac_cur; in twl4030_charger_update_current() 288 cur = bci->usb_cur; in twl4030_charger_update_current() 290 if (cur > bci->usb_cur_target) { in twl4030_charger_update_current() 291 cur = bci->usb_cur_target; in twl4030_charger_update_current() 292 bci->usb_cur = cur; in twl4030_charger_update_current() 294 if (cur < bci->usb_cur_target) in twl4030_charger_update_current() 305 if (cur > 852000) in twl4030_charger_update_current() 386 reg = ua2regval(cur, cgain); in twl4030_charger_update_current() 664 int cur = 0; in twl4030_bci_max_current_store() local [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | nv50.c | 33 struct nvkm_memory *cur; in nv50_fifo_runlist_update_locked() local 36 cur = fifo->runlist[fifo->cur_runlist]; in nv50_fifo_runlist_update_locked() 39 nvkm_kmap(cur); in nv50_fifo_runlist_update_locked() 42 nvkm_wo32(cur, p++ * 4, i); in nv50_fifo_runlist_update_locked() 44 nvkm_done(cur); in nv50_fifo_runlist_update_locked() 46 nvkm_wr32(device, 0x0032f4, nvkm_memory_addr(cur) >> 12); in nv50_fifo_runlist_update_locked()
|