/drivers/block/zram/ |
D | zcomp.c | 65 static void zcomp_strm_free(struct zcomp *comp, struct zcomp_strm *zstrm) in zcomp_strm_free() argument 68 comp->backend->destroy(zstrm->private); in zcomp_strm_free() 77 static struct zcomp_strm *zcomp_strm_alloc(struct zcomp *comp) in zcomp_strm_alloc() argument 83 zstrm->private = comp->backend->create(); in zcomp_strm_alloc() 90 zcomp_strm_free(comp, zstrm); in zcomp_strm_alloc() 100 static struct zcomp_strm *zcomp_strm_multi_find(struct zcomp *comp) in zcomp_strm_multi_find() argument 102 struct zcomp_strm_multi *zs = comp->stream; in zcomp_strm_multi_find() 124 zstrm = zcomp_strm_alloc(comp); in zcomp_strm_multi_find() 138 static void zcomp_strm_multi_release(struct zcomp *comp, struct zcomp_strm *zstrm) in zcomp_strm_multi_release() argument 140 struct zcomp_strm_multi *zs = comp->stream; in zcomp_strm_multi_release() [all …]
|
D | zcomp.h | 47 struct zcomp_strm *(*strm_find)(struct zcomp *comp); 48 void (*strm_release)(struct zcomp *comp, struct zcomp_strm *zstrm); 49 bool (*set_max_streams)(struct zcomp *comp, int num_strm); 50 void (*destroy)(struct zcomp *comp); 53 ssize_t zcomp_available_show(const char *comp, char *buf); 55 struct zcomp *zcomp_create(const char *comp, int max_strm); 56 void zcomp_destroy(struct zcomp *comp); 58 struct zcomp_strm *zcomp_strm_find(struct zcomp *comp); 59 void zcomp_strm_release(struct zcomp *comp, struct zcomp_strm *zstrm); 61 int zcomp_compress(struct zcomp *comp, struct zcomp_strm *zstrm, [all …]
|
D | zram_drv.c | 243 if (!zcomp_set_max_streams(zram->comp, num)) { in max_comp_streams_store() 501 ret = zcomp_decompress(zram->comp, cmem, size, mem); in zram_decompress_page() 608 zstrm = zcomp_strm_find(zram->comp); in zram_bvec_write() 635 ret = zcomp_compress(zram->comp, zstrm, uncmem, &clen); in zram_bvec_write() 680 zcomp_strm_release(zram->comp, zstrm); in zram_bvec_write() 700 zcomp_strm_release(zram->comp, zstrm); in zram_bvec_write() 771 struct zcomp *comp; in zram_reset_device() local 784 comp = zram->comp; in zram_reset_device() 809 zcomp_destroy(comp); in zram_reset_device() 816 struct zcomp *comp; in disksize_store() local [all …]
|
/drivers/net/slip/ |
D | slhc.c | 96 struct slcompress *comp; in slhc_init() local 101 comp = kzalloc(sizeof(struct slcompress), GFP_KERNEL); in slhc_init() 102 if (! comp) in slhc_init() 107 comp->rstate = kzalloc(rsize, GFP_KERNEL); in slhc_init() 108 if (! comp->rstate) in slhc_init() 110 comp->rslot_limit = rslots - 1; in slhc_init() 115 comp->tstate = kzalloc(tsize, GFP_KERNEL); in slhc_init() 116 if (! comp->tstate) in slhc_init() 118 comp->tslot_limit = tslots - 1; in slhc_init() 121 comp->xmit_oldest = 0; in slhc_init() [all …]
|
/drivers/clk/ti/ |
D | composite.c | 91 struct component_clk *comp; in _lookup_component() local 93 list_for_each_entry(comp, &component_clks, link) { in _lookup_component() 94 if (comp->node == node) in _lookup_component() 95 return comp; in _lookup_component() 124 struct component_clk *comp; in ti_clk_register_composite() local 134 comp = _lookup_component(cclk->comp_nodes[i]); in ti_clk_register_composite() 135 if (!comp) { in ti_clk_register_composite() 144 if (cclk->comp_clks[comp->type] != NULL) { in ti_clk_register_composite() 146 node->name, component_clk_types[comp->type]); in ti_clk_register_composite() 150 cclk->comp_clks[comp->type] = comp; in ti_clk_register_composite() [all …]
|
/drivers/video/fbdev/core/ |
D | syscopyarea.c | 44 *dst = comp(*src, *dst, first); in bitcpy() 49 *dst = comp(*src, *dst, first); in bitcpy() 73 *dst = comp(*src, *dst, last); in bitcpy() 89 *dst = comp(*src >> right, *dst, first); in bitcpy() 92 *dst = comp(*src << left, *dst, first); in bitcpy() 97 *dst = comp(d0 << left | d1 >> right, *dst, in bitcpy() 112 *dst = comp(d0 >> right, *dst, first); in bitcpy() 118 *dst = comp(d0 << left | *dst >> right, *dst, first); in bitcpy() 152 *dst = comp(d0 << left, *dst, last); in bitcpy() 156 *dst = comp(d0 << left | d1 >> right, in bitcpy() [all …]
|
D | sysfillrect.c | 40 *dst = comp(pat, *dst, first); in bitfill_aligned() 46 *dst = comp(pat, *dst, first); in bitfill_aligned() 68 *dst = comp(pat, *dst, last); in bitfill_aligned() 96 *dst = comp(pat, *dst, first); in bitfill_unaligned() 101 *dst = comp(pat, *dst, first); in bitfill_unaligned() 127 *dst = comp(pat, *dst, last); in bitfill_unaligned() 151 *dst = comp(*dst ^ val, *dst, first); in bitfill_aligned_rev() 156 *dst = comp(*dst ^ val, *dst, first); in bitfill_aligned_rev() 178 *dst = comp(*dst ^ val, *dst, last); in bitfill_aligned_rev() 207 *dst = comp(*dst ^ pat, *dst, first); in bitfill_unaligned_rev() [all …]
|
D | cfbfillrect.c | 50 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned() 56 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned() 79 FB_WRITEL(comp(pat, FB_READL(dst), last), dst); in bitfill_aligned() 107 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_unaligned() 112 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_unaligned() 138 FB_WRITEL(comp(pat, FB_READL(dst), last), dst); in bitfill_unaligned() 164 FB_WRITEL(comp(dat ^ val, dat, first), dst); in bitfill_aligned_rev() 170 FB_WRITEL(comp(dat ^ val, dat, first), dst); in bitfill_aligned_rev() 203 FB_WRITEL(comp(dat ^ val, dat, last), dst); in bitfill_aligned_rev() 234 FB_WRITEL(comp(dat ^ pat, dat, first), dst); in bitfill_unaligned_rev() [all …]
|
D | cfbcopyarea.c | 73 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy() 79 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy() 103 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), last), dst); in bitcpy() 132 FB_WRITEL(comp(d0, FB_READL(dst), first), dst); in bitcpy() 157 FB_WRITEL(comp(d0, FB_READL(dst), first), dst); in bitcpy() 201 FB_WRITEL(comp(d0, FB_READL(dst), last), dst); in bitcpy() 246 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), last), dst); in bitcpy_rev() 252 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy_rev() 276 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), last), dst); in bitcpy_rev() 304 FB_WRITEL(comp(d0, FB_READL(dst), last), dst); in bitcpy_rev() [all …]
|
D | fb_draw.h | 14 comp(unsigned long a, unsigned long b, unsigned long mask) in comp() function 92 val = comp(val >> 1, val << 1, REV_PIXELS_MASK1); in fb_rev_pixels_in_long() 94 val = comp(val >> 2, val << 2, REV_PIXELS_MASK2); in fb_rev_pixels_in_long() 96 val = comp(val >> 4, val << 4, REV_PIXELS_MASK4); in fb_rev_pixels_in_long()
|
/drivers/gpu/drm/nouveau/core/engine/dmaobj/ |
D | nv50.c | 96 u32 user, part, comp, kind; in nv50_dmaobj_ctor() local 109 args->v0.priv, args->v0.part, args->v0.comp, in nv50_dmaobj_ctor() 113 comp = args->v0.comp; in nv50_dmaobj_ctor() 120 comp = NV50_DMA_V0_COMP_NONE; in nv50_dmaobj_ctor() 125 comp = NV50_DMA_V0_COMP_VM; in nv50_dmaobj_ctor() 131 if (user > 2 || part > 2 || comp > 3 || kind > 0x7f) in nv50_dmaobj_ctor() 133 priv->flags0 = (comp << 29) | (kind << 22) | (user << 20); in nv50_dmaobj_ctor()
|
/drivers/staging/rtl8723au/include/ |
D | odm_debug.h | 101 #define ODM_RT_TRACE(pDM_Odm, comp, level, fmt) \ argument 102 if(((comp) & pDM_Odm->DebugComponents) && (level <= pDM_Odm->DebugLevel)) \ 108 #define ODM_RT_TRACE_F(pDM_Odm, comp, level, fmt) \ argument 109 if(((comp) & pDM_Odm->DebugComponents) && (level <= pDM_Odm->DebugLevel)) \ 125 #define ODM_PRINT_ADDR(pDM_Odm, comp, level, title_str, ptr) \ argument 126 if(((comp) & pDM_Odm->DebugComponents) && (level <= pDM_Odm->DebugLevel){ \
|
/drivers/staging/rtl8188eu/include/ |
D | odm_debug.h | 94 #define ODM_RT_TRACE(pDM_Odm, comp, level, fmt) \ argument 95 if (((comp) & pDM_Odm->DebugComponents) && \ 101 #define ODM_RT_TRACE_F(pDM_Odm, comp, level, fmt) \ argument 102 if (((comp) & pDM_Odm->DebugComponents) && \ 119 #define ODM_PRINT_ADDR(pDM_Odm, comp, level, title_str, ptr) \ argument 120 if (((comp) & pDM_Odm->DebugComponents) && \
|
/drivers/scsi/bfa/ |
D | bfad_bsg.c | 261 init_completion(&fcomp.comp); in bfad_iocmd_port_enable() 270 wait_for_completion(&fcomp.comp); in bfad_iocmd_port_enable() 282 init_completion(&fcomp.comp); in bfad_iocmd_port_disable() 292 wait_for_completion(&fcomp.comp); in bfad_iocmd_port_disable() 343 init_completion(&fcomp.comp); in bfad_iocmd_port_get_stats() 353 wait_for_completion(&fcomp.comp); in bfad_iocmd_port_get_stats() 366 init_completion(&fcomp.comp); in bfad_iocmd_port_reset_stats() 375 wait_for_completion(&fcomp.comp); in bfad_iocmd_port_reset_stats() 1203 init_completion(&fcomp.comp); in bfad_iocmd_ioc_get_pcifn_cfg() 1212 wait_for_completion(&fcomp.comp); in bfad_iocmd_ioc_get_pcifn_cfg() [all …]
|
D | bfad.c | 215 init_completion(&bfad->comp); in bfad_sm_created() 238 wait_for_completion(&bfad->comp); in bfad_sm_created() 252 init_completion(&bfad->comp); in bfad_sm_created() 259 wait_for_completion(&bfad->comp); in bfad_sm_created() 411 complete(&fcomp->comp); in bfad_hcb_comp() 436 complete(&bfad->comp); in bfa_cb_init() 873 init_completion(&bfad->comp); in bfad_drv_uninit() 876 wait_for_completion(&bfad->comp); in bfad_drv_uninit() 909 init_completion(&bfad->comp); in bfad_fcs_stop() 913 wait_for_completion(&bfad->comp); in bfad_fcs_stop() [all …]
|
/drivers/hwmon/ |
D | ntc_thermistor.c | 182 const struct ntc_compensation *comp; member 354 if (ohm >= data->comp[0].ohm) { in lookup_comp() 359 if (ohm <= data->comp[data->n_comp - 1].ohm) { in lookup_comp() 379 if (ohm >= data->comp[mid].ohm) { in lookup_comp() 389 if (ohm >= data->comp[start].ohm) in lookup_comp() 402 if (ohm == data->comp[end].ohm) in lookup_comp() 416 temp = data->comp[low].temp_c * 1000; in get_temp_mc() 418 temp = data->comp[low].temp_c * 1000 + in get_temp_mc() 419 ((data->comp[high].temp_c - data->comp[low].temp_c) * in get_temp_mc() 420 1000 * ((int)ohm - (int)data->comp[low].ohm)) / in get_temp_mc() [all …]
|
/drivers/infiniband/ulp/iser/ |
D | iser_verbs.c | 118 struct iser_comp *comp = &device->comps[i]; in iser_create_device_ib_res() local 120 comp->device = device; in iser_create_device_ib_res() 121 comp->cq = ib_create_cq(device->ib_device, in iser_create_device_ib_res() 124 (void *)comp, in iser_create_device_ib_res() 126 if (IS_ERR(comp->cq)) { in iser_create_device_ib_res() 127 comp->cq = NULL; in iser_create_device_ib_res() 131 if (ib_req_notify_cq(comp->cq, IB_CQ_NEXT_COMP)) in iser_create_device_ib_res() 134 tasklet_init(&comp->tasklet, iser_cq_tasklet_fn, in iser_create_device_ib_res() 135 (unsigned long)comp); in iser_create_device_ib_res() 158 struct iser_comp *comp = &device->comps[i]; in iser_create_device_ib_res() local [all …]
|
/drivers/block/ |
D | sunvdc.c | 509 struct vio_completion comp; in generic_request() local 607 init_completion(&comp.com); in generic_request() 608 comp.waiting_for = WAITING_FOR_GEN_CMD; in generic_request() 609 port->vio.cmp = ∁ in generic_request() 632 wait_for_completion(&comp.com); in generic_request() 633 err = comp.err; in generic_request() 695 struct vio_completion comp; in probe_disk() local 700 init_completion(&comp.com); in probe_disk() 701 comp.err = 0; in probe_disk() 702 comp.waiting_for = WAITING_FOR_LINK_UP; in probe_disk() [all …]
|
/drivers/net/wireless/rtlwifi/ |
D | debug.h | 177 #define RT_TRACE(rtlpriv, comp, level, fmt, ...) \ argument 179 if (unlikely(((comp) & rtlpriv->dbg.global_debugcomponents) && \ 219 int comp, int level, in RT_TRACE() argument 232 int comp, int level, in RT_PRINT_DATA() argument
|
/drivers/rtc/ |
D | rtc-ep93xx.c | 46 unsigned long comp; in ep93xx_rtc_get_swcomp() local 48 comp = __raw_readl(ep93xx_rtc->mmio_base + EP93XX_RTC_SWCOMP); in ep93xx_rtc_get_swcomp() 51 *preload = (comp & EP93XX_RTC_SWCOMP_INT_MASK) in ep93xx_rtc_get_swcomp() 55 *delete = (comp & EP93XX_RTC_SWCOMP_DEL_MASK) in ep93xx_rtc_get_swcomp()
|
/drivers/thermal/ |
D | intel_powerclamp.c | 266 unsigned int comp = 0; in get_compensation() local 273 comp = (cal_data[ratio].steady_comp + in get_compensation() 280 comp = (cal_data[ratio].steady_comp + in get_compensation() 286 comp = (cal_data[ratio].steady_comp + in get_compensation() 293 comp = ratio; in get_compensation() 295 if (comp + ratio >= MAX_TARGET_RATIO) in get_compensation() 296 comp = MAX_TARGET_RATIO - ratio - 1; in get_compensation() 298 return comp; in get_compensation()
|
/drivers/regulator/ |
D | twl-regulator.c | 1026 #define TWL_OF_MATCH(comp, family, label) \ argument 1028 .compatible = comp, \ 1032 #define TWL4030_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWL4030, label) argument 1033 #define TWL6030_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWL6030, label) argument 1034 #define TWL6032_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWL6032, label) argument 1035 #define TWLFIXED_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWLFIXED, label) argument 1036 #define TWLSMPS_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWLSMPS, label) argument
|
/drivers/char/ipmi/ |
D | ipmi_poweroff.c | 130 struct completion *comp = recv_msg->user_msg_data; in receive_handler() local 132 if (comp) in receive_handler() 133 complete(comp); in receive_handler() 146 struct completion comp; in ipmi_request_wait_for_response() local 148 init_completion(&comp); in ipmi_request_wait_for_response() 150 rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, &comp, in ipmi_request_wait_for_response() 155 wait_for_completion(&comp); in ipmi_request_wait_for_response()
|
/drivers/infiniband/core/ |
D | addr.c | 94 init_completion(&client->comp); in rdma_addr_register_client() 101 complete(&client->comp); in put_client() 107 wait_for_completion(&client->comp); in rdma_addr_unregister_client() 449 struct completion comp; member 457 complete(&((struct resolve_cb_context *)context)->comp); in resolve_cb() 486 init_completion(&ctx.comp); in rdma_addr_find_dmac_by_grh() 492 wait_for_completion(&ctx.comp); in rdma_addr_find_dmac_by_grh()
|
/drivers/gpu/drm/nouveau/core/subdev/fb/ |
D | nv30.c | 37 if (pfb->tile.comp) /* z compression */ in nv30_fb_tile_init() 38 pfb->tile.comp(pfb, i, size, flags, tile); in nv30_fb_tile_init() 136 .tile.comp = nv30_fb_tile_comp,
|