/drivers/uwb/ |
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() 47 ret = sysfs_create_link(&pal->device->kobj, in uwb_pal_register() 52 &pal->device->kobj, pal->name); in uwb_pal_register() 54 sysfs_remove_link(&pal->device->kobj, "uwb_rc"); in uwb_pal_register() 59 pal->debugfs_dir = uwb_dbg_create_pal_dir(pal); in uwb_pal_register() 62 list_add(&pal->node, &rc->pals); in uwb_pal_register() [all …]
|
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() 95 int uwb_radio_start(struct uwb_pal *pal) in uwb_radio_start() argument 97 struct uwb_rc *rc = pal->rc; in uwb_radio_start() 102 if (!pal->channel) { in uwb_radio_start() 103 pal->channel = -1; in uwb_radio_start() [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() 287 static void uwb_dbg_channel_changed(struct uwb_pal *pal, int channel) in uwb_dbg_channel_changed() argument 289 struct device *dev = &pal->rc->uwb_dev.dev; in uwb_dbg_channel_changed() 297 static void uwb_dbg_new_rsv(struct uwb_pal *pal, struct uwb_rsv *rsv) in uwb_dbg_new_rsv() argument 299 struct uwb_dbg *dbg = container_of(pal, struct uwb_dbg, pal); in uwb_dbg_new_rsv() 322 uwb_pal_init(&rc->dbg->pal); in uwb_dbg_add_rc() 323 rc->dbg->pal.rc = rc; in uwb_dbg_add_rc() 324 rc->dbg->pal.channel_changed = uwb_dbg_channel_changed; in uwb_dbg_add_rc() [all …]
|
D | rsv.c | 735 struct uwb_pal *pal; in uwb_rsv_new_target() local 758 list_for_each_entry(pal, &rc->pals, node) { in uwb_rsv_new_target() 759 if (pal->new_rsv) in uwb_rsv_new_target() 760 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() 37 uwb_pal_init(&wusbhc->pal); in wusbhc_pal_register() 39 wusbhc->pal.name = "wusbhc"; in wusbhc_pal_register() 40 wusbhc->pal.device = wusbhc->usb_hcd.self.controller; in wusbhc_pal_register() 41 wusbhc->pal.rc = wusbhc->uwb_rc; in wusbhc_pal_register() 42 wusbhc->pal.channel_changed = wusbhc_channel_changed; in wusbhc_pal_register() 44 return uwb_pal_register(&wusbhc->pal); in wusbhc_pal_register() 53 uwb_pal_unregister(&wusbhc->pal); in wusbhc_pal_unregister()
|
D | mmc.c | 282 result = uwb_radio_start(&wusbhc->pal); in wusbhc_chid_set() 284 uwb_radio_stop(&wusbhc->pal); in wusbhc_chid_set()
|
D | Makefile | 13 pal.o \
|
/drivers/video/ |
D | acornfb.c | 322 union palette pal; in acornfb_setcolreg() local 327 pal.p = 0; in acornfb_setcolreg() 328 pal.vidc.reg = regno; in acornfb_setcolreg() 329 pal.vidc.red = red >> 12; in acornfb_setcolreg() 330 pal.vidc.green = green >> 12; in acornfb_setcolreg() 331 pal.vidc.blue = blue >> 12; in acornfb_setcolreg() 333 current_par.palette[regno] = pal; in acornfb_setcolreg() 335 vidc_writel(pal.p); in acornfb_setcolreg() 512 union palette pal; in acornfb_setcolreg() local 527 pal.p = 0; in acornfb_setcolreg() [all …]
|
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 | da8xx-fb.c | 592 u_short pal; in fb_setcolreg() local 617 pal = regno; in fb_setcolreg() 623 pal = red & 0x0f00; in fb_setcolreg() 624 pal |= green & 0x00f0; in fb_setcolreg() 625 pal |= blue & 0x000f; in fb_setcolreg() 628 pal |= 0x2000; in fb_setcolreg() 629 palette[regno] = pal; in fb_setcolreg() 637 pal = (red & 0x0f00); in fb_setcolreg() 638 pal |= (green & 0x00f0); in fb_setcolreg() 639 pal |= (blue & 0x000f); in fb_setcolreg() [all …]
|
D | simplefb.c | 46 u32 *pal = info->pseudo_palette; in simplefb_setcolreg() local 63 pal[regno] = value; in simplefb_setcolreg()
|
D | ep93xx-fb.c | 359 unsigned int *pal = info->pseudo_palette; in ep93xxfb_setcolreg() local 369 pal[regno] = rgb; in ep93xxfb_setcolreg() 377 ep93xxfb_writel(fbi, pal[i], in ep93xxfb_setcolreg() 397 pal[regno] = (red << info->var.red.offset) | in ep93xxfb_setcolreg()
|
D | pxafb.c | 86 static int setup_frame_dma(struct pxafb_info *fbi, int dma, int pal, 217 u32 *pal = fbi->fb.pseudo_palette; in pxafb_setcolreg() local 223 pal[regno] = val; in pxafb_setcolreg() 1062 static int setup_frame_dma(struct pxafb_info *fbi, int dma, int pal, in setup_frame_dma() argument 1078 if (pal < 0 || pal >= PAL_MAX * 2) { in setup_frame_dma() 1082 pal_desc = &fbi->dma_buff->pal_desc[pal]; in setup_frame_dma() 1083 pal_desc_off = offsetof(struct pxafb_dma_buff, pal_desc[pal]); in setup_frame_dma() 1085 pal_desc->fsadr = fbi->dma_buff_phys + pal * PALETTE_SIZE; in setup_frame_dma() 1109 int nbytes, dma, pal, bpp = var->bits_per_pixel; in setup_base_frame() local 1113 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()
|
/drivers/usb/host/whci/ |
D | debug.c | 177 if (whc->wusbhc.pal.debugfs_dir == NULL) 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() 191 whc->wusbhc.pal.debugfs_dir, whc, in whc_dbg_init()
|
/drivers/video/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 | 105 struct qxl_palette *pal; in qxl_palette_create_1bit() local 116 ret = qxl_bo_kmap(*palette_bo, (void **)&pal); in qxl_palette_create_1bit() 117 pal->num_ents = 2; in qxl_palette_create_1bit() 118 pal->unique = unique++; in qxl_palette_create_1bit() 127 pal->ents[0] = bgcolor; in qxl_palette_create_1bit() 128 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); 870 if (pal[0] != '-' && (std & V4L2_STD_PAL) == V4L2_STD_PAL) { in tuner_fixup_std() 871 switch (pal[0]) { in tuner_fixup_std() 892 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"); 452 switch (pal[0]) { in cx18_parse_std() 465 if (pal[1] == 'c' || pal[1] == 'C') in cx18_parse_std()
|
/drivers/video/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/pci/ivtv/ |
D | ivtv-driver.c | 108 static char pal[] = "---"; variable 148 module_param_string(pal, pal, sizeof(pal), 0644); 210 MODULE_PARM_DESC(pal, "Set PAL standard: BGH, DK, I, M, N, Nc, 60"); 551 switch (pal[0]) { in ivtv_parse_std() 566 if (pal[1] == 'c' || pal[1] == 'C') in ivtv_parse_std()
|
/drivers/staging/sm7xxfb/ |
D | sm7xxfb.c | 260 u32 *pal = sfb->fb.pseudo_palette; in smtc_setcolreg() local 266 pal[regno] = in smtc_setcolreg() 272 pal[regno] = val; in smtc_setcolreg() 275 u32 *pal = sfb->fb.pseudo_palette; in smtc_setcolreg() local 285 pal[regno] = val; in smtc_setcolreg()
|