/drivers/staging/otus/80211core/ |
D | cmm.c | 76 u16_t offset; in zfFindElement() local 86 if ((offset = zgElementOffsetTable[subType]) == 0xff) in zfFindElement() 92 offset += 24; in zfFindElement() 107 while ((offset+2)<bufLen) // including element ID and length (2bytes) in zfFindElement() 110 if ((id = zmw_rx_buf_readb(dev, buf, offset)) == eid) in zfFindElement() 113 if ((elen = zmw_rx_buf_readb(dev, buf, offset+1))>(bufLen - offset)) in zfFindElement() 128 if ( (HTType == 0) && zfRxBufferEqualToStr(dev, buf, oui, offset+2, 4) ) in zfFindElement() 130 return offset; in zfFindElement() 136 if ((HTType == 1) && ( zfRxBufferEqualToStr(dev, buf, oui11n, offset+2, 3) )) in zfFindElement() 138 if ( zmw_rx_buf_readb(dev, buf, offset+5) == HTEid ) in zfFindElement() [all …]
|
D | cmmap.c | 958 u16_t offset; in zfApProcessBeacon() local 966 if ((offset = zfFindElement(dev, buf, ZM_WLAN_EID_ERP)) == 0xffff) in zfApProcessBeacon() 973 ch = zmw_rx_buf_readb(dev, buf, offset+2); in zfApProcessBeacon() 1170 u16_t offset; in zfApProcessAsocReq() local 1180 if ((offset = zfFindElement(dev, buf, ZM_WLAN_EID_SSID)) != 0xffff) in zfApProcessAsocReq() 1185 if ((tmp = zmw_buf_readb(dev, buf, offset+1)) in zfApProcessAsocReq() 1201 if ((tmp = zmw_buf_readb(dev, buf, offset+2+i)) in zfApProcessAsocReq() 1225 if ((offset = zfFindElement(dev, buf, ZM_WLAN_EID_EXTENDED_RATE)) != 0xffff) in zfApProcessAsocReq() 1231 if ((offset = zfFindElement(dev, buf, ZM_WLAN_EID_HT_CAPABILITY)) != 0xffff) in zfApProcessAsocReq() 1254 if ((offset = zfFindWifiElement(dev, buf, 2, 0)) != 0xffff) in zfApProcessAsocReq() [all …]
|
D | cmmsta.c | 466 u16_t offset; in zfStaSetOppositeInfoFromRxBuf() local 507 if ( ((offset = zfFindElement(dev, buf, ZM_WLAN_EID_EXTENDED_RATE)) != 0xffff) in zfStaSetOppositeInfoFromRxBuf() 593 u16_t offset; in zfStaProtErpMonitor() local 605 if ( (offset=zfFindElement(dev, buf, ZM_WLAN_EID_ERP)) != 0xffff ) in zfStaProtErpMonitor() 607 erp = zmw_rx_buf_readb(dev, buf, offset+2); in zfStaProtErpMonitor() 631 if ((offset = zfFindElement(dev, buf, ZM_WLAN_EID_HT_CAPABILITY)) != 0xffff) in zfStaProtErpMonitor() 633 else if ((offset = zfFindElement(dev, buf, ZM_WLAN_PREN2_EID_HTCAPABILITY)) != 0xffff) in zfStaProtErpMonitor() 651 u16_t offset; in zfStaUpdateWmeParameter() local 661 if ((offset = zfFindWifiElement(dev, buf, 2, 1)) != 0xffff) in zfStaUpdateWmeParameter() 663 if ((len = zmw_rx_buf_readb(dev, buf, offset+1)) >= 7) in zfStaUpdateWmeParameter() [all …]
|
D | ctxrx.c | 901 u16_t offset; in zfTxSendEth() local 1129 offset = removeLen + i*fragLen; in zfTxSendEth() 1133 offset = offset + pseudSnapLen*(i-1); in zfTxSendEth() 1146 zfTxBufferCopy(dev, frag.buf[i], buf, snapLen, offset, fragLen); in zfTxSendEth() 1160 zfTxBufferCopy(dev, frag.buf[i], buf, 0, offset, fragLen+pseudSnapLen ); in zfTxSendEth() 1170 zfTxBufferCopy(dev, frag.buf[i], buf, 0, offset, frameLen); in zfTxSendEth() 1359 void zfShowRxEAPOL(zdev_t* dev, zbuf_t* buf, u16_t offset) in zfShowRxEAPOL() argument 1366 packetType = zmw_rx_buf_readb(dev, buf, offset+1); // 0: EAP-Packet in zfShowRxEAPOL() 1385 packetLen = (((u16_t) zmw_rx_buf_readb(dev, buf, offset+2)) << 8) + in zfShowRxEAPOL() 1386 zmw_rx_buf_readb(dev, buf, offset+3); in zfShowRxEAPOL() [all …]
|
D | amsdu.c | 37 zbuf_t* zfGetAmsduSubFrame(zdev_t* dev, zbuf_t* buf, u16_t* offset) in zfGetAmsduSubFrame() argument 46 if (amsduLen < (*offset + 14)) in zfGetAmsduSubFrame() 52 subframeLen = (zmw_buf_readb(dev, buf, *offset + 12) << 8) + in zfGetAmsduSubFrame() 53 zmw_buf_readb(dev, buf, *offset + 13); in zfGetAmsduSubFrame() 60 if ((*offset+14+subframeLen) <= amsduLen) in zfGetAmsduSubFrame() 69 zfRxBufferCopy(dev, newBuf, buf, 24, *offset+14, subframeLen); in zfGetAmsduSubFrame() 73 zfRxBufferCopy(dev, newBuf, buf, 0, *offset, 14+subframeLen); in zfGetAmsduSubFrame() 77 *offset += (((14+subframeLen)+3) & 0xfffc); in zfGetAmsduSubFrame() 106 u16_t offset = ZM_SIZE_OF_WLAN_DATA_HEADER+ZM_SIZE_OF_QOS_CTRL; in zfDeAmsdu() local 114 offset += (ZM_SIZE_OF_IV + ZM_SIZE_OF_EXT_IV); in zfDeAmsdu() [all …]
|
/drivers/usb/musb/ |
D | musb_io.h | 63 static inline u16 musb_readw(const void __iomem *addr, unsigned offset) in musb_readw() argument 64 { return __raw_readw(addr + offset); } in musb_readw() 66 static inline u32 musb_readl(const void __iomem *addr, unsigned offset) in musb_readl() argument 67 { return __raw_readl(addr + offset); } in musb_readl() 70 static inline void musb_writew(void __iomem *addr, unsigned offset, u16 data) in musb_writew() argument 71 { __raw_writew(data, addr + offset); } in musb_writew() 73 static inline void musb_writel(void __iomem *addr, unsigned offset, u32 data) in musb_writel() argument 74 { __raw_writel(data, addr + offset); } in musb_writel() 82 static inline u8 musb_readb(const void __iomem *addr, unsigned offset) in musb_readb() argument 87 tmp = __raw_readw(addr + (offset & ~1)); in musb_readb() [all …]
|
/drivers/gpu/drm/ |
D | drm_proc.c | 42 static int drm_name_info(char *buf, char **start, off_t offset, 44 static int drm_vm_info(char *buf, char **start, off_t offset, 46 static int drm_clients_info(char *buf, char **start, off_t offset, 48 static int drm_queues_info(char *buf, char **start, off_t offset, 50 static int drm_bufs_info(char *buf, char **start, off_t offset, 52 static int drm_vblank_info(char *buf, char **start, off_t offset, 54 static int drm_gem_name_info(char *buf, char **start, off_t offset, 56 static int drm_gem_object_info(char *buf, char **start, off_t offset, 59 static int drm_vma_info(char *buf, char **start, off_t offset, 197 static int drm_name_info(char *buf, char **start, off_t offset, int request, in drm_name_info() argument [all …]
|
/drivers/net/wireless/ath5k/ |
D | eeprom.c | 32 static int ath5k_hw_eeprom_read(struct ath5k_hw *ah, u32 offset, u16 *data) in ath5k_hw_eeprom_read() argument 42 (void)ath5k_hw_reg_read(ah, AR5K_EEPROM_BASE + (4 * offset)); in ath5k_hw_eeprom_read() 44 ath5k_hw_reg_write(ah, offset, AR5K_EEPROM_BASE); in ath5k_hw_eeprom_read() 124 for (cksum = 0, offset = 0; offset < AR5K_EEPROM_INFO_MAX; offset++) { in ath5k_eeprom_init_header() 125 AR5K_EEPROM_READ(AR5K_EEPROM_INFO(offset), val); in ath5k_eeprom_init_header() 159 static int ath5k_eeprom_read_ants(struct ath5k_hw *ah, u32 *offset, in ath5k_eeprom_read_ants() argument 163 u32 o = *offset; in ath5k_eeprom_read_ants() 210 *offset = o; in ath5k_eeprom_read_ants() 218 static int ath5k_eeprom_read_modes(struct ath5k_hw *ah, u32 *offset, in ath5k_eeprom_read_modes() argument 222 u32 o = *offset; in ath5k_eeprom_read_modes() [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_gem_proc.c | 34 static int i915_gem_active_info(char *buf, char **start, off_t offset, in i915_gem_active_info() argument 43 if (offset > DRM_PROC_LIMIT) { in i915_gem_active_info() 48 *start = &buf[offset]; in i915_gem_active_info() 67 if (len > request + offset) in i915_gem_active_info() 70 return len - offset; in i915_gem_active_info() 73 static int i915_gem_flushing_info(char *buf, char **start, off_t offset, in i915_gem_flushing_info() argument 82 if (offset > DRM_PROC_LIMIT) { in i915_gem_flushing_info() 87 *start = &buf[offset]; in i915_gem_flushing_info() 105 if (len > request + offset) in i915_gem_flushing_info() 108 return len - offset; in i915_gem_flushing_info() [all …]
|
/drivers/gpio/ |
D | max7301.c | 111 static int max7301_direction_input(struct gpio_chip *chip, unsigned offset) in max7301_direction_input() argument 118 offset += 4; in max7301_direction_input() 120 config = &ts->port_config[offset >> 2]; in max7301_direction_input() 126 *config = (*config & ~(3 << (offset & 3))) | (1 << (offset & 3)); in max7301_direction_input() 128 ret = max7301_write(ts->spi, 0x08 + (offset >> 2), *config); in max7301_direction_input() 135 static int __max7301_set(struct max7301 *ts, unsigned offset, int value) in __max7301_set() argument 138 ts->out_level |= 1 << offset; in __max7301_set() 139 return max7301_write(ts->spi, 0x20 + offset, 0x01); in __max7301_set() 141 ts->out_level &= ~(1 << offset); in __max7301_set() 142 return max7301_write(ts->spi, 0x20 + offset, 0x00); in __max7301_set() [all …]
|
D | twl4030-gpio.c | 207 static int twl_request(struct gpio_chip *chip, unsigned offset) in twl_request() argument 214 if (offset >= TWL4030_GPIO_MAX) { in twl_request() 219 offset -= TWL4030_GPIO_MAX; in twl_request() 220 if (offset) { in twl_request() 266 gpio_usage_count |= (0x1 << offset); in twl_request() 273 static void twl_free(struct gpio_chip *chip, unsigned offset) in twl_free() argument 275 if (offset >= TWL4030_GPIO_MAX) { in twl_free() 276 twl4030_led_set_value(offset - TWL4030_GPIO_MAX, 1); in twl_free() 282 gpio_usage_count &= ~BIT(offset); in twl_free() 291 static int twl_direction_in(struct gpio_chip *chip, unsigned offset) in twl_direction_in() argument [all …]
|
/drivers/ssb/ |
D | driver_gige.c | 30 static inline u8 gige_read8(struct ssb_gige *dev, u16 offset) in gige_read8() argument 32 return ssb_read8(dev->dev, offset); in gige_read8() 35 static inline u16 gige_read16(struct ssb_gige *dev, u16 offset) in gige_read16() argument 37 return ssb_read16(dev->dev, offset); in gige_read16() 40 static inline u32 gige_read32(struct ssb_gige *dev, u16 offset) in gige_read32() argument 42 return ssb_read32(dev->dev, offset); in gige_read32() 46 u16 offset, u8 value) in gige_write8() argument 48 ssb_write8(dev->dev, offset, value); in gige_write8() 52 u16 offset, u16 value) in gige_write16() argument 54 ssb_write16(dev->dev, offset, value); in gige_write16() [all …]
|
/drivers/net/ehea/ |
D | ehea_hw.h | 197 static inline u64 epa_load(struct h_epa epa, u32 offset) in epa_load() argument 199 return __raw_readq((void __iomem *)(epa.addr + offset)); in epa_load() 202 static inline void epa_store(struct h_epa epa, u32 offset, u64 value) in epa_store() argument 204 __raw_writeq(value, (void __iomem *)(epa.addr + offset)); in epa_store() 205 epa_load(epa, offset); /* synchronize explicitly to eHEA */ in epa_store() 208 static inline void epa_store_acc(struct h_epa epa, u32 offset, u64 value) in epa_store_acc() argument 210 __raw_writeq(value, (void __iomem *)(epa.addr + offset)); in epa_store_acc() 213 #define epa_store_eq(epa, offset, value)\ argument 214 epa_store(epa, EQTEMM_OFFSET(offset), value) 215 #define epa_load_eq(epa, offset)\ argument [all …]
|
/drivers/mtd/devices/ |
D | lart.c | 272 static __u8 read8 (__u32 offset) in read8() argument 274 volatile __u8 *data = (__u8 *) (FLASH_OFFSET + offset); in read8() 276 printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.2x\n", __func__, offset, *data); in read8() 281 static __u32 read32 (__u32 offset) in read32() argument 283 volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset); in read32() 285 printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.8x\n", __func__, offset, *data); in read32() 290 static void write32 (__u32 x,__u32 offset) in write32() argument 292 volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset); in write32() 295 printk (KERN_DEBUG "%s(): 0x%.8x <- 0x%.8x\n", __func__, offset, *data); in write32() 333 static inline int erase_block (__u32 offset) in erase_block() argument [all …]
|
/drivers/mtd/ |
D | ar7part.c | 54 unsigned int offset; in create_mtd_partitions() local 62 ar7_parts[0].offset = 0; in create_mtd_partitions() 67 ar7_parts[1].offset = 0; in create_mtd_partitions() 72 offset = pre_size; in create_mtd_partitions() 73 master->read(master, offset, in create_mtd_partitions() 76 ar7_parts[1].offset = pre_size; in create_mtd_partitions() 84 pre_size = offset; in create_mtd_partitions() 86 if (!ar7_parts[1].offset) { in create_mtd_partitions() 87 ar7_parts[1].offset = master->size - master->erasesize; in create_mtd_partitions() 94 offset += sizeof(header) + header.length; in create_mtd_partitions() [all …]
|
D | mtdpart.c | 29 uint64_t offset; member 57 res = part->master->read(part->master, from + part->offset, in part_read() 76 return part->master->point (part->master, from + part->offset, in part_point() 84 part->master->unpoint(part->master, from + part->offset, len); in part_unpoint() 97 res = part->master->read_oob(part->master, from + part->offset, ops); in part_read_oob() 148 return part->master->write(part->master, to + part->offset, in part_write() 162 return part->master->panic_write(part->master, to + part->offset, in part_panic_write() 178 return part->master->write_oob(part->master, to + part->offset, ops); in part_write_oob() 203 to + part->offset, retlen); in part_writev() 214 instr->addr += part->offset; in part_erase() [all …]
|
/drivers/infiniband/hw/ehca/ |
D | hipz_fns.h | 50 #define hipz_galpa_store_eq(gal, offset, value) \ argument 51 hipz_galpa_store(gal, EQTEMM_OFFSET(offset), value) 53 #define hipz_galpa_load_eq(gal, offset) \ argument 54 hipz_galpa_load(gal, EQTEMM_OFFSET(offset)) 56 #define hipz_galpa_store_qped(gal, offset, value) \ argument 57 hipz_galpa_store(gal, QPEDMM_OFFSET(offset), value) 59 #define hipz_galpa_load_qped(gal, offset) \ argument 60 hipz_galpa_load(gal, QPEDMM_OFFSET(offset)) 62 #define hipz_galpa_store_mrmw(gal, offset, value) \ argument 63 hipz_galpa_store(gal, MRMWMM_OFFSET(offset), value) [all …]
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00usb.h | 128 const u16 offset, const u16 value, 152 const u16 offset, void *buffer, 170 const u16 offset, void *buffer, 188 const u16 offset, const void *buffer, 206 const u16 offset, in rt2x00usb_vendor_request_sw() argument 211 USB_VENDOR_REQUEST_OUT, offset, in rt2x00usb_vendor_request_sw() 244 const unsigned int offset, in rt2x00usb_register_read() argument 249 USB_VENDOR_REQUEST_IN, offset, in rt2x00usb_register_read() 264 const unsigned int offset, in rt2x00usb_register_read_lock() argument 269 USB_VENDOR_REQUEST_IN, offset, in rt2x00usb_register_read_lock() [all …]
|
/drivers/net/ |
D | sonic.h | 345 int offset, __u16 val) in sonic_buf_put() argument 349 ((__u16 *) base + (offset*2))[1] = val; in sonic_buf_put() 351 ((__u16 *) base + (offset*2))[0] = val; in sonic_buf_put() 354 ((__u16 *) base)[offset] = val; in sonic_buf_put() 358 int offset) in sonic_buf_get() argument 362 return ((volatile __u16 *) base + (offset*2))[1]; in sonic_buf_get() 364 return ((volatile __u16 *) base + (offset*2))[0]; in sonic_buf_get() 367 return ((volatile __u16 *) base)[offset]; in sonic_buf_get() 372 int offset, __u16 val) in sonic_cda_put() argument 376 (entry * SIZEOF_SONIC_CD) + offset, val); in sonic_cda_put() [all …]
|
/drivers/video/ |
D | 68328fb.c | 199 var->red.offset = 0; in mc68x328fb_check_var() 201 var->green.offset = 0; in mc68x328fb_check_var() 203 var->blue.offset = 0; in mc68x328fb_check_var() 205 var->transp.offset = 0; in mc68x328fb_check_var() 209 var->red.offset = 0; in mc68x328fb_check_var() 211 var->green.offset = 0; in mc68x328fb_check_var() 213 var->blue.offset = 0; in mc68x328fb_check_var() 215 var->transp.offset = 0; in mc68x328fb_check_var() 220 var->red.offset = 0; in mc68x328fb_check_var() 222 var->green.offset = 5; in mc68x328fb_check_var() [all …]
|
/drivers/staging/otus/ |
D | oal_marc.h | 91 #define zmw_buf_readb(dev, buf, offset) *(u8_t*)((u8_t*)buf->data+offset) argument 92 #define zmw_buf_readh(dev, buf, offset) zmw_cpu_to_le16(*(u16_t*)((u8_t*)buf->data+offset)) argument 93 #define zmw_buf_writeb(dev, buf, offset, value) *(u8_t*)((u8_t*)buf->data+offset) = value argument 94 #define zmw_buf_writeh(dev, buf, offset, value) *(u16_t*)((u8_t*)buf->data+offset) = zmw_cpu_to_le1… argument 99 #define zmw_buf_readb(dev, buf, offset) zfwBufReadByte(dev, buf, offset) argument 100 #define zmw_buf_readh(dev, buf, offset) zfwBufReadHalfWord(dev, buf, offset) argument 101 #define zmw_buf_writeb(dev, buf, offset, value) zfwBufWriteByte(dev, buf, offset, value) argument 102 #define zmw_buf_writeh(dev, buf, offset, value) zfwBufWriteHalfWord(dev, buf, offset, value) argument
|
/drivers/hwmon/ |
D | lm87.c | 238 #define show_in(offset) \ argument 239 static ssize_t show_in##offset##_input(struct device *dev, struct device_attribute *attr, char *buf… 242 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[offset], \ 243 data->in_scale[offset])); \ 245 static ssize_t show_in##offset##_min(struct device *dev, struct device_attribute *attr, char *buf) \ 248 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[offset], \ 249 data->in_scale[offset])); \ 251 static ssize_t show_in##offset##_max(struct device *dev, struct device_attribute *attr, char *buf) \ 254 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[offset], \ 255 data->in_scale[offset])); \ [all …]
|
/drivers/net/wireless/b43/ |
D | pio.h | 118 static inline u16 b43_piotx_read16(struct b43_pio_txqueue *q, u16 offset) in b43_piotx_read16() argument 120 return b43_read16(q->dev, q->mmio_base + offset); in b43_piotx_read16() 123 static inline u32 b43_piotx_read32(struct b43_pio_txqueue *q, u16 offset) in b43_piotx_read32() argument 125 return b43_read32(q->dev, q->mmio_base + offset); in b43_piotx_read32() 129 u16 offset, u16 value) in b43_piotx_write16() argument 131 b43_write16(q->dev, q->mmio_base + offset, value); in b43_piotx_write16() 135 u16 offset, u32 value) in b43_piotx_write32() argument 137 b43_write32(q->dev, q->mmio_base + offset, value); in b43_piotx_write32() 141 static inline u16 b43_piorx_read16(struct b43_pio_rxqueue *q, u16 offset) in b43_piorx_read16() argument 143 return b43_read16(q->dev, q->mmio_base + offset); in b43_piorx_read16() [all …]
|
/drivers/usb/storage/ |
D | freecom.c | 432 int offset = 0; in pdump() local 437 offset = 0; in pdump() 441 offset += sprintf (line+offset, " - "); in pdump() 444 line[offset++] = buffer[j]; in pdump() 446 line[offset++] = '.'; in pdump() 448 line[offset] = 0; in pdump() 450 offset = 0; in pdump() 452 offset += sprintf (line+offset, "%08x:", i); in pdump() 455 offset += sprintf (line+offset, " -"); in pdump() 457 offset += sprintf (line+offset, " %02x", buffer[i] & 0xff); in pdump() [all …]
|
/drivers/mtd/maps/ |
D | tsunami_flash.c | 17 static inline map_word tsunami_flash_read8(struct map_info *map, unsigned long offset) in tsunami_flash_read8() argument 20 val.x[0] = tsunami_tig_readb(offset); in tsunami_flash_read8() 24 static void tsunami_flash_write8(struct map_info *map, map_word value, unsigned long offset) in tsunami_flash_write8() argument 26 tsunami_tig_writeb(value.x[0], offset); in tsunami_flash_write8() 30 struct map_info *map, void *addr, unsigned long offset, ssize_t len) in tsunami_flash_copy_from() argument 34 while(len && (offset < MAX_TIG_FLASH_SIZE)) { in tsunami_flash_copy_from() 35 *dest = tsunami_tig_readb(offset); in tsunami_flash_copy_from() 36 offset++; in tsunami_flash_copy_from() 43 struct map_info *map, unsigned long offset, in tsunami_flash_copy_to() argument 48 while(len && (offset < MAX_TIG_FLASH_SIZE)) { in tsunami_flash_copy_to() [all …]
|