/drivers/s390/cio/ |
H A D | idset.c | 93 /* Clear ids starting from @schid up to end of subchannel set. */ 126 void idset_add_set(struct idset *to, struct idset *from) argument 128 int len = min(to->num_ssid * to->num_id, from->num_ssid * from->num_id); 130 bitmap_or(to->bitmap, to->bitmap, from->bitmap, len);
|
H A D | blacklist.c | 33 * to Linux. 38 /* 65536 bits for each set to indicate if a devno is blacklisted or not */ 46 * (Un-)blacklist the devices from-to 50 unsigned int to, int msgtrigger) 52 if ((from_ssid > to_ssid) || ((from_ssid == to_ssid) && (from > to))) { 54 pr_warning("0.%x.%04x to 0.%x.%04x is not a valid " 56 to_ssid, to); 62 (from <= to))) { 152 unsigned int from_cssid, to_cssid, from_ssid, to_ssid, from, to; local 175 to 48 blacklist_range(range_action action, unsigned int from_ssid, unsigned int to_ssid, unsigned int from, unsigned int to, int msgtrigger) argument [all...] |
/drivers/target/tcm_fc/ |
H A D | tfc_io.c | 23 * this program; if not, write to the Free Software Foundation, Inc., 57 * Deliver read data back to initiator. 81 void *to = NULL; local 96 * Setup to use first mem list entry, unless no data. 106 /* no scatter/gather in skb for odd word length due to fc_seq_send() */ 126 * , then allow 'frame_len' to be as big as 'lso_max' 135 to = fc_frame_payload_get(fp, 0); 140 * driver to indicate HW about max frame size, so that 166 memcpy(to, from, tlen); 168 to 231 void *to; local [all...] |
/drivers/video/fbdev/core/ |
H A D | fbcmap.c | 9 * This file is subject to the terms and conditions of the GNU General Public 159 * @to: frame buffer colormap structure 161 * Copy contents of colormap from @from to @to. 164 int fb_copy_cmap(const struct fb_cmap *from, struct fb_cmap *to) argument 169 if (to->start > from->start) 170 fromoff = to->start - from->start; 172 tooff = from->start - to->start; 173 size = to->len - tooff; 180 memcpy(to 188 fb_cmap_to_user(const struct fb_cmap *from, struct fb_cmap_user *to) argument [all...] |
/drivers/base/regmap/ |
H A D | regmap-debugfs.c | 101 * If we don't have a cache build one so we don't have to do a 147 * This should never happen; we return above if we fail to 186 unsigned int to, char __user *user_buf, 208 for (i = start_reg; i <= to; i += map->reg_stride) { 215 /* If we're in the region the user is trying to read */ 269 * for this feature, people who want to use this will need to modify 432 /* If we're in the region the user is trying to read */ 508 dev_warn(map->dev, "Failed to create debugfs directory\n"); 586 pr_warn("regmap: Failed to creat 185 regmap_read_debugfs(struct regmap *map, unsigned int from, unsigned int to, char __user *user_buf, size_t count, loff_t *ppos) argument [all...] |
/drivers/cpufreq/ |
H A D | maple-cpufreq.c | 67 /* Power mode data is an array of the 32 bits PCR values to use for 81 int to; local 94 for (to = 0; to < 10; to++) { 128 * Common interface to the cpufreq core 168 * to ease merging of two drivers in future. 182 /* we actually don't care on which CPU to access PVR */ 217 /* Force apply current frequency to make sure everything is in
|
/drivers/gpu/drm/i915/ |
H A D | i915_gem_context.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 39 * context's state is never restored to help prevent programming errors. This 41 * The default context only exists to give the GPU some offset to loa 518 do_switch(struct intel_engine_cs *ring, struct intel_context *to) argument 664 i915_switch_context(struct intel_engine_cs *ring, struct intel_context *to) argument [all...] |
/drivers/hid/ |
H A D | hid-apple.c | 52 "(For people who want to keep Windows PC keyboard muscle memory. " 64 u16 to; member in struct:apple_key_translation 220 input_event(input, usage->type, trans->to, 241 input_event(input, usage->type, trans->to, 253 input_event(input, usage->type, trans->to, value); 262 input_event(input, usage->type, trans->to, value); 320 set_bit(trans->to, input->keybit); 323 set_bit(trans->to, input->keybit); 326 set_bit(trans->to, input->keybit); 329 set_bit(trans->to, inpu [all...] |
/drivers/input/touchscreen/ |
H A D | eeti_ts.c | 23 * License along with this library; if not, write to the Free Software 71 unsigned int x, y, res, pressed, to = 100; local 77 while (eeti_ts_irq_active(priv) && --to) 80 if (!to) { 82 "unable to clear IRQ - line stuck?\n"); 95 /* fix the range to 11 bits */ 131 /* Read the events once to arm the IRQ */ 167 * In contrast to what's described in the datasheet, there seems 168 * to be no way of probing the presence of that device using I2C 169 * commands. So we need to blindl [all...] |
/drivers/iommu/ |
H A D | iova.c | 14 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple 78 /* Computes the padding size required, to make the 136 /* pfn_lo will point to size aligned address if size_aligned is set */ 145 /* If we have 'prev', it's a valid place to start the 152 /* Figure out where to put new node */ 182 /* Figure out where to put new node */ 202 * @size: - size of page frames to allocate 205 * This function allocates an iova in the range limit_pfn to IOVA_START_PFN 222 /* If size aligned is set then round the size to 223 * to nex 431 copy_reserved_iova(struct iova_domain *from, struct iova_domain *to) argument [all...] |
/drivers/isdn/hisax/ |
H A D | hfc_2bs0.c | 8 * This software may be used and distributed according to the terms 24 int to = 130; local 27 while (!(cs->BC_Read_Reg(cs, HFC_STATUS, 0) & HFC_BUSY) && to) { 31 to--; 33 if (!to) { 37 return (to); 43 int to = 125; local 45 while ((cs->BC_Read_Reg(cs, HFC_STATUS, 0) & HFC_BUSY) && to) { 47 to--; 49 if (!to) { [all...] |
/drivers/mtd/devices/ |
H A D | block2mtd.c | 44 static int _block2mtd_erase(struct block2mtd_dev *dev, loff_t to, size_t len) argument 48 int index = to >> PAGE_SHIFT; // page index 130 /* write data to the underlying device */ 132 loff_t to, size_t len, size_t *retlen) 136 int index = to >> PAGE_SHIFT; // page index 137 int offset = to & ~PAGE_MASK; // page offset 171 static int block2mtd_write(struct mtd_info *mtd, loff_t to, size_t len, argument 178 err = _block2mtd_write(dev, buf, to, len, retlen); 232 to resolve the device name by other means. */ 247 pr_err("attempting to us 131 _block2mtd_write(struct block2mtd_dev *dev, const u_char *buf, loff_t to, size_t len, size_t *retlen) argument [all...] |
H A D | m25p80.c | 78 static void m25p80_write(struct spi_nor *nor, loff_t to, size_t len, argument 93 m25p_addr2cmd(nor, to, flash->command); 235 * set to "m25p80" and then "type" provides a real chip name. 265 * XXX This needs to be kept in sync with spi_nor_ids. We can't share 267 * won't be able to read it and add appropriate aliases. 324 * should clearly be entered on suspend() to minimize power use.
|
H A D | phram.c | 9 * <name> may be up to 63 characters. 75 static int phram_write(struct mtd_info *mtd, loff_t to, size_t len, argument 80 memcpy(start + to, buf, len); 129 pr_err("Failed to register new device\n"); 151 /* By dwmw2 editorial decree, "ki", "Mi" or "Gi" are to be used. */ 288 * called so early that it is not possible to resolve 289 * the device (even kmalloc() fails). Defer that work to 302 MODULE_PARM_DESC(phram, "Memory region to map. \"phram=<name>,<start>,<length>\"");
|
H A D | slram.c | 3 This driver provides a method to access memory not used by the kernel 17 <end/offset>: end of the memory region. It's possible to use +0x1234 18 to specify the offset instead of the absolute address 21 With slram it's only possible to map a contiguous memory region. Therefore 23 fail to load (see kernel log if modprobe fails). 68 MODULE_PARM_DESC(map, "List of memory regions to map. \"map=<name>, <start>, <length / end>\""); 121 static int slram_write(struct mtd_info *mtd, loff_t to, size_t len, argument 126 memcpy(priv->start + to, buf, len); 188 E("slram: Failed to register new device\n"); 194 T("slram: Registered device %s from %luKiB to [all...] |
H A D | sst25l.c | 31 /* Erases can take up to 3 seconds! */ 240 /* Wait for previous write/erase to complete */ 256 static int sst25l_write(struct mtd_info *mtd, loff_t to, size_t len, argument 263 if ((uint32_t)to % mtd->writesize) 279 command[1] = (to + i) >> 16; 280 command[2] = (to + i) >> 8; 281 command[3] = (to + i);
|
/drivers/mtd/lpddr/ |
H A D | lpddr_cmds.c | 6 * Many thanks to Roman Borisov for initial enabling 19 * along with this program; if not, write to the Free Software 34 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, 37 unsigned long count, loff_t to, size_t *retlen); 119 /* set our timeout to 8 times the expected delay */ 194 * operations which are global to the real chip and not per 216 * The engine to perform desired operation on this 219 * currently using it. If it is possible to suspend, 221 * it'll happily send us to sleep. In any case, when 222 * get_chip returns success we're clear to g 619 lpddr_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 631 lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen) argument [all...] |
/drivers/mtd/ubi/ |
H A D | eba.c | 15 * along with this program; if not, write to the Free Software 24 * This sub-system is responsible for I/O to/from logical eraseblock. 38 * time a logical eraseblock is mapped to a physical eraseblock and it is 41 * 64 bits is enough to never overflow. 56 * This function returns next sequence number to use, which is just the current 92 * This function returns a pointer to the corresponding &struct ubi_ltree_entry 94 * @ubi->ltree_lock has to be locked. 125 * ltree_add_entry - add new entry to the lock tree. 130 * This function adds new entry for logical eraseblock (@vol_id, @lnum) to the 132 * Returns pointer to th 988 ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to, struct ubi_vid_hdr *vid_hdr) argument [all...] |
H A D | gluebi.c | 15 * along with this program; if not, write to the Free Software 23 * volumes. This sounds strange, but it is in fact quite useful to make 28 * size (@mtd->writesize) is equivalent to the UBI minimal I/O unit. The 29 * eraseblock size is equivalent to the logical eraseblock size of the volume. 74 * This function seraches for gluebi device corresponding to UBI device 76 * object in case of success and %NULL in case of failure. The caller has to 113 * more reference. MTD allows many users to open the same 125 * This is the first reference to this UBI volume via the MTD device 163 * @from: absolute offset from where to read 164 * @len: how many bytes to rea 211 gluebi_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument [all...] |
/drivers/net/fddi/skfp/ |
H A D | cfm.c | 74 * map from state to downstream port type 158 /* State machine for private PORT states: used to optimize dual homing */ 172 /* Change the port state according to the event (portnumber) */ 176 /* set the port to done only if it is not withheld */ 180 /* Don't set an hold port to down */ 262 * to the primary path. 594 int cem_build_path(struct s_smc *smc, char *to, int path_index) argument 622 memcpy(to,path,len) ;
|
/drivers/net/wireless/ath/ath9k/ |
H A D | dynack.c | 4 * Permission to use, copy, modify, and/or distribute this software for any 86 u32 to = 0; local 91 if (an->ackto > to) 92 to = an->ackto; 94 if (to && da->ackto != to) { 97 slottime = (to - 3) / 2; 98 da->ackto = to; 147 "%pM to %u\n", dst, an->ackto);
|
/drivers/rtc/ |
H A D | rtc-puv3.c | 2 * RTC driver code specific to PKUnity SoC and UniCore ISA 56 static void puv3_rtc_setaie(struct device *dev, int to) argument 60 dev_dbg(dev, "%s: aie=%d\n", __func__, to); 64 if (to) 265 dev_err(&pdev->dev, "failed to get memory region resource\n"); 273 dev_err(&pdev->dev, "failed to reserve memory region\n");
|
/drivers/s390/char/ |
H A D | monwriter.c | 220 void *to; local 227 to = (char *) &monpriv->hdr + 229 if (copy_from_user(to, data + written, len)) { 246 to = monpriv->current_buf->data + 248 if (copy_from_user(to, data + written, len)) { 367 * misc_register() has to be the last action in module_init(), because
|
/drivers/staging/goldfish/ |
H A D | goldfish_nand.c | 34 /* lock protects access to the device registers */ 218 static int goldfish_nand_write(struct mtd_info *mtd, loff_t to, size_t len, argument 223 if (to + len > mtd->size) 226 rem = do_div(to, mtd->writesize); 229 to *= (mtd->writesize + mtd->oobsize); 231 *retlen = goldfish_nand_cmd(mtd, NAND_CMD_WRITE, to, len, (void *)buf); 236 to, len, mtd->size, mtd->writesize); 341 "goldfish_nand_init_device failed to get dev name %d != %d\n",
|
/drivers/usb/host/ |
H A D | ohci-s3c2410.c | 17 * Thanks to basprog@mail.ru for updates to newer kernels 141 int port, int to) 147 info->port[port-1].power = to; 148 (info->power_control)(port-1, to); 154 * look at control requests to the hub, and see if we need 155 * to take any action or over-ride the results from the 185 /* check the request to see if it needs handling */ 312 the port needs to be powered down */ 482 * functions here to achiev 140 s3c2410_usb_set_power(struct s3c2410_hcd_info *info, int port, int to) argument [all...] |