/drivers/tty/ |
D | n_tty.c | 129 static inline size_t read_cnt(struct n_tty_data *ldata) in read_cnt() argument 131 return ldata->read_head - ldata->read_tail; in read_cnt() 134 static inline unsigned char read_buf(struct n_tty_data *ldata, size_t i) in read_buf() argument 136 return ldata->read_buf[i & (N_TTY_BUF_SIZE - 1)]; in read_buf() 139 static inline unsigned char *read_buf_addr(struct n_tty_data *ldata, size_t i) in read_buf_addr() argument 141 return &ldata->read_buf[i & (N_TTY_BUF_SIZE - 1)]; in read_buf_addr() 144 static inline unsigned char echo_buf(struct n_tty_data *ldata, size_t i) in echo_buf() argument 146 return ldata->echo_buf[i & (N_TTY_BUF_SIZE - 1)]; in echo_buf() 149 static inline unsigned char *echo_buf_addr(struct n_tty_data *ldata, size_t i) in echo_buf_addr() argument 151 return &ldata->echo_buf[i & (N_TTY_BUF_SIZE - 1)]; in echo_buf_addr() [all …]
|
/drivers/staging/lustre/lustre/obdclass/ |
D | linkea.c | 33 int linkea_data_new(struct linkea_data *ldata, struct lu_buf *buf) in linkea_data_new() argument 35 ldata->ld_buf = lu_buf_check_and_alloc(buf, PAGE_SIZE); in linkea_data_new() 36 if (!ldata->ld_buf->lb_buf) in linkea_data_new() 38 ldata->ld_leh = ldata->ld_buf->lb_buf; in linkea_data_new() 39 ldata->ld_leh->leh_magic = LINK_EA_MAGIC; in linkea_data_new() 40 ldata->ld_leh->leh_len = sizeof(struct link_ea_header); in linkea_data_new() 41 ldata->ld_leh->leh_reccount = 0; in linkea_data_new() 46 int linkea_init(struct linkea_data *ldata) in linkea_init() argument 50 LASSERT(ldata->ld_buf); in linkea_init() 51 leh = ldata->ld_buf->lb_buf; in linkea_init() [all …]
|
/drivers/rtc/ |
D | rtc-pl031.c | 98 struct pl031_local *ldata = dev_get_drvdata(dev); in pl031_alarm_irq_enable() local 102 writel(RTC_BIT_AI, ldata->base + RTC_ICR); in pl031_alarm_irq_enable() 104 imsc = readl(ldata->base + RTC_IMSC); in pl031_alarm_irq_enable() 107 writel(imsc | RTC_BIT_AI, ldata->base + RTC_IMSC); in pl031_alarm_irq_enable() 109 writel(imsc & ~RTC_BIT_AI, ldata->base + RTC_IMSC); in pl031_alarm_irq_enable() 172 struct pl031_local *ldata = dev_get_drvdata(dev); in pl031_stv2_read_time() local 174 pl031_stv2_time_to_tm(readl(ldata->base + RTC_DR), in pl031_stv2_read_time() 175 readl(ldata->base + RTC_YDR), tm); in pl031_stv2_read_time() 184 struct pl031_local *ldata = dev_get_drvdata(dev); in pl031_stv2_set_time() local 189 writel(bcd_year, ldata->base + RTC_YLR); in pl031_stv2_set_time() [all …]
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_linkea.h | 44 int linkea_data_new(struct linkea_data *ldata, struct lu_buf *buf); 45 int linkea_init(struct linkea_data *ldata); 50 int linkea_add_buf(struct linkea_data *ldata, const struct lu_name *lname, 52 void linkea_del_buf(struct linkea_data *ldata, const struct lu_name *lname); 53 int linkea_links_find(struct linkea_data *ldata, const struct lu_name *lname, 56 static inline void linkea_first_entry(struct linkea_data *ldata) in linkea_first_entry() argument 58 LASSERT(ldata); in linkea_first_entry() 59 LASSERT(ldata->ld_leh); in linkea_first_entry() 61 if (ldata->ld_leh->leh_reccount == 0) in linkea_first_entry() 62 ldata->ld_lee = NULL; in linkea_first_entry() [all …]
|
/drivers/isdn/capi/ |
D | kcapi.c | 1023 capiloaddata ldata; in old_capi_manufacturer() local 1118 ldata.firmware.user = 1; in old_capi_manufacturer() 1119 ldata.firmware.data = ldef.t4file.data; in old_capi_manufacturer() 1120 ldata.firmware.len = ldef.t4file.len; in old_capi_manufacturer() 1121 ldata.configuration.user = 1; in old_capi_manufacturer() 1122 ldata.configuration.data = ldef.t4config.data; in old_capi_manufacturer() 1123 ldata.configuration.len = ldef.t4config.len; in old_capi_manufacturer() 1132 retval = ctr->load_firmware(ctr, &ldata); in old_capi_manufacturer()
|
/drivers/staging/lustre/lustre/llite/ |
D | llite_lib.c | 2624 static int ll_linkea_decode(struct linkea_data *ldata, unsigned int linkno, in ll_linkea_decode() argument 2630 rc = linkea_init(ldata); in ll_linkea_decode() 2634 if (linkno >= ldata->ld_leh->leh_reccount) in ll_linkea_decode() 2638 linkea_first_entry(ldata); in ll_linkea_decode() 2639 for (idx = 0; ldata->ld_lee; idx++) { in ll_linkea_decode() 2640 linkea_entry_unpack(ldata->ld_lee, &ldata->ld_reclen, ln, in ll_linkea_decode() 2645 linkea_next_entry(ldata); in ll_linkea_decode() 2670 struct linkea_data *ldata; in ll_getparent() local 2694 ldata = kzalloc(sizeof(*ldata), GFP_NOFS); in ll_getparent() 2695 if (!ldata) in ll_getparent() [all …]
|
/drivers/scsi/ibmvscsi_tgt/ |
D | libsrp.h | 90 void *ldata; member
|
D | ibmvscsi_tgt.c | 3084 struct scsi_info *vscsi = target->ldata; in ibmvscsis_rdma() 3367 vscsi->target.ldata = vscsi; in ibmvscsis_probe()
|
/drivers/media/rc/ |
D | ite-cir.c | 181 unsigned long *ldata; in ite_decode_bytes() local 189 ldata = (unsigned long *)data; in ite_decode_bytes() 191 next_one = find_next_bit_le(ldata, size, 0); in ite_decode_bytes() 200 next_zero = find_next_zero_bit_le(ldata, size, next_one + 1); in ite_decode_bytes() 207 find_next_bit_le(ldata, in ite_decode_bytes()
|
/drivers/media/usb/gspca/ |
D | vc032x.c | 2974 u8 ldata, mdata, hdata; in read_sensor_register() local 2993 ldata = gspca_dev->usb_buf[0]; in read_sensor_register() 2998 if (hdata != 0 && mdata != 0 && ldata != 0) in read_sensor_register() 3000 hdata, mdata, ldata); in read_sensor_register()
|
/drivers/video/fbdev/ |
D | tgafb.c | 1013 u32 fdata, ldata; local 1016 ldata = ((width & 2047) - 1) | align; 1022 __raw_writel(ldata, fb_base + pos + j*Bpp);
|
/drivers/scsi/lpfc/ |
D | lpfc_sli.c | 6997 uint32_t word0, ldata; in lpfc_sli_issue_mbox_s3() local 7232 ldata = *((uint32_t *)mbx); in lpfc_sli_issue_mbox_s3() 7234 writel(ldata, to_slim); in lpfc_sli_issue_mbox_s3() 9678 uint32_t ldata; in lpfc_sli_pcimem_bcopy() local 9682 ldata = *src; in lpfc_sli_pcimem_bcopy() 9683 ldata = le32_to_cpu(ldata); in lpfc_sli_pcimem_bcopy() 9684 *dest = ldata; in lpfc_sli_pcimem_bcopy() 9706 uint32_t ldata; in lpfc_sli_bemem_bcopy() local 9710 ldata = *src; in lpfc_sli_bemem_bcopy() 9711 ldata = be32_to_cpu(ldata); in lpfc_sli_bemem_bcopy() [all …]
|