/drivers/media/pci/zoran/ |
D | zr36050.c | 72 zr36050_read (struct zr36050 *ptr, in zr36050_read() argument 78 if (ptr->codec->master_data->readreg) in zr36050_read() 79 value = (ptr->codec->master_data->readreg(ptr->codec, in zr36050_read() 84 ptr->name); in zr36050_read() 86 dprintk(4, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, in zr36050_read() 93 zr36050_write (struct zr36050 *ptr, in zr36050_write() argument 97 dprintk(4, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, in zr36050_write() 101 if (ptr->codec->master_data->writereg) in zr36050_write() 102 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36050_write() 107 ptr->name); in zr36050_write() [all …]
|
D | zr36060.c | 76 zr36060_read (struct zr36060 *ptr, in zr36060_read() argument 82 if (ptr->codec->master_data->readreg) in zr36060_read() 83 value = (ptr->codec->master_data->readreg(ptr->codec, in zr36060_read() 88 ptr->name); in zr36060_read() 96 zr36060_write(struct zr36060 *ptr, in zr36060_write() argument 104 if (ptr->codec->master_data->writereg) in zr36060_write() 105 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write() 110 ptr->name); in zr36060_write() 121 zr36060_read_status (struct zr36060 *ptr) in zr36060_read_status() argument 123 ptr->status = zr36060_read(ptr, ZR060_CFSR); in zr36060_read_status() [all …]
|
D | zr36016.c | 74 zr36016_read (struct zr36016 *ptr, in zr36016_read() argument 80 if (ptr->codec->master_data->readreg) in zr36016_read() 82 (ptr->codec->master_data-> in zr36016_read() 83 readreg(ptr->codec, reg)) & 0xFF; in zr36016_read() 87 ptr->name); in zr36016_read() 89 dprintk(4, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, in zr36016_read() 96 zr36016_write (struct zr36016 *ptr, in zr36016_write() argument 100 dprintk(4, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, in zr36016_write() 104 if (ptr->codec->master_data->writereg) { in zr36016_write() 105 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36016_write() [all …]
|
/drivers/video/ |
D | hdmi.c | 34 static u8 hdmi_infoframe_checksum(u8 *ptr, size_t size) in hdmi_infoframe_checksum() argument 41 csum += ptr[i]; in hdmi_infoframe_checksum() 48 u8 *ptr = buffer; in hdmi_infoframe_set_checksum() local 50 ptr[3] = hdmi_infoframe_checksum(buffer, size); in hdmi_infoframe_set_checksum() 88 u8 *ptr = buffer; in hdmi_avi_infoframe_pack() local 98 ptr[0] = frame->type; in hdmi_avi_infoframe_pack() 99 ptr[1] = frame->version; in hdmi_avi_infoframe_pack() 100 ptr[2] = frame->length; in hdmi_avi_infoframe_pack() 101 ptr[3] = 0; /* checksum */ in hdmi_avi_infoframe_pack() 104 ptr += HDMI_INFOFRAME_HEADER_SIZE; in hdmi_avi_infoframe_pack() [all …]
|
/drivers/net/ethernet/neterion/vxge/ |
D | vxge-ethtool.c | 235 u64 *ptr = tmp_stats; in vxge_get_ethtool_stats() local 269 *ptr++ = 0; in vxge_get_ethtool_stats() 298 memset(ptr, 0, (VXGE_HW_VPATH_TX_STATS_LEN + in vxge_get_ethtool_stats() 300 ptr += (VXGE_HW_VPATH_TX_STATS_LEN + in vxge_get_ethtool_stats() 305 *ptr++ = vpath_info->tx_stats.tx_ttl_eth_frms; in vxge_get_ethtool_stats() 306 *ptr++ = vpath_info->tx_stats.tx_ttl_eth_octets; in vxge_get_ethtool_stats() 307 *ptr++ = vpath_info->tx_stats.tx_data_octets; in vxge_get_ethtool_stats() 308 *ptr++ = vpath_info->tx_stats.tx_mcast_frms; in vxge_get_ethtool_stats() 309 *ptr++ = vpath_info->tx_stats.tx_bcast_frms; in vxge_get_ethtool_stats() 310 *ptr++ = vpath_info->tx_stats.tx_ucast_frms; in vxge_get_ethtool_stats() [all …]
|
/drivers/gpu/drm/radeon/ |
D | atom.c | 179 int *ptr, uint32_t *saved, int print) in atom_get_src_int() argument 187 idx = U16(*ptr); in atom_get_src_int() 188 (*ptr) += 2; in atom_get_src_int() 222 idx = U8(*ptr); in atom_get_src_int() 223 (*ptr)++; in atom_get_src_int() 231 idx = U8(*ptr); in atom_get_src_int() 232 (*ptr)++; in atom_get_src_int() 268 idx = U16(*ptr); in atom_get_src_int() 269 (*ptr) += 2; in atom_get_src_int() 279 idx = U8(*ptr); in atom_get_src_int() [all …]
|
D | atom-bits.h | 28 static inline uint8_t get_u8(void *bios, int ptr) in get_u8() argument 30 return ((unsigned char *)bios)[ptr]; in get_u8() 32 #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) argument 33 #define CU8(ptr) get_u8(ctx->bios, (ptr)) argument 34 static inline uint16_t get_u16(void *bios, int ptr) in get_u16() argument 36 return get_u8(bios ,ptr)|(((uint16_t)get_u8(bios, ptr+1))<<8); in get_u16() 38 #define U16(ptr) get_u16(ctx->ctx->bios, (ptr)) argument 39 #define CU16(ptr) get_u16(ctx->bios, (ptr)) argument 40 static inline uint32_t get_u32(void *bios, int ptr) in get_u32() argument 42 return get_u16(bios, ptr)|(((uint32_t)get_u16(bios, ptr+2))<<16); in get_u32() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | atom.c | 175 int *ptr, uint32_t *saved, int print) in atom_get_src_int() argument 183 idx = U16(*ptr); in atom_get_src_int() 184 (*ptr) += 2; in atom_get_src_int() 218 idx = U8(*ptr); in atom_get_src_int() 219 (*ptr)++; in atom_get_src_int() 227 idx = U8(*ptr); in atom_get_src_int() 228 (*ptr)++; in atom_get_src_int() 264 idx = U16(*ptr); in atom_get_src_int() 265 (*ptr) += 2; in atom_get_src_int() 275 idx = U8(*ptr); in atom_get_src_int() [all …]
|
/drivers/gpu/drm/amd/include/ |
D | atom-bits.h | 28 static inline uint8_t get_u8(void *bios, int ptr) in get_u8() argument 30 return ((unsigned char *)bios)[ptr]; in get_u8() 32 #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) argument 33 #define CU8(ptr) get_u8(ctx->bios, (ptr)) argument 34 static inline uint16_t get_u16(void *bios, int ptr) in get_u16() argument 36 return get_u8(bios ,ptr)|(((uint16_t)get_u8(bios, ptr+1))<<8); in get_u16() 38 #define U16(ptr) get_u16(ctx->ctx->bios, (ptr)) argument 39 #define CU16(ptr) get_u16(ctx->bios, (ptr)) argument 40 static inline uint32_t get_u32(void *bios, int ptr) in get_u32() argument 42 return get_u16(bios, ptr)|(((uint32_t)get_u16(bios, ptr+2))<<16); in get_u32() [all …]
|
/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs_private.h | 97 #define LIBCFS_ALLOC_POST(ptr, size) \ argument 99 if (unlikely((ptr) == NULL)) { \ 101 #ptr "' = %d)\n", __FILE__, __LINE__, (int)(size)); \ 103 memset((ptr), 0, (size)); \ 110 #define LIBCFS_ALLOC_GFP(ptr, size, mask) \ argument 113 (ptr) = (size) <= LIBCFS_VMALLOC_SIZE ? \ 115 LIBCFS_ALLOC_POST((ptr), (size)); \ 121 #define LIBCFS_ALLOC(ptr, size) \ argument 122 LIBCFS_ALLOC_GFP(ptr, size, GFP_NOFS) 127 #define LIBCFS_ALLOC_ATOMIC(ptr, size) \ argument [all …]
|
/drivers/net/ppp/ |
D | ppp_mppe.h | 35 u_char *ptr = ci; /* u_char[4] */ \ 39 *ptr++ = 0x0; \ 41 *ptr++ = MPPE_H_BIT; \ 42 *ptr++ = 0; \ 43 *ptr++ = 0; \ 46 *ptr = 0; \ 48 *ptr |= MPPE_S_BIT; \ 50 *ptr |= MPPE_L_BIT; \ 57 u_char *ptr = ci; /* u_char[4] */ \ 62 if (!(ptr[0] & MPPE_H_BIT)) \ [all …]
|
/drivers/extcon/ |
D | devres.c | 70 struct extcon_dev **ptr, *edev; in devm_extcon_dev_allocate() local 72 ptr = devres_alloc(devm_extcon_dev_release, sizeof(*ptr), GFP_KERNEL); in devm_extcon_dev_allocate() 73 if (!ptr) in devm_extcon_dev_allocate() 78 devres_free(ptr); in devm_extcon_dev_allocate() 84 *ptr = edev; in devm_extcon_dev_allocate() 85 devres_add(dev, ptr); in devm_extcon_dev_allocate() 123 struct extcon_dev **ptr; in devm_extcon_dev_register() local 126 ptr = devres_alloc(devm_extcon_dev_unreg, sizeof(*ptr), GFP_KERNEL); in devm_extcon_dev_register() 127 if (!ptr) in devm_extcon_dev_register() 132 devres_free(ptr); in devm_extcon_dev_register() [all …]
|
/drivers/regulator/ |
D | gpio-regulator.c | 54 int ptr; in gpio_regulator_get_value() local 56 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_get_value() 57 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value() 58 return data->states[ptr].value; in gpio_regulator_get_value() 68 int ptr, target = 0, state, best_val = INT_MAX; in gpio_regulator_set_voltage() local 70 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_set_voltage() 71 if (data->states[ptr].value < best_val && in gpio_regulator_set_voltage() 72 data->states[ptr].value >= min_uV && in gpio_regulator_set_voltage() 73 data->states[ptr].value <= max_uV) { in gpio_regulator_set_voltage() 74 target = data->states[ptr].gpios; in gpio_regulator_set_voltage() [all …]
|
/drivers/sh/intc/ |
D | access.c | 78 void __iomem *ptr = (void __iomem *)addr; in test_8() local 79 return intc_get_field_from_handle(__raw_readb(ptr), h); in test_8() 85 void __iomem *ptr = (void __iomem *)addr; in test_16() local 86 return intc_get_field_from_handle(__raw_readw(ptr), h); in test_16() 92 void __iomem *ptr = (void __iomem *)addr; in test_32() local 93 return intc_get_field_from_handle(__raw_readl(ptr), h); in test_32() 99 void __iomem *ptr = (void __iomem *)addr; in write_8() local 100 __raw_writeb(intc_set_field_from_handle(0, data, h), ptr); in write_8() 101 (void)__raw_readb(ptr); /* Defeat write posting */ in write_8() 108 void __iomem *ptr = (void __iomem *)addr; in write_16() local [all …]
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt.c | 42 struct list_head *ptr, *n; in ieee80211_crypt_deinit_entries() local 45 for (ptr = ieee->crypt_deinit_list.next, n = ptr->next; in ieee80211_crypt_deinit_entries() 46 ptr != &ieee->crypt_deinit_list; ptr = n, n = ptr->next) { in ieee80211_crypt_deinit_entries() 47 entry = list_entry(ptr, struct ieee80211_crypt_data, list); in ieee80211_crypt_deinit_entries() 52 list_del(ptr); in ieee80211_crypt_deinit_entries() 129 struct list_head *ptr; in ieee80211_unregister_crypto_ops() local 136 for (ptr = hcrypt->algs.next; ptr != &hcrypt->algs; ptr = ptr->next) { in ieee80211_unregister_crypto_ops() 138 (struct ieee80211_crypto_alg *) ptr; in ieee80211_unregister_crypto_ops() 160 struct list_head *ptr; in ieee80211_get_crypto_ops() local 167 for (ptr = hcrypt->algs.next; ptr != &hcrypt->algs; ptr = ptr->next) { in ieee80211_get_crypto_ops() [all …]
|
/drivers/mfd/ |
D | cros_ec_spi.c | 86 static void debug_packet(struct device *dev, const char *name, u8 *ptr, in debug_packet() argument 94 pr_cont(" %02x", ptr[i]); in debug_packet() 173 u8 *ptr, *end; in cros_ec_spi_receive_packet() local 191 ptr = ec_dev->din; in cros_ec_spi_receive_packet() 192 for (end = ptr + EC_MSG_PREAMBLE_COUNT; ptr != end; ptr++) { in cros_ec_spi_receive_packet() 193 if (*ptr == EC_SPI_FRAME_START) { in cros_ec_spi_receive_packet() 195 ptr - ec_dev->din); in cros_ec_spi_receive_packet() 199 if (ptr != end) in cros_ec_spi_receive_packet() 217 todo = end - ++ptr; in cros_ec_spi_receive_packet() 220 memmove(ec_dev->din, ptr, todo); in cros_ec_spi_receive_packet() [all …]
|
/drivers/misc/ |
D | lkdtm_perms.c | 79 unsigned long *ptr = (unsigned long *)&rodata; in lkdtm_WRITE_RO() local 81 pr_info("attempting bad rodata write at %p\n", ptr); in lkdtm_WRITE_RO() 82 *ptr ^= 0xabcd1234; in lkdtm_WRITE_RO() 87 unsigned long *ptr = &ro_after_init; in lkdtm_WRITE_RO_AFTER_INIT() local 94 if ((*ptr & 0xAA) != 0xAA) { in lkdtm_WRITE_RO_AFTER_INIT() 95 pr_info("%p was NOT written during init!?\n", ptr); in lkdtm_WRITE_RO_AFTER_INIT() 99 pr_info("attempting bad ro_after_init write at %p\n", ptr); in lkdtm_WRITE_RO_AFTER_INIT() 100 *ptr ^= 0xabcd1234; in lkdtm_WRITE_RO_AFTER_INIT() 106 unsigned char *ptr; in lkdtm_WRITE_KERN() local 109 ptr = (unsigned char *)do_overwritten; in lkdtm_WRITE_KERN() [all …]
|
/drivers/spi/ |
D | spi-tle62x0.c | 106 int ptr; in tle62x0_status_show() local 117 for (ptr = 0; ptr < (st->nr_gpio * 2)/8; ptr += 1) { in tle62x0_status_show() 119 fault |= ((unsigned long)buff[ptr]); in tle62x0_status_show() 121 dev_dbg(dev, "byte %d is %02x\n", ptr, buff[ptr]); in tle62x0_status_show() 124 for (ptr = 0; ptr < st->nr_gpio; ptr++) { in tle62x0_status_show() 125 bp += sprintf(bp, "%s ", decode_fault(fault >> (ptr * 2))); in tle62x0_status_show() 232 int ptr; in to_gpio_num() local 234 for (ptr = 0; ptr < ARRAY_SIZE(gpio_attrs); ptr++) { in to_gpio_num() 235 if (gpio_attrs[ptr] == attr) in to_gpio_num() 236 return ptr; in to_gpio_num() [all …]
|
/drivers/staging/rtl8712/ |
D | rtl871x_recv.c | 246 u8 *psta_addr, *ptr; in r8712_portctrl() local 255 ptr = get_recvframe_data(precv_frame); in r8712_portctrl() 262 ptr = ptr + pfhdr->attrib.hdrlen + LLC_HEADER_SIZE; in r8712_portctrl() 263 memcpy(ðer_type, ptr, 2); in r8712_portctrl() 315 u8 *ptr = precv_frame->u.hdr.rx_data; in sta2sta_data_frame() local 360 memcpy(pattrib->dst, GetAddr1Ptr(ptr), ETH_ALEN); in sta2sta_data_frame() 361 memcpy(pattrib->src, GetAddr2Ptr(ptr), ETH_ALEN); in sta2sta_data_frame() 362 memcpy(pattrib->bssid, GetAddr3Ptr(ptr), ETH_ALEN); in sta2sta_data_frame() 385 u8 *ptr = precv_frame->u.hdr.rx_data; in ap2sta_data_frame() local 396 if ((GetFrameSubType(ptr)) == WIFI_DATA_NULL) in ap2sta_data_frame() [all …]
|
/drivers/net/wireless/ath/ath10k/ |
D | wmi-tlv.c | 80 ath10k_wmi_tlv_iter(struct ath10k *ar, const void *ptr, size_t len, in ath10k_wmi_tlv_iter() argument 82 const void *ptr, void *data), in ath10k_wmi_tlv_iter() 85 const void *begin = ptr; in ath10k_wmi_tlv_iter() 94 ptr - begin, len, sizeof(*tlv)); in ath10k_wmi_tlv_iter() 98 tlv = ptr; in ath10k_wmi_tlv_iter() 101 ptr += sizeof(*tlv); in ath10k_wmi_tlv_iter() 107 tlv_tag, ptr - begin, len, tlv_len); in ath10k_wmi_tlv_iter() 116 tlv_tag, ptr - begin, tlv_len, in ath10k_wmi_tlv_iter() 121 ret = iter(ar, tlv_tag, tlv_len, ptr, data); in ath10k_wmi_tlv_iter() 125 ptr += tlv_len; in ath10k_wmi_tlv_iter() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ctrl.c | 307 char *ptr,unsigned int len) in gen_bitmask_string() argument 323 cnt = scnprintf(ptr,len,"%s%s%s", in gen_bitmask_string() 328 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 337 cnt = scnprintf(ptr,len,"%s0x%lx", in gen_bitmask_string() 340 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 343 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string() 346 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 349 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string() 352 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 368 static int parse_token(const char *ptr,unsigned int len, in parse_token() argument [all …]
|
/drivers/input/misc/ |
D | xen-kbdfront.c | 36 struct input_dev *ptr; member 68 dev = info->ptr; in input_handler() 81 if (test_bit(event->key.keycode, info->ptr->keybit)) in input_handler() 82 dev = info->ptr; in input_handler() 113 struct input_dev *kbd, *ptr; in xenkbd_probe() local 166 ptr = input_allocate_device(); in xenkbd_probe() 167 if (!ptr) in xenkbd_probe() 169 ptr->name = "Xen Virtual Pointer"; in xenkbd_probe() 170 ptr->phys = info->phys; in xenkbd_probe() 171 ptr->id.bustype = BUS_PCI; in xenkbd_probe() [all …]
|
/drivers/scsi/ |
D | nsp32_io.h | 57 volatile unsigned char *ptr; in nsp32_mmio_write1() local 59 ptr = (unsigned char *)(base + NSP32_MMIO_OFFSET + index); in nsp32_mmio_write1() 61 writeb(val, ptr); in nsp32_mmio_write1() 67 volatile unsigned char *ptr; in nsp32_mmio_read1() local 69 ptr = (unsigned char *)(base + NSP32_MMIO_OFFSET + index); in nsp32_mmio_read1() 71 return readb(ptr); in nsp32_mmio_read1() 78 volatile unsigned short *ptr; in nsp32_mmio_write2() local 80 ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + index); in nsp32_mmio_write2() 82 writew(cpu_to_le16(val), ptr); in nsp32_mmio_write2() 88 volatile unsigned short *ptr; in nsp32_mmio_read2() local [all …]
|
/drivers/crypto/qat/qat_common/ |
D | adf_dev_mgr.c | 83 struct vf_id_map *ptr = in adf_find_vf() local 86 if (ptr->bdf == bdf) in adf_find_vf() 87 return ptr; in adf_find_vf() 97 struct vf_id_map *ptr = in adf_get_vf_real_id() local 99 if (ptr->fake_id == fake) in adf_get_vf_real_id() 100 return ptr->id; in adf_get_vf_real_id() 115 struct list_head *ptr, *tmp; in adf_clean_vf_map() local 118 list_for_each_safe(ptr, tmp, &vfs_table) { in adf_clean_vf_map() 119 map = list_entry(ptr, struct vf_id_map, list); in adf_clean_vf_map() 128 list_del(ptr); in adf_clean_vf_map() [all …]
|
/drivers/net/caif/ |
D | caif_spi_slave.c | 64 u8 *ptr = NULL; in cfspi_xfer() local 99 ptr = (u8 *) cfspi->xfer.va_tx; in cfspi_xfer() 100 ptr += SPI_IND_SZ; in cfspi_xfer() 101 len = cfspi_xmitfrm(cfspi, ptr, cfspi->tx_cpck_len); in cfspi_xfer() 116 ptr = (u8 *) cfspi->xfer.va_tx; in cfspi_xfer() 117 *ptr++ = SPI_CMD_IND; in cfspi_xfer() 118 *ptr++ = (SPI_CMD_IND & 0xFF00) >> 8; in cfspi_xfer() 119 *ptr++ = cfspi->tx_npck_len & 0x00FF; in cfspi_xfer() 120 *ptr++ = (cfspi->tx_npck_len & 0xFF00) >> 8; in cfspi_xfer() 200 ptr = ((u8 *)(cfspi->xfer.va_rx + SPI_DATA_POS)); in cfspi_xfer() [all …]
|