/drivers/uwb/ |
D | radio.c | 44 struct uwb_pal *pal; in uwb_radio_channel_changed() local 46 list_for_each_entry(pal, &rc->pals, node) { in uwb_radio_channel_changed() 47 if (pal->channel && channel != pal->channel) { in uwb_radio_channel_changed() 48 pal->channel = channel; in uwb_radio_channel_changed() 49 if (pal->channel_changed) in uwb_radio_channel_changed() 50 pal->channel_changed(pal, pal->channel); in uwb_radio_channel_changed() 99 int uwb_radio_start(struct uwb_pal *pal) in uwb_radio_start() argument 101 struct uwb_rc *rc = pal->rc; in uwb_radio_start() 106 if (!pal->channel) { in uwb_radio_start() 107 pal->channel = -1; in uwb_radio_start() [all …]
|
D | pal.c | 29 void uwb_pal_init(struct uwb_pal *pal) in uwb_pal_init() argument 31 INIT_LIST_HEAD(&pal->node); in uwb_pal_init() 41 int uwb_pal_register(struct uwb_pal *pal) in uwb_pal_register() argument 43 struct uwb_rc *rc = pal->rc; in uwb_pal_register() 46 if (pal->device) { in uwb_pal_register() 48 ret = sysfs_create_link(&pal->device->kobj, in uwb_pal_register() 54 &pal->device->kobj, pal->name); in uwb_pal_register() 56 sysfs_remove_link(&pal->device->kobj, "uwb_rc"); in uwb_pal_register() 61 pal->debugfs_dir = uwb_dbg_create_pal_dir(pal); in uwb_pal_register() 64 list_add(&pal->node, &rc->pals); in uwb_pal_register() [all …]
|
D | uwb-debug.c | 56 struct uwb_pal pal; member 189 ret = uwb_radio_start(&rc->dbg->pal); in command_write() 192 uwb_radio_stop(&rc->dbg->pal); in command_write() 281 static void uwb_dbg_channel_changed(struct uwb_pal *pal, int channel) in uwb_dbg_channel_changed() argument 283 struct device *dev = &pal->rc->uwb_dev.dev; in uwb_dbg_channel_changed() 291 static void uwb_dbg_new_rsv(struct uwb_pal *pal, struct uwb_rsv *rsv) in uwb_dbg_new_rsv() argument 293 struct uwb_dbg *dbg = container_of(pal, struct uwb_dbg, pal); in uwb_dbg_new_rsv() 316 uwb_pal_init(&rc->dbg->pal); in uwb_dbg_add_rc() 317 rc->dbg->pal.rc = rc; in uwb_dbg_add_rc() 318 rc->dbg->pal.channel_changed = uwb_dbg_channel_changed; in uwb_dbg_add_rc() [all …]
|
D | rsv.c | 748 struct uwb_pal *pal; in uwb_rsv_new_target() local 771 list_for_each_entry(pal, &rc->pals, node) { in uwb_rsv_new_target() 772 if (pal->new_rsv) in uwb_rsv_new_target() 773 pal->new_rsv(pal, rsv); in uwb_rsv_new_target()
|
D | Makefile | 20 pal.o \
|
/drivers/usb/wusbcore/ |
D | pal.c | 21 static void wusbhc_channel_changed(struct uwb_pal *pal, int channel) in wusbhc_channel_changed() argument 23 struct wusbhc *wusbhc = container_of(pal, struct wusbhc, pal); in wusbhc_channel_changed() 38 uwb_pal_init(&wusbhc->pal); in wusbhc_pal_register() 40 wusbhc->pal.name = "wusbhc"; in wusbhc_pal_register() 41 wusbhc->pal.device = wusbhc->usb_hcd.self.controller; in wusbhc_pal_register() 42 wusbhc->pal.rc = wusbhc->uwb_rc; in wusbhc_pal_register() 43 wusbhc->pal.channel_changed = wusbhc_channel_changed; in wusbhc_pal_register() 45 return uwb_pal_register(&wusbhc->pal); in wusbhc_pal_register() 55 uwb_pal_unregister(&wusbhc->pal); in wusbhc_pal_unregister()
|
D | mmc.c | 303 result = uwb_radio_start(&wusbhc->pal); in wusbhc_chid_set() 305 uwb_radio_stop(&wusbhc->pal); in wusbhc_chid_set()
|
D | Makefile | 13 pal.o \
|
/drivers/video/fbdev/ |
D | clps711xfb.c | 53 unsigned int level, mask, shift, pal; in clps7111fb_setcolreg() local 79 pal = clps_readl(regno); in clps7111fb_setcolreg() 80 pal = (pal & ~mask) | level; in clps7111fb_setcolreg() 81 clps_writel(pal, regno); in clps7111fb_setcolreg()
|
D | acornfb.c | 272 union palette pal; in acornfb_setcolreg() local 287 pal.p = 0; in acornfb_setcolreg() 288 pal.vidc20.red = red >> 8; in acornfb_setcolreg() 289 pal.vidc20.green = green >> 8; in acornfb_setcolreg() 290 pal.vidc20.blue = blue >> 8; in acornfb_setcolreg() 292 current_par.palette[regno] = pal; in acornfb_setcolreg() 297 pal.p = 0; in acornfb_setcolreg() 300 pal.vidc20.red = current_par.palette[ i & 31].vidc20.red; in acornfb_setcolreg() 301 pal.vidc20.green = current_par.palette[(i >> 1) & 31].vidc20.green; in acornfb_setcolreg() 302 pal.vidc20.blue = current_par.palette[(i >> 2) & 31].vidc20.blue; in acornfb_setcolreg() [all …]
|
D | da8xx-fb.c | 610 u_short pal; in fb_setcolreg() local 635 pal = regno; in fb_setcolreg() 641 pal = red & 0x0f00; in fb_setcolreg() 642 pal |= green & 0x00f0; in fb_setcolreg() 643 pal |= blue & 0x000f; in fb_setcolreg() 646 pal |= 0x2000; in fb_setcolreg() 647 palette[regno] = pal; in fb_setcolreg() 655 pal = (red & 0x0f00); in fb_setcolreg() 656 pal |= (green & 0x00f0); in fb_setcolreg() 657 pal |= (blue & 0x000f); in fb_setcolreg() [all …]
|
D | ep93xx-fb.c | 358 unsigned int *pal = info->pseudo_palette; in ep93xxfb_setcolreg() local 368 pal[regno] = rgb; in ep93xxfb_setcolreg() 376 ep93xxfb_writel(fbi, pal[i], in ep93xxfb_setcolreg() 396 pal[regno] = (red << info->var.red.offset) | in ep93xxfb_setcolreg()
|
D | pxafb.c | 89 static int setup_frame_dma(struct pxafb_info *fbi, int dma, int pal, 220 u32 *pal = fbi->fb.pseudo_palette; in pxafb_setcolreg() local 226 pal[regno] = val; in pxafb_setcolreg() 1065 static int setup_frame_dma(struct pxafb_info *fbi, int dma, int pal, in setup_frame_dma() argument 1081 if (pal < 0 || pal >= PAL_MAX * 2) { in setup_frame_dma() 1085 pal_desc = &fbi->dma_buff->pal_desc[pal]; in setup_frame_dma() 1086 pal_desc_off = offsetof(struct pxafb_dma_buff, pal_desc[pal]); in setup_frame_dma() 1088 pal_desc->fsadr = fbi->dma_buff_phys + pal * PALETTE_SIZE; in setup_frame_dma() 1112 int nbytes, dma, pal, bpp = var->bits_per_pixel; in setup_base_frame() local 1116 pal = (bpp >= 16) ? PAL_NONE : PAL_BASE + (branch ? PAL_MAX : 0); in setup_base_frame() [all …]
|
D | platinumfb.c | 208 u32 *pal = info->pseudo_palette; in platinumfb_setcolreg() local 211 pal[regno] = (regno << 10) | (regno << 5) | regno; in platinumfb_setcolreg() 215 pal[regno] = (i << 16) | i; in platinumfb_setcolreg()
|
D | sm712fb.c | 919 u32 *pal = sfb->fb->pseudo_palette; in smtc_setcolreg() local 924 pal[regno] = pal_rgb(red, green, blue, val); in smtc_setcolreg() 926 u32 *pal = sfb->fb->pseudo_palette; in smtc_setcolreg() local 931 pal[regno] = big_swap(val); in smtc_setcolreg()
|
/drivers/usb/host/whci/ |
D | debug.c | 174 if (whc->wusbhc.pal.debugfs_dir == NULL) in whc_dbg_init() 182 whc->wusbhc.pal.debugfs_dir, whc, in whc_dbg_init() 185 whc->wusbhc.pal.debugfs_dir, whc, in whc_dbg_init() 188 whc->wusbhc.pal.debugfs_dir, whc, in whc_dbg_init()
|
/drivers/video/fbdev/geode/ |
D | suspend_gx.c | 43 for (i = 0; i < ARRAY_SIZE(par->pal); i++) in gx_save_regs() 44 par->pal[i] = read_dc(par, DC_PAL_DATA); in gx_save_regs() 134 for (i = 0; i < ARRAY_SIZE(par->pal); i++) in gx_restore_display_ctlr() 135 write_dc(par, DC_PAL_DATA, par->pal[i]); in gx_restore_display_ctlr()
|
D | gx1fb_core.c | 170 u32 *pal = info->pseudo_palette; in gx1fb_setcolreg() local 180 pal[regno] = v; in gx1fb_setcolreg()
|
D | gxfb_core.c | 203 u32 *pal = info->pseudo_palette; in gxfb_setcolreg() local 213 pal[regno] = v; in gxfb_setcolreg()
|
/drivers/gpu/drm/qxl/ |
D | qxl_draw.c | 128 struct qxl_palette *pal; in qxl_palette_create_1bit() local 134 ret = qxl_bo_kmap(palette_bo, (void **)&pal); in qxl_palette_create_1bit() 137 pal->num_ents = 2; in qxl_palette_create_1bit() 138 pal->unique = unique++; in qxl_palette_create_1bit() 147 pal->ents[0] = bgcolor; in qxl_palette_create_1bit() 148 pal->ents[1] = fgcolor; in qxl_palette_create_1bit()
|
/drivers/media/v4l2-core/ |
D | tuner-core.c | 65 static char pal[] = "--"; variable 72 module_param_string(pal, pal, sizeof(pal), 0644); 910 if (pal[0] != '-' && (std & V4L2_STD_PAL) == V4L2_STD_PAL) { in tuner_fixup_std() 911 switch (pal[0]) { in tuner_fixup_std() 932 if (pal[1] == 'c' || pal[1] == 'C') in tuner_fixup_std()
|
/drivers/media/pci/cx18/ |
D | cx18-driver.c | 79 static char pal[] = "--"; variable 115 module_param_string(pal, pal, sizeof(pal), 0644); 164 MODULE_PARM_DESC(pal, "Set PAL standard: B, G, H, D, K, I, M, N, Nc, 60"); 459 switch (pal[0]) { in cx18_parse_std() 472 if (pal[1] == 'c' || pal[1] == 'C') in cx18_parse_std()
|
/drivers/media/pci/ivtv/ |
D | ivtv-driver.c | 107 static char pal[] = "---"; variable 147 module_param_string(pal, pal, sizeof(pal), 0644); 209 MODULE_PARM_DESC(pal, "Set PAL standard: BGH, DK, I, M, N, Nc, 60"); 550 switch (pal[0]) { in ivtv_parse_std() 565 if (pal[1] == 'c' || pal[1] == 'C') in ivtv_parse_std()
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_accel.c | 88 static inline void matrox_cfb4_pal(u_int32_t* pal) { in matrox_cfb4_pal() argument 92 pal[i] = i * 0x11111111U; in matrox_cfb4_pal() 96 static inline void matrox_cfb8_pal(u_int32_t* pal) { in matrox_cfb8_pal() argument 100 pal[i] = i * 0x01010101U; in matrox_cfb8_pal()
|
/drivers/media/usb/usbtv/ |
D | usbtv-video.c | 127 static const u16 pal[][2] = { in usbtv_select_norm() local 169 ret = usbtv_set_regs(usbtv, pal, ARRAY_SIZE(pal)); in usbtv_select_norm()
|