Home
last modified time | relevance | path

Searched refs:cpu_to_le16 (Results 1 – 25 of 140) sorted by relevance

123456

/linux-2.4.37.9/arch/parisc/lib/
Dio.c174 l = cpu_to_le16(inw(port)) << 16; in insw()
175 l |= cpu_to_le16(inw(port)); in insw()
180 *(unsigned short *) dst = cpu_to_le16(inw(port)); in insw()
185 *(unsigned short *) dst = cpu_to_le16(inw(port)); in insw()
191 l = cpu_to_le16(inw(port)) << 16; in insw()
192 l |= cpu_to_le16(inw(port)); in insw()
197 *(unsigned short *) dst = cpu_to_le16(inw(port)); in insw()
207 l = cpu_to_le16(inw(port)); in insw()
212 l2 = cpu_to_le16(inw(port)); in insw()
/linux-2.4.37.9/drivers/scsi/
Dqlogicfc.c754 hostdata->control_block.firm_opts = cpu_to_le16(0x800e); in isp2x00_detect()
755 hostdata->control_block.max_frame_len = cpu_to_le16(2048); in isp2x00_detect()
756 hostdata->control_block.max_iocb = cpu_to_le16(QLOGICFC_REQ_QUEUE_LEN); in isp2x00_detect()
757 hostdata->control_block.exec_throttle = cpu_to_le16(QLOGICFC_CMD_PER_LUN); in isp2x00_detect()
760 hostdata->control_block.node_name[0] = cpu_to_le16(0x0020); in isp2x00_detect()
761 hostdata->control_block.node_name[1] = cpu_to_le16(0xE000); in isp2x00_detect()
762 hostdata->control_block.node_name[2] = cpu_to_le16(0x008B); in isp2x00_detect()
763 hostdata->control_block.node_name[3] = cpu_to_le16(0x0000); in isp2x00_detect()
764 hostdata->control_block.hard_addr = cpu_to_le16(0x0003); in isp2x00_detect()
765 hostdata->control_block.req_queue_len = cpu_to_le16(QLOGICFC_REQ_QUEUE_LEN + 1); in isp2x00_detect()
[all …]
/linux-2.4.37.9/fs/jfs/
Djfs_txnmgr.c1243 lrd->type = cpu_to_le16(LOG_COMMIT); in txCommit()
1385 lrd->log.redopage.type = cpu_to_le16(LOG_INODE); in diLog()
1386 lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE); in diLog()
1395 lrd->type = cpu_to_le16(LOG_REDOPAGE); in diLog()
1422 lrd->type = cpu_to_le16(LOG_NOREDOINOEXT); in diLog()
1459 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in diLog()
1465 cpu_to_le16(LOG_ALLOCPXD); in diLog()
1468 cpu_to_le16(LOG_FREEPXD); in diLog()
1469 lrd->log.updatemap.nxd = cpu_to_le16(1); in diLog()
1498 lrd->log.redopage.type = cpu_to_le16(LOG_DATA); in dataLog()
[all …]
Djfs_xtree.c888 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); in xtInsert()
956 sp->header.maxentry = cpu_to_le16(XTROOTMAXSLOT); in xtSplitUp()
980 cpu_to_le16(le16_to_cpu(sp->header.nextindex) + 1); in xtSplitUp()
1150 cpu_to_le16(le16_to_cpu(sp->header.nextindex) + in xtSplitUp()
1245 rp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtSplitPage()
1297 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1); in xtSplitPage()
1371 sp->header.nextindex = cpu_to_le16(middle + 1); in xtSplitPage()
1378 cpu_to_le16(XTENTRYSTART + righthalf); in xtSplitPage()
1401 sp->header.nextindex = cpu_to_le16(middle); in xtSplitPage()
1407 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + in xtSplitPage()
[all …]
Djfs_logmgr.c449 lvd->offset = cpu_to_le16(lv->offset); in lmWriteRecord()
450 lvd->length = cpu_to_le16(lv->length); in lmWriteRecord()
465 lrd->length = cpu_to_le16(len); in lmWriteRecord()
492 if (lrd->type & cpu_to_le16(LOG_COMMIT)) { in lmWriteRecord()
618 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_ceor); in lmNextPage()
640 lp->h.eor = lp->t.eor = cpu_to_le16(LOGPHDRSIZE); in lmNextPage()
777 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_ceor); in lmGCwrite()
785 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_ceor); in lmGCwrite()
870 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_eor); in lmPostGC()
978 lrd.type = cpu_to_le16(LOG_SYNCPT); in lmLogSync()
[all …]
/linux-2.4.37.9/drivers/usb/
Dpowermate.c100 pm->configdr.wValue = cpu_to_le16( SET_PULSE_ASLEEP ); in powermate_sync_state()
101 pm->configdr.wIndex = cpu_to_le16( pm->pulse_asleep ? 1 : 0 ); in powermate_sync_state()
104 pm->configdr.wValue = cpu_to_le16( SET_PULSE_AWAKE ); in powermate_sync_state()
105 pm->configdr.wIndex = cpu_to_le16( pm->pulse_awake ? 1 : 0 ); in powermate_sync_state()
136 pm->configdr.wValue = cpu_to_le16( (pm->pulse_table << 8) | SET_PULSE_MODE ); in powermate_sync_state()
137 pm->configdr.wIndex = cpu_to_le16( (arg << 8) | op ); in powermate_sync_state()
140 pm->configdr.wValue = cpu_to_le16( SET_STATIC_BRIGHTNESS ); in powermate_sync_state()
141 pm->configdr.wIndex = cpu_to_le16( pm->static_brightness ); in powermate_sync_state()
Dauerisdn.c156 bp->dr->wValue = cpu_to_le16(0); in auerisdn_translate_incoming()
158 cpu_to_le16(cp->isdn.dchannelservice. in auerisdn_translate_incoming()
160 bp->dr->wLength = cpu_to_le16(5); in auerisdn_translate_incoming()
607 bp->dr->wValue = cpu_to_le16(0); in auerisdn_d_l2l1()
609 cpu_to_le16(cp->isdn.dchannelservice. in auerisdn_d_l2l1()
611 bp->dr->wLength = cpu_to_le16(len + AUH_SIZE); in auerisdn_d_l2l1()
706 bp->dr->wValue = cpu_to_le16(1); in auerisdn_dcopen()
707 bp->dr->wIndex = cpu_to_le16(0); in auerisdn_dcopen()
708 bp->dr->wLength = cpu_to_le16(0); in auerisdn_dcopen()
Drtl8150.c169 dev->dr.wValue = cpu_to_le16(indx); in async_set_registers()
171 dev->dr.wLength = cpu_to_le16(2); in async_set_registers()
432 dev->rx_creg = cpu_to_le16(rcr); in enable_net_traffic()
477 dev->rx_creg |= cpu_to_le16(0x0001); in rtl8150_set_multicast()
481 dev->rx_creg &= cpu_to_le16(0xfffe); in rtl8150_set_multicast()
482 dev->rx_creg |= cpu_to_le16(0x0002); in rtl8150_set_multicast()
486 dev->rx_creg &= cpu_to_le16(0x00fc); in rtl8150_set_multicast()
Dauermain.c170 bp->dr->wValue = cpu_to_le16(1); /* Retry Flag */ in auerswald_ctrlread_wretcomplete()
223 bp->dr->wLength = cpu_to_le16(32); /* >= 8 bytes */ in auerswald_ctrlread_complete()
337 bp->dr->wValue = cpu_to_le16(0); in auerswald_int_complete()
338 bp->dr->wIndex = cpu_to_le16(channelid | AUH_DIRECT | AUH_UNSPLIT); in auerswald_int_complete()
339 bp->dr->wLength = cpu_to_le16(bytecount); in auerswald_int_complete()
/linux-2.4.37.9/drivers/net/wireless/prism54/
Doid_mgt.c364 bss->age = cpu_to_le16(bss->age); in mgt_cpu_to_le()
365 bss->channel = cpu_to_le16(bss->channel); in mgt_cpu_to_le()
366 bss->capinfo = cpu_to_le16(bss->capinfo); in mgt_cpu_to_le()
367 bss->rates = cpu_to_le16(bss->rates); in mgt_cpu_to_le()
368 bss->basic_rates = cpu_to_le16(bss->basic_rates); in mgt_cpu_to_le()
382 freq->nr = cpu_to_le16(freq->nr); in mgt_cpu_to_le()
384 freq->mhz[i] = cpu_to_le16(freq->mhz[i]); in mgt_cpu_to_le()
389 mlme->id = cpu_to_le16(mlme->id); in mgt_cpu_to_le()
390 mlme->state = cpu_to_le16(mlme->state); in mgt_cpu_to_le()
391 mlme->code = cpu_to_le16(mlme->code); in mgt_cpu_to_le()
[all …]
/linux-2.4.37.9/include/linux/
Dreiserfs_fs_sb.h69 #define set_sb_blocksize(sbp,v) ((sbp)->s_v1.s_blocksize = cpu_to_le16(v))
71 #define set_sb_oid_maxsize(sbp,v) ((sbp)->s_v1.s_oid_maxsize = cpu_to_le16(v))
73 #define set_sb_oid_cursize(sbp,v) ((sbp)->s_v1.s_oid_cursize = cpu_to_le16(v))
75 #define set_sb_umount_state(sbp,v) ((sbp)->s_v1.s_umount_state = cpu_to_le16(v))
77 #define set_sb_fs_state(sbp,v) ((sbp)->s_v1.s_fs_state = cpu_to_le16(v))
83 #define set_sb_tree_height(sbp,v) ((sbp)->s_v1.s_tree_height = cpu_to_le16(v))
85 #define set_sb_bmap_nr(sbp,v) ((sbp)->s_v1.s_bmap_nr = cpu_to_le16(v))
87 #define set_sb_version(sbp,v) ((sbp)->s_v1.s_version = cpu_to_le16(v))
92 ((sbp)->s_v1.s_reserved_for_journal = cpu_to_le16(v))
Dreiserfs_fs.h205 do { SB_V1_DISK_SUPER_BLOCK(s)->s_tree_height = cpu_to_le16(val); } while (0)
207 do { SB_V1_DISK_SUPER_BLOCK(s)->s_umount_state = cpu_to_le16(val); } while (0)
209 do { SB_V1_DISK_SUPER_BLOCK(s)->s_version = cpu_to_le16(val); } while (0)
211 do { SB_V1_DISK_SUPER_BLOCK(s)->s_bmap_nr = cpu_to_le16 (val); } while (0)
522 #define put_ih_free_space(ih, val) do { (ih)->u.ih_free_space_reserved = cpu_to_le16(val); } whil…
523 #define put_ih_version(ih, val) do { (ih)->ih_version = cpu_to_le16(val); } while (0)
524 #define put_ih_entry_count(ih, val) do { (ih)->u.ih_entry_count = cpu_to_le16(val); } while (0)
525 #define put_ih_location(ih, val) do { (ih)->ih_item_location = cpu_to_le16(val); } while (0)
526 #define put_ih_item_len(ih, val) do { (ih)->ih_item_len = cpu_to_le16(val); } while (0)
759 #define set_blkh_level(p_blkh,val) ((p_blkh)->blk_level = cpu_to_le16(val))
[all …]
/linux-2.4.37.9/fs/udf/
Dudfend.h19 out.partitionReferenceNum = cpu_to_le16(in.partitionReferenceNum); in cpu_to_lelb()
76 out.typeAndTimezone = cpu_to_le16(in.typeAndTimezone); in cpu_to_lets()
77 out.year = cpu_to_le16(in.year); in cpu_to_lets()
Dmisc.c131 eahd->descTag.tagIdent = cpu_to_le16(TAG_IDENT_EAHD); in udf_add_extendedattr()
132 eahd->descTag.descVersion = cpu_to_le16(2); in udf_add_extendedattr()
133 eahd->descTag.tagSerialNum = cpu_to_le16(1); in udf_add_extendedattr()
/linux-2.4.37.9/fs/ext2/
Dialloc.c201 cpu_to_le16(le16_to_cpu(desc->bg_free_inodes_count) + 1); in ext2_free_inode()
204 cpu_to_le16(le16_to_cpu(desc->bg_used_dirs_count) - 1); in ext2_free_inode()
258 cpu_to_le16(le16_to_cpu(best_desc->bg_free_inodes_count) - 1); in find_group_dir()
260 cpu_to_le16(le16_to_cpu(best_desc->bg_used_dirs_count) + 1); in find_group_dir()
309 cpu_to_le16(le16_to_cpu(desc->bg_free_inodes_count) - 1); in find_group_other()
412 cpu_to_le16(le16_to_cpu(desc->bg_free_inodes_count) + 1); in ext2_new_inode()
415 cpu_to_le16(le16_to_cpu(desc->bg_used_dirs_count) - 1); in ext2_new_inode()
Ddir.c84 p->rec_len = cpu_to_le16(chunk_size); in ext2_check_page()
474 de1->rec_len = cpu_to_le16(rec_len - name_len); in ext2_add_link()
475 de->rec_len = cpu_to_le16(name_len); in ext2_add_link()
521 pde->rec_len = cpu_to_le16(to-from); in ext2_delete_entry()
555 de->rec_len = cpu_to_le16(EXT2_DIR_REC_LEN(1)); in ext2_make_empty()
562 de->rec_len = cpu_to_le16(chunk_size - EXT2_DIR_REC_LEN(1)); in ext2_make_empty()
Dsuper.c45 cpu_to_le16(le16_to_cpu(es->s_state) | EXT2_ERROR_FS); in ext2_error()
74 cpu_to_le16(le16_to_cpu(sb->u.ext2_sb.s_es->s_state) | EXT2_ERROR_FS); in ext2_panic()
111 es->s_inode_size = cpu_to_le16(EXT2_GOOD_OLD_INODE_SIZE); in ext2_update_dynamic_rev()
313 es->s_max_mnt_count = (__s16) cpu_to_le16(EXT2_DFL_MAX_MNT_COUNT); in ext2_setup_super()
314 es->s_mnt_count=cpu_to_le16(le16_to_cpu(es->s_mnt_count) + 1); in ext2_setup_super()
730 es->s_state = cpu_to_le16(le16_to_cpu(es->s_state) & in ext2_write_super()
770 es->s_state = cpu_to_le16(sb->u.ext2_sb.s_mount_state); in ext2_remount()
/linux-2.4.37.9/fs/befs/
Dendian.h63 return cpu_to_le16(n); in cpu_to_fs16()
94 run.start = cpu_to_le16(n.start); in cpu_to_fsrun()
95 run.len = cpu_to_le16(n.len); in cpu_to_fsrun()
/linux-2.4.37.9/fs/ufs/
Dswab.h110 return cpu_to_le16(n); in cpu_to_fs16()
119 return *n = cpu_to_le16(le16_to_cpu(*n)+d); in fs16_add()
128 return *n = cpu_to_le16(le16_to_cpu(*n)-d); in fs16_sub()
/linux-2.4.37.9/drivers/scsi/aacraid/
Dcommsup.c112 hw_fib_va->header.SenderSize = cpu_to_le16(sizeof(struct hw_fib)); in fib_setup()
204 hw_fib->header.Size = cpu_to_le16(sizeof(struct hw_fib)); in fib_init()
208 hw_fib->header.SenderSize = cpu_to_le16(sizeof(struct hw_fib)); in fib_init()
462 hw_fib->header.Command = cpu_to_le16(command); in fib_send()
468 hw_fib->header.Size = cpu_to_le16(sizeof(struct aac_fibhdr) + size); in fib_send()
661 hw_fib->header.Size = cpu_to_le16(size); in fib_adapter_complete()
677 hw_fib->header.Size = cpu_to_le16(size); in fib_adapter_complete()
Daacraid.h544 #define DOORBELL_0 cpu_to_le16(0x0001)
545 #define DOORBELL_1 cpu_to_le16(0x0002)
546 #define DOORBELL_2 cpu_to_le16(0x0004)
547 #define DOORBELL_3 cpu_to_le16(0x0008)
548 #define DOORBELL_4 cpu_to_le16(0x0010)
549 #define DOORBELL_5 cpu_to_le16(0x0020)
550 #define DOORBELL_6 cpu_to_le16(0x0040)
/linux-2.4.37.9/fs/umsdos/
Dinode.c278 entry->uid = cpu_to_le16(attr->ia_uid); in umsdos_notify_change_locked()
280 entry->gid = cpu_to_le16(attr->ia_gid); in umsdos_notify_change_locked()
282 entry->mode = cpu_to_le16(attr->ia_mode); in umsdos_notify_change_locked()
289 entry->nlink = cpu_to_le16(inode->i_nlink); in umsdos_notify_change_locked()
Demd.c25 p->nlink = cpu_to_le16(q->nlink); in put_entry()
26 p->uid = cpu_to_le16(q->uid); in put_entry()
27 p->gid = cpu_to_le16(q->gid); in put_entry()
31 p->rdev = cpu_to_le16(q->rdev); in put_entry()
32 p->mode = cpu_to_le16(q->mode); in put_entry()
/linux-2.4.37.9/include/linux/mtd/
Dcompatmac.h81 # define cpu_to_le16(x) (x) macro
88 extern inline __u16 cpu_to_le16(__u16 x) { return (x<<8) | (x>>8);} in cpu_to_le16() function
93 # define le16_to_cpu(x) cpu_to_le16(x)
101 # define cpu_to_le16p(addr) (cpu_to_le16(*(addr)))
106 extern inline void cpu_to_le16s(__u16 *a) {*a = cpu_to_le16(*a);} in cpu_to_le16s()
/linux-2.4.37.9/drivers/usb/host/
Dhc_sl811_rh.c305 *(__u16 *) data_buf = cpu_to_le16 (1); in rh_submit_urb()
309 *(__u16 *) data_buf = cpu_to_le16 (0); in rh_submit_urb()
313 *(__u16 *) data_buf = cpu_to_le16 (0); in rh_submit_urb()

123456