/linux-2.4.37.9/drivers/char/drm-4.0/ |
D | auth.c | 35 static int drm_hash_magic(drm_magic_t magic) in drm_hash_magic() argument 37 return magic & (DRM_HASH_SIZE-1); in drm_hash_magic() 40 static drm_file_t *drm_find_file(drm_device_t *dev, drm_magic_t magic) in drm_find_file() argument 44 int hash = drm_hash_magic(magic); in drm_find_file() 48 if (pt->magic == magic) { in drm_find_file() 57 int drm_add_magic(drm_device_t *dev, drm_file_t *priv, drm_magic_t magic) in drm_add_magic() argument 62 DRM_DEBUG("%d\n", magic); in drm_add_magic() 64 hash = drm_hash_magic(magic); in drm_add_magic() 67 entry->magic = magic; in drm_add_magic() 84 int drm_remove_magic(drm_device_t *dev, drm_magic_t magic) in drm_remove_magic() argument [all …]
|
/linux-2.4.37.9/drivers/char/drm/ |
D | drm_auth.h | 34 static int DRM(hash_magic)(drm_magic_t magic) in DRM() 36 return magic & (DRM_HASH_SIZE-1); in DRM() 39 static drm_file_t *DRM(find_file)(drm_device_t *dev, drm_magic_t magic) in DRM() 43 int hash = DRM(hash_magic)(magic); in DRM() 47 if (pt->magic == magic) { in DRM() 56 int DRM(add_magic)(drm_device_t *dev, drm_file_t *priv, drm_magic_t magic) in DRM() 61 DRM_DEBUG("%d\n", magic); in DRM() 63 hash = DRM(hash_magic)(magic); in DRM() 67 entry->magic = magic; in DRM() 84 int DRM(remove_magic)(drm_device_t *dev, drm_magic_t magic) in DRM() [all …]
|
/linux-2.4.37.9/arch/mips/dec/prom/ |
D | init.c | 41 void __init which_prom(s32 magic, s32 *prom_vec) in which_prom() argument 47 if (prom_is_rex(magic)) { in which_prom() 85 int __init prom_init(s32 argc, s32 *argv, u32 magic, s32 *prom_vec) in prom_init() argument 99 which_prom(magic, prom_vec); in prom_init() 101 if (prom_is_rex(magic)) in prom_init() 126 prom_meminit(magic); in prom_init() 127 prom_identify_arch(magic); in prom_init() 128 prom_init_cmdline(argc, argv, magic); in prom_init()
|
/linux-2.4.37.9/net/irda/ |
D | irias_object.c | 93 obj->magic = IAS_OBJECT_MAGIC; in irias_new_object() 111 ASSERT(attrib->magic == IAS_ATTRIB_MAGIC, return;); in __irias_delete_attrib() 117 attrib->magic = ~IAS_ATTRIB_MAGIC; in __irias_delete_attrib() 125 ASSERT(obj->magic == IAS_OBJECT_MAGIC, return;); in __irias_delete_object() 132 obj->magic = ~IAS_OBJECT_MAGIC; in __irias_delete_object() 149 ASSERT(obj->magic == IAS_OBJECT_MAGIC, return -1;); in irias_delete_object() 172 ASSERT(obj->magic == IAS_OBJECT_MAGIC, return -1;); in irias_delete_attrib() 200 ASSERT(obj->magic == IAS_OBJECT_MAGIC, return;); in irias_insert_object() 229 ASSERT(obj->magic == IAS_OBJECT_MAGIC, return NULL;); in irias_find_attrib() 249 ASSERT(obj->magic == IAS_OBJECT_MAGIC, return;); in irias_add_attrib() [all …]
|
D | irlmp.c | 86 irlmp->magic = LMP_MAGIC; in irlmp_init() 118 ASSERT(irlmp->magic == LMP_MAGIC, return;); in irlmp_cleanup() 145 ASSERT(irlmp->magic == LMP_MAGIC, return NULL;); in irlmp_open_lsap() 163 self->magic = LMP_LSAP_MAGIC; in irlmp_open_lsap() 200 ASSERT(self->magic == LMP_LSAP_MAGIC, return;); in __irlmp_close_lsap() 205 self->magic = 0; in __irlmp_close_lsap() 230 ASSERT(self->magic == LMP_LSAP_MAGIC, return;); in irlmp_close_lsap() 238 ASSERT(lap->magic == LMP_LAP_MAGIC, return;); in irlmp_close_lsap() 276 ASSERT(irlmp->magic == LMP_MAGIC, return;); in irlmp_register_link() 290 lap->magic = LMP_LAP_MAGIC; in irlmp_register_link() [all …]
|
D | iriap_event.c | 96 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_next_client_state() 104 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_next_call_state() 112 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_next_server_state() 120 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_next_r_connect_state() 129 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_do_client_event() 138 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_do_call_event() 147 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_do_server_event() 156 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_do_r_connect_event() 172 ASSERT(self->magic == IAS_MAGIC, return;); in state_s_disconnect() 199 ASSERT(self->magic == IAS_MAGIC, return;); in state_s_connecting() [all …]
|
D | irlap.c | 118 self->magic = LAP_MAGIC; in irlap_open() 176 ASSERT(self->magic == LAP_MAGIC, return;); in __irlap_close() 190 self->magic = 0; in __irlap_close() 208 ASSERT(self->magic == LAP_MAGIC, return;); in irlap_close() 235 ASSERT(self->magic == LAP_MAGIC, return;); in irlap_connect_indication() 271 ASSERT(self->magic == LAP_MAGIC, return;); in irlap_connect_request() 298 ASSERT(self->magic == LAP_MAGIC, return;); in irlap_connect_confirm() 332 ASSERT(self->magic == LAP_MAGIC, return;); in irlap_data_request() 376 ASSERT(self->magic == LAP_MAGIC, return;); in irlap_unitdata_request() 405 ASSERT(self->magic == LAP_MAGIC, return;); in irlap_unitdata_indication() [all …]
|
D | irttp.c | 93 irttp->magic = TTP_MAGIC; in irttp_init() 115 ASSERT(irttp->magic == TTP_MAGIC, return;); in irttp_cleanup() 122 irttp->magic = 0; in irttp_cleanup() 165 if (!self || self->magic != TTP_TSAP_MAGIC) in irttp_todo_expired() 212 ASSERT(self->magic == TTP_TSAP_MAGIC, return;); in irttp_flush_queues() 240 ASSERT(self->magic == TTP_TSAP_MAGIC, return NULL;); in irttp_reassemble_skb() 293 ASSERT(self->magic == TTP_TSAP_MAGIC, return;); in irttp_fragment_skb() 348 ASSERT(self->magic == TTP_TSAP_MAGIC, return -1;); in irttp_param_max_sdu_size() 376 ASSERT(irttp->magic == TTP_MAGIC, return NULL;); in irttp_open_tsap() 413 self->magic = TTP_TSAP_MAGIC; in irttp_open_tsap() [all …]
|
D | iriap.c | 176 self->magic = IAS_MAGIC; in iriap_open() 208 ASSERT(self->magic == IAS_MAGIC, return;); in __iriap_close() 215 self->magic = 0; in __iriap_close() 232 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_close() 289 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_disconnect_indication() 332 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_disconnect_request() 389 ASSERT(self->magic == IAS_MAGIC, return -1;); in iriap_getvaluebyclass_request() 451 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_getvaluebyclass_confirm() 558 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_getvaluebyclass_response() 648 ASSERT(self->magic == IAS_MAGIC, return;); in iriap_getvaluebyclass_indication() [all …]
|
D | irlmp_event.c | 144 ASSERT(self->magic == LMP_LSAP_MAGIC, return -1;); in irlmp_do_lsap_event() 162 ASSERT(self->magic == LMP_LAP_MAGIC, return;); in irlmp_do_lap_event() 193 ASSERT(self->magic == LMP_LSAP_MAGIC, return;); in irlmp_watchdog_timer_expired() 205 ASSERT(self->magic == LMP_LAP_MAGIC, return;); in irlmp_idle_timer_expired() 331 ASSERT(lsap->magic == LMP_LSAP_MAGIC, return;); in irlmp_state_u_connect() 450 ASSERT(lsap->magic == LMP_LSAP_MAGIC, return;); in irlmp_state_active() 499 ASSERT(self->magic == LMP_LSAP_MAGIC, return -1;); in irlmp_state_disconnected() 572 ASSERT(self->magic == LMP_LSAP_MAGIC, return -1;); in irlmp_state_connect() 630 ASSERT(self->magic == LMP_LSAP_MAGIC, return -1;); in irlmp_state_connect_pend() 693 ASSERT(self->magic == LMP_LSAP_MAGIC, return -1;); in irlmp_state_dtr() [all …]
|
/linux-2.4.37.9/include/asm-i386/ |
D | spinlock.h | 29 unsigned magic; member 83 if (lock->magic != SPINLOCK_MAGIC) in spin_unlock() 104 if (lock->magic != SPINLOCK_MAGIC) in spin_unlock() 131 if (lock->magic != SPINLOCK_MAGIC) { in spin_lock() 155 unsigned magic; member 185 if (rw->magic != RWLOCK_MAGIC) in read_lock() 194 if (rw->magic != RWLOCK_MAGIC) in write_lock()
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_da_btree.c | 142 INT_SET(node->hdr.info.magic, ARCH_CONVERT, XFS_DA_NODE_MAGIC); in xfs_da_node_create() 174 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da_split() 175 state->path.blk[max].magic == XFS_DIRX_LEAF_MAGIC(state->mp)); in xfs_da_split() 188 switch (oldblk->magic) { in xfs_da_split() 379 if (INT_GET(oldroot->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC) { in xfs_da_root_split() 384 ASSERT(INT_GET(oldroot->hdr.info.magic, ARCH_CONVERT) == XFS_DIR2_LEAFN_MAGIC); in xfs_da_root_split() 412 if (INT_GET(oldroot->hdr.info.magic, ARCH_CONVERT) == XFS_DIR2_LEAFN_MAGIC) { in xfs_da_root_split() 444 ASSERT(INT_GET(node->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_split() 468 newblk->magic = XFS_DA_NODE_MAGIC; in xfs_da_node_split() 543 ASSERT(INT_GET(node1->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_rebalance() [all …]
|
D | xfs_dir2_data.c | 95 ASSERT(INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_check() 96 INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_BLOCK_MAGIC); in xfs_dir2_data_check() 99 if (INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_BLOCK_MAGIC) { in xfs_dir2_data_check() 161 if (INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_BLOCK_MAGIC) { in xfs_dir2_data_check() 179 if (INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_BLOCK_MAGIC) { in xfs_dir2_data_check() 215 ASSERT(INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_freefind() 216 INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_BLOCK_MAGIC); in xfs_dir2_data_freefind() 274 ASSERT(INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_freeinsert() 275 INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_BLOCK_MAGIC); in xfs_dir2_data_freeinsert() 314 ASSERT(INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_freeremove() [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | spinlock.h | 30 unsigned magic; member 89 if (lock->magic != SPINLOCK_MAGIC) { in spin_lock() 102 if (lock->magic != SPINLOCK_MAGIC) in spin_unlock() 125 unsigned magic; member 155 if (rw->magic != RWLOCK_MAGIC) in read_lock() 164 if (rw->magic != RWLOCK_MAGIC) in write_lock()
|
/linux-2.4.37.9/fs/hpfs/ |
D | hpfs.h | 62 unsigned short magic; /* aa55 */ member 74 unsigned magic; /* f995 e849 */ member 110 unsigned magic; /* f991 1849 */ member 182 unsigned magic; /* 4945 21f7 */ member 204 unsigned magic; /* 8945 21f7 */ member 258 unsigned magic; /* 77e4 0aae */ member 372 unsigned magic; /* f7e4 0aae */ member 433 unsigned magic; /* 37e4 0aae */ member
|
/linux-2.4.37.9/include/net/irda/ |
D | irda_device.h | 83 magic_t magic; member 199 (((struct irda_skb_cb *) skb->cb)->magic == LAP_MAGIC) ? \ 209 if (((struct irda_skb_cb *)(skb->cb))->magic != LAP_MAGIC) 228 (((struct irda_skb_cb*) skb->cb)->magic == LAP_MAGIC) ? \ 237 if (((struct irda_skb_cb *)(skb->cb))->magic != LAP_MAGIC) 254 (((struct irda_skb_cb*) skb->cb)->magic == LAP_MAGIC) ? \ 266 (((struct irda_skb_cb*) skb->cb)->magic == LAP_MAGIC) ? \
|
/linux-2.4.37.9/net/irda/ircomm/ |
D | ircomm_param.c | 124 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_request() 188 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_service_type() 252 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_port_type() 276 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_port_name() 299 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_data_rate() 323 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_data_format() 345 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_flow_control() 368 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_xon_xoff() 395 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_enq_ack() 437 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_param_dte() [all …]
|
D | ircomm_core.c | 115 self->magic = IRCOMM_MAGIC; in ircomm_open() 163 self->magic = 0; in __ircomm_close() 181 ASSERT(self->magic == IRCOMM_MAGIC, return -EIO;); in ircomm_close() 209 ASSERT(self->magic == IRCOMM_MAGIC, return -1;); in ircomm_connect_request() 265 ASSERT(self->magic == IRCOMM_MAGIC, return -1;); in ircomm_connect_response() 309 ASSERT(self->magic == IRCOMM_MAGIC, return -EFAULT;); in ircomm_data_request() 383 ASSERT(self->magic == IRCOMM_MAGIC, return -EFAULT;); in ircomm_control_request() 435 ASSERT(self->magic == IRCOMM_MAGIC, return -1;); in ircomm_disconnect_request() 475 ASSERT(self->magic == IRCOMM_MAGIC, return;); in ircomm_flow_request() 502 ASSERT(self->magic == IRCOMM_MAGIC, break;); in ircomm_proc_read()
|
D | ircomm_tty_attach.c | 132 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_tty_attach_cable() 167 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_detach_cable() 209 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_ias_register() 252 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_tty_send_initial_parameters() 336 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_discovery_indication() 360 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_disconnect_indication() 390 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_getvalue_confirm() 451 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_connect_confirm() 482 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_connect_indication() 511 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_link_established() [all …]
|
D | ircomm_tty.c | 101 driver.magic = TTY_DRIVER_MAGIC; in ircomm_tty_init() 151 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in __ircomm_tty_cleanup() 155 self->magic = 0; in __ircomm_tty_cleanup() 195 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_tty_startup() 414 self->magic = IRCOMM_TTY_MAGIC; in ircomm_tty_open() 516 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_close() 601 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in ircomm_tty_flush_buffer() 627 if (!self || self->magic != IRCOMM_TTY_MAGIC) in ircomm_tty_do_softint() 689 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_tty_write() 815 ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_tty_write_room() [all …]
|
/linux-2.4.37.9/net/irda/irlan/ |
D | irlan_client.c | 77 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_client_kick_timer_expired() 110 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_client_wakeup() 175 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_client_discovery_indication() 200 ASSERT(self->magic == IRLAN_MAGIC, return -1;); in irlan_client_ctrl_data_indication() 229 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_client_ctrl_disconnect_indication() 231 ASSERT(tsap->magic == TTP_TSAP_MAGIC, return;); in irlan_client_ctrl_disconnect_indication() 258 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_client_open_ctrl_tsap() 300 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_client_ctrl_connect_confirm() 324 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_client_reconnect_data_channel() 367 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_client_parse_response() [all …]
|
D | irlan_common.c | 226 self->magic = IRLAN_MAGIC; in irlan_open() 270 ASSERT(self->magic == IRLAN_MAGIC, return;); in __irlan_close() 287 self->magic = 0; in __irlan_close() 310 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_connect_indication() 351 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_connect_confirm() 399 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_disconnect_indication() 401 ASSERT(tsap->magic == TTP_TSAP_MAGIC, return;); in irlan_disconnect_indication() 452 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_open_data_tsap() 488 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_close_tsaps() 523 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_ias_register() [all …]
|
D | irlan_provider.c | 78 ASSERT(self->magic == IRLAN_MAGIC, return -1;); in irlan_provider_data_indication() 138 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_provider_connect_indication() 172 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_provider_connect_response() 191 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_provider_disconnect_indication() 193 ASSERT(tsap->magic == TTP_TSAP_MAGIC, return;); in irlan_provider_disconnect_indication() 242 ASSERT(self->magic == IRLAN_MAGIC, return -RSP_PROTOCOL_ERROR;); in irlan_provider_parse_command() 297 ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_provider_send_reply() 385 ASSERT(self->magic == IRLAN_MAGIC, return -1;); in irlan_provider_open_ctrl_tsap()
|
/linux-2.4.37.9/arch/mips/dec/boot/ |
D | decstation.c | 44 unsigned long magic, int *prom_vec) in dec_entry() argument 61 if (magic == REX_PROM_MAGIC) { in dec_entry() 79 if (magic == REX_PROM_MAGIC) { in dec_entry() 90 kernel_entry(argc, argv, magic, prom_vec); in dec_entry()
|
/linux-2.4.37.9/Documentation/ |
D | binfmt_misc.txt | 10 at the beginning of the file with a magic byte sequence (masking out specified 15 :name:type:offset:magic:mask:interpreter: (where you can choose the ':' upon 20 - 'type' is the type of recognition. Give 'M' for magic and 'E' for extension. 21 - 'offset' is the offset of the magic/mask in the file, counted in bytes. This 22 defaults to 0 if you omit it (i.e. you write ':name:type::magic...') 23 - 'magic' is the byte sequence binfmt_misc is matching for. The magic string 30 bits from matching by supplying a string like magic and as long as magic. 37 - the magic must reside in the first 128 bytes of the file, i.e. 38 offset+size(magic) has to be less than 128
|