/drivers/net/wireless/ath/carl9170/ |
D | fwdesc.h | 114 u8 magic[CARL9170FW_MAGIC_SIZE]; member 227 .magic = _magic, \ 234 u8 magic[CARL9170FW_MAGIC_SIZE], in carl9170fw_fill_desc() 237 head->magic[0] = magic[0]; in carl9170fw_fill_desc() 238 head->magic[1] = magic[1]; in carl9170fw_fill_desc() 239 head->magic[2] = magic[2]; in carl9170fw_fill_desc() 240 head->magic[3] = magic[3]; in carl9170fw_fill_desc() 249 memcmp(desc->magic, LAST_MAGIC, CARL9170FW_MAGIC_SIZE) && \ 266 if (descid[0] == head->magic[0] && descid[1] == head->magic[1] && in carl9170fw_desc_cmp() 267 descid[2] == head->magic[2] && descid[3] == head->magic[3] && in carl9170fw_desc_cmp()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_msg.h | 44 port_num, magic, \ argument 54 "a"(magic), \ 88 port_num, magic, bp, \ argument 101 "a"(magic), \ 113 port_num, magic, bp, \ argument 126 "a"(magic), \ 142 port_num, magic, bp, \ argument 155 "a"(magic), \ 167 port_num, magic, bp, \ argument 180 "a"(magic), \
|
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | gk104.c | 50 magic(struct nvkm_device *device, u32 ctrl) in magic() function 87 magic(device, 0x04000000); in gk104_pmu_pgob() 88 magic(device, 0x06000000); in gk104_pmu_pgob() 89 magic(device, 0x0c000000); in gk104_pmu_pgob() 90 magic(device, 0x0e000000); in gk104_pmu_pgob() 93 magic(device, 0x02000000); in gk104_pmu_pgob() 94 magic(device, 0x04000000); in gk104_pmu_pgob() 95 magic(device, 0x0a000000); in gk104_pmu_pgob() 98 magic(device, 0x02000000); in gk104_pmu_pgob()
|
D | gk110.c | 38 } magic[] = { in gk110_pmu_pgob() local 68 for (i = 0; i < ARRAY_SIZE(magic); i++) { in gk110_pmu_pgob() 69 nvkm_wr32(device, magic[i].addr, magic[i].data); in gk110_pmu_pgob() 71 if (!(nvkm_rd32(device, magic[i].addr) & 0x80000000)) in gk110_pmu_pgob()
|
/drivers/staging/dgnc/ |
D | dgnc_sysfs.c | 99 if (!bd || bd->magic != DGNC_BOARD_MAGIC) \ 388 if (!un || un->magic != DGNC_UNIT_MAGIC) in tty_state_show() 391 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in tty_state_show() 394 if (!bd || bd->magic != DGNC_BOARD_MAGIC) in tty_state_show() 414 if (!un || un->magic != DGNC_UNIT_MAGIC) in tty_baud_show() 417 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in tty_baud_show() 420 if (!bd || bd->magic != DGNC_BOARD_MAGIC) in tty_baud_show() 439 if (!un || un->magic != DGNC_UNIT_MAGIC) in tty_msignals_show() 442 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in tty_msignals_show() 445 if (!bd || bd->magic != DGNC_BOARD_MAGIC) in tty_msignals_show() [all …]
|
D | dgnc_tty.c | 315 ch->magic = DGNC_CHANNEL_MAGIC; in dgnc_tty_init() 316 ch->ch_tun.magic = DGNC_UNIT_MAGIC; in dgnc_tty_init() 321 ch->ch_pun.magic = DGNC_UNIT_MAGIC; in dgnc_tty_init() 420 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in dgnc_wmove() 473 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in dgnc_input() 479 if (!bd || bd->magic != DGNC_BOARD_MAGIC) in dgnc_input() 500 if (!tp || (tp->magic != TTY_MAGIC) || in dgnc_input() 636 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in dgnc_carrier() 862 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in dgnc_wakeup_writes() 1300 if (!tty || tty->magic != TTY_MAGIC) in dgnc_tty_hangup() [all …]
|
D | dgnc_cls.c | 286 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in cls_clear_break() 319 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in cls_copy_data_from_uart_to_queue() 402 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in cls_assert_modem_signals() 425 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in cls_copy_data_from_queue_to_uart() 498 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in cls_parse_modem() 573 if (ch->magic != DGNC_CHANNEL_MAGIC) in cls_parse_isr() 608 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in cls_flush_uart_write() 621 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in cls_flush_uart_read() 654 if (!tty || tty->magic != TTY_MAGIC) in cls_param() 658 if (!un || un->magic != DGNC_UNIT_MAGIC) in cls_param() [all …]
|
D | dgnc_neo.c | 395 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in neo_parse_isr() 517 if (!brd || brd->magic != DGNC_BOARD_MAGIC) in neo_parse_lsr() 524 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in neo_parse_lsr() 597 if (!tty || tty->magic != TTY_MAGIC) in neo_param() 601 if (!un || un->magic != DGNC_UNIT_MAGIC) in neo_param() 605 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in neo_param() 609 if (!bd || bd->magic != DGNC_BOARD_MAGIC) in neo_param() 855 if (!bd || bd->magic != DGNC_BOARD_MAGIC) in neo_tasklet() 879 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) in neo_tasklet() 939 if (!brd || brd->magic != DGNC_BOARD_MAGIC) in neo_intr() [all …]
|
/drivers/staging/lustre/lnet/selftest/ |
D | brw_test.c | 150 brw_fill_page(struct page *pg, int pattern, __u64 magic) in brw_fill_page() argument 160 if (magic == BRW_MAGIC) in brw_fill_page() 161 magic += brw_inject_one_error(); in brw_fill_page() 164 memcpy(addr, &magic, BRW_MSIZE); in brw_fill_page() 166 memcpy(addr, &magic, BRW_MSIZE); in brw_fill_page() 172 memcpy(addr + i * BRW_MSIZE, &magic, BRW_MSIZE); in brw_fill_page() 180 brw_check_page(struct page *pg, int pattern, __u64 magic) in brw_check_page() argument 193 if (data != magic) in brw_check_page() 198 if (data != magic) in brw_check_page() 207 if (data != magic) in brw_check_page() [all …]
|
/drivers/power/reset/ |
D | reboot-mode.c | 22 u32 magic; member 30 int magic = 0; in get_reboot_mode_magic() local 38 magic = info->magic; in get_reboot_mode_magic() 43 return magic; in get_reboot_mode_magic() 50 unsigned int magic; in reboot_mode_notify() local 53 magic = get_reboot_mode_magic(reboot, cmd); in reboot_mode_notify() 54 if (magic) in reboot_mode_notify() 55 reboot->write(reboot, magic); in reboot_mode_notify() 86 if (of_property_read_u32(np, prop->name, &info->magic)) { in reboot_mode_register()
|
/drivers/staging/lustre/lnet/lnet/ |
D | acceptor.c | 58 lnet_accept_magic(__u32 magic, __u32 constant) in lnet_accept_magic() argument 60 return (magic == constant || in lnet_accept_magic() 61 magic == __swab32(constant)); in lnet_accept_magic() 207 lnet_accept(struct socket *sock, __u32 magic) in lnet_accept() argument 222 if (!lnet_accept_magic(magic, LNET_PROTO_ACCEPTOR_MAGIC)) { in lnet_accept() 223 if (lnet_accept_magic(magic, LNET_PROTO_MAGIC)) { in lnet_accept() 242 if (magic == le32_to_cpu(LNET_PROTO_TCP_MAGIC)) in lnet_accept() 248 &peer_ip, magic, str); in lnet_accept() 252 flip = (magic != LNET_PROTO_ACCEPTOR_MAGIC); in lnet_accept() 330 __u32 magic; in lnet_acceptor() local [all …]
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_offset.c | 48 int magic = lsm->lsm_magic; in lov_stripe_size() local 53 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, NULL, &swidth); in lov_stripe_size() 131 int magic = lsm->lsm_magic; in lov_stripe_offset() local 139 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, &lov_off, in lov_stripe_offset() 186 int magic = lsm->lsm_magic; in lov_size_to_stripe() local 191 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, &file_size, in lov_size_to_stripe() 260 int magic = lsm->lsm_magic; in lov_stripe_number() local 262 lsm_op_find(magic)->lsm_stripe_by_offset(lsm, NULL, &lov_off, &swidth); in lov_stripe_number()
|
D | lov_pack.c | 232 __u16 lov_get_stripecnt(struct lov_obd *lov, __u32 magic, __u16 stripe_count) in lov_get_stripecnt() argument 249 lov->lov_ocd.ocd_max_easize, magic); in lov_get_stripecnt() 274 int pattern, int magic) in lov_alloc_memmd() argument 288 (*lsmp)->lsm_magic = magic; in lov_alloc_memmd() 327 __u32 magic; in lov_unpackmd() local 335 magic = le32_to_cpu(lmm->lmm_magic); in lov_unpackmd() 338 magic = LOV_MAGIC; in lov_unpackmd() 339 stripe_count = lov_get_stripecnt(lov, magic, 0); in lov_unpackmd() 355 lsm_size = lov_alloc_memmd(lsmp, stripe_count, pattern, magic); in lov_unpackmd() 363 rc = lsm_op_find(magic)->lsm_unpackmd(lov, *lsmp, lmm); in lov_unpackmd()
|
/drivers/net/irda/ |
D | irtty-sir.c | 65 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -1;); in irtty_chars_in_buffer() 93 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return;); in irtty_wait_until_sent() 122 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -1;); in irtty_change_speed() 152 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -1;); in irtty_set_dtr_rts() 189 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -1;); in irtty_do_write() 227 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return;); in irtty_receive_buf() 264 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return;); in irtty_write_wakeup() 314 if (unlikely(!priv || priv->magic!=IRTTY_MAGIC)) { in irtty_start_dev() 341 if (unlikely(!priv || priv->magic!=IRTTY_MAGIC)) { in irtty_stop_dev() 388 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -EBADR;); in irtty_ioctl() [all …]
|
/drivers/mtd/ubi/ |
D | ubi-media.h | 158 __be32 magic; member 279 __be32 magic; member 418 __be32 magic; member 440 __be32 magic; member 460 __be32 magic; member 490 __be32 magic; member 509 __be32 magic; member
|
D | io.c | 740 uint32_t crc, magic, hdr_crc; in ubi_io_read_ec_hdr() local 761 magic = be32_to_cpu(ec_hdr->magic); in ubi_io_read_ec_hdr() 762 if (magic != UBI_EC_HDR_MAGIC) { in ubi_io_read_ec_hdr() 790 pnum, magic, UBI_EC_HDR_MAGIC); in ubi_io_read_ec_hdr() 794 pnum, magic, UBI_EC_HDR_MAGIC); in ubi_io_read_ec_hdr() 854 ec_hdr->magic = cpu_to_be32(UBI_EC_HDR_MAGIC); in ubi_io_write_ec_hdr() 1017 uint32_t crc, magic, hdr_crc; in ubi_io_read_vid_hdr() local 1029 magic = be32_to_cpu(vid_hdr->magic); in ubi_io_read_vid_hdr() 1030 if (magic != UBI_VID_HDR_MAGIC) { in ubi_io_read_vid_hdr() 1048 pnum, magic, UBI_VID_HDR_MAGIC); in ubi_io_read_vid_hdr() [all …]
|
/drivers/gpu/drm/ |
D | drm_auth.c | 63 if (!file_priv->magic) { in drm_getmagic() 67 file_priv->magic = ret; in drm_getmagic() 69 auth->magic = file_priv->magic; in drm_getmagic() 72 DRM_DEBUG("%u\n", auth->magic); in drm_getmagic() 83 DRM_DEBUG("%u\n", auth->magic); in drm_authmagic() 86 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic() 89 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic() 248 if (file_priv->magic) in drm_master_release() 249 idr_remove(&file_priv->master->magic_map, file_priv->magic); in drm_master_release()
|
/drivers/media/usb/gspca/ |
D | kinect.c | 42 uint8_t magic[2]; member 53 uint8_t magic[2]; member 149 chdr->magic[0] = 0x47; in send_cmd() 150 chdr->magic[1] = 0x4d; in send_cmd() 176 if (rhdr->magic[0] != 0x52 || rhdr->magic[1] != 0x42) { in send_cmd() 178 rhdr->magic[0], rhdr->magic[1]); in send_cmd() 406 if (hdr->magic[0] != 'R' || hdr->magic[1] != 'B') { in sd_pkt_scan() 408 sd->stream_flag, hdr->magic[0], hdr->magic[1]); in sd_pkt_scan()
|
/drivers/scsi/ |
D | g_NCR5380.c | 74 static void magic_configure(int idx, u8 irq, u8 magic[]) in magic_configure() argument 78 outb(magic[0], 0x779); in magic_configure() 79 outb(magic[1], 0x379); in magic_configure() 80 outb(magic[2], 0x379); in magic_configure() 81 outb(magic[3], 0x379); in magic_configure() 82 outb(magic[4], 0x379); in magic_configure() 97 u8 *magic = NULL; in generic_NCR5380_init_one() local 131 magic = ncr_53c400a_magic; in generic_NCR5380_init_one() 135 magic = hp_c2502_magic; in generic_NCR5380_init_one() 139 magic = ncr_53c400a_magic; in generic_NCR5380_init_one() [all …]
|
/drivers/media/v4l2-core/ |
D | videobuf-dma-contig.c | 27 u32 magic; member 111 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in videobuf_vm_close() 220 mem->magic = MAGIC_DC_MEM; in __videobuf_alloc() 231 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in __videobuf_to_vaddr() 243 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in __videobuf_iolock() 299 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in __videobuf_mmap_mapper() 344 .magic = MAGIC_QTYPE_OPS, 371 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in videobuf_to_dma_contig() 394 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in videobuf_dma_contig_free()
|
D | videobuf-vmalloc.c | 99 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); in videobuf_vm_close() 148 mem->magic = MAGIC_VMAL_MEM; in __videobuf_alloc_vb() 166 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); in __videobuf_iolock() 254 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); in __videobuf_mmap_mapper() 292 .magic = MAGIC_QTYPE_OPS, 319 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); in videobuf_to_vmalloc() 341 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); in videobuf_vmalloc_free()
|
D | videobuf-dma-sg.c | 142 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); in videobuf_to_dma() 151 dma->magic = MAGIC_DMABUF; in videobuf_dma_init() 290 MAGIC_CHECK(dma->magic, MAGIC_DMABUF); in videobuf_dma_map() 333 MAGIC_CHECK(dma->magic, MAGIC_DMABUF); in videobuf_dma_unmap() 351 MAGIC_CHECK(dma->magic, MAGIC_DMABUF); in videobuf_dma_free() 418 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); in videobuf_vm_close() 481 mem->magic = MAGIC_SG_MEM; in __videobuf_alloc_vb() 497 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); in __videobuf_to_vaddr() 511 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); in __videobuf_iolock() 581 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); in __videobuf_sync() [all …]
|
/drivers/s390/block/ |
D | dasd_erp.c | 26 dasd_alloc_erp_request(char *magic, int cplength, int datasize, in dasd_alloc_erp_request() argument 35 BUG_ON( magic == NULL || datasize > PAGE_SIZE || in dasd_alloc_erp_request() 64 strncpy((char *) &cqr->magic, magic, 4); in dasd_alloc_erp_request() 65 ASCEBC((char *) &cqr->magic, 4); in dasd_alloc_erp_request()
|
/drivers/firmware/broadcom/ |
D | bcm47xx_nvram.c | 30 u32 magic; member 48 if (header->magic == NVRAM_MAGIC) in find_nvram_size() 81 if (header->magic == NVRAM_MAGIC) { in nvram_find_and_copy() 87 if (header->magic == NVRAM_MAGIC) { in nvram_find_and_copy() 151 if (!err && header.magic == NVRAM_MAGIC && in nvram_init()
|
/drivers/tty/ |
D | tty_mutex.c | 15 if (WARN(tty->magic != TTY_MAGIC, "L Bad %p\n", tty)) in tty_lock() 26 if (WARN(tty->magic != TTY_MAGIC, "L Bad %p\n", tty)) in tty_lock_interruptible() 37 if (WARN(tty->magic != TTY_MAGIC, "U Bad %p\n", tty)) in tty_unlock()
|