/linux-4.19.296/drivers/media/dvb-frontends/ |
D | nxt200x.c | 68 static int i2c_writebytes (struct nxt200x_state* state, u8 addr, u8 *buf, u8 len) in i2c_writebytes() argument 71 struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = len }; in i2c_writebytes() 81 static int i2c_readbytes(struct nxt200x_state *state, u8 addr, u8 *buf, u8 len) in i2c_readbytes() argument 84 struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = buf, .len = len }; in i2c_readbytes() 95 const u8 *buf, u8 len) in nxt200x_writebytes() argument 99 …struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf2, .len = len +… in nxt200x_writebytes() 108 memcpy(&buf2[1], buf, len); in nxt200x_writebytes() 118 static int nxt200x_readbytes(struct nxt200x_state *state, u8 reg, u8 *buf, u8 len) in nxt200x_readbytes() argument 122 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = reg2, .len = … in nxt200x_readbytes() 123 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = buf, .len = len } }; in nxt200x_readbytes() [all …]
|
D | stb6000.c | 54 u8 buf[] = { 10, 0 }; in stb6000_sleep() local 58 .buf = buf, in stb6000_sleep() 85 u8 buf[12]; in stb6000_set_params() local 89 .buf = buf, in stb6000_set_params() 102 buf[0] = 0x01; in stb6000_set_params() 103 buf[1] = 0xac; in stb6000_set_params() 105 buf[1] = 0xaa; in stb6000_set_params() 107 buf[1] = 0xa8; in stb6000_set_params() 109 buf[1] = 0xa6; in stb6000_set_params() 111 buf[1] = 0xa5; in stb6000_set_params() [all …]
|
/linux-4.19.296/drivers/media/common/videobuf2/ |
D | videobuf2-dma-sg.c | 58 static int vb2_dma_sg_alloc_compacted(struct vb2_dma_sg_buf *buf, in vb2_dma_sg_alloc_compacted() argument 62 unsigned long size = buf->size; in vb2_dma_sg_alloc_compacted() 83 __free_page(buf->pages[last_page]); in vb2_dma_sg_alloc_compacted() 91 buf->pages[last_page++] = &pages[i]; in vb2_dma_sg_alloc_compacted() 103 struct vb2_dma_sg_buf *buf; in vb2_dma_sg_alloc() local 111 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_sg_alloc() 112 if (!buf) in vb2_dma_sg_alloc() 115 buf->vaddr = NULL; in vb2_dma_sg_alloc() 116 buf->dma_dir = dma_dir; in vb2_dma_sg_alloc() 117 buf->offset = 0; in vb2_dma_sg_alloc() [all …]
|
D | videobuf2-dma-contig.c | 71 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_cookie() local 73 return &buf->dma_addr; in vb2_dc_cookie() 78 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_vaddr() local 80 if (!buf->vaddr && buf->db_attach) in vb2_dc_vaddr() 81 buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); in vb2_dc_vaddr() 83 return buf->vaddr; in vb2_dc_vaddr() 88 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_num_users() local 90 return refcount_read(&buf->refcount); in vb2_dc_num_users() 95 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_prepare() local 96 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_prepare() [all …]
|
D | videobuf2-vmalloc.c | 41 struct vb2_vmalloc_buf *buf; in vb2_vmalloc_alloc() local 43 buf = kzalloc(sizeof(*buf), GFP_KERNEL | gfp_flags); in vb2_vmalloc_alloc() 44 if (!buf) in vb2_vmalloc_alloc() 47 buf->size = size; in vb2_vmalloc_alloc() 48 buf->vaddr = vmalloc_user(buf->size); in vb2_vmalloc_alloc() 49 buf->dma_dir = dma_dir; in vb2_vmalloc_alloc() 50 buf->handler.refcount = &buf->refcount; in vb2_vmalloc_alloc() 51 buf->handler.put = vb2_vmalloc_put; in vb2_vmalloc_alloc() 52 buf->handler.arg = buf; in vb2_vmalloc_alloc() 54 if (!buf->vaddr) { in vb2_vmalloc_alloc() [all …]
|
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-i2c.c | 256 &msg->buf[i]); in mxl111sf_i2c_sw_xfer_msg() 287 msg->buf[i]); in mxl111sf_i2c_sw_xfer_msg() 339 u8 buf[26]; in mxl111sf_i2c_check_status() local 343 buf[0] = USB_READ_I2C_CMD; in mxl111sf_i2c_check_status() 344 buf[1] = 0x00; in mxl111sf_i2c_check_status() 346 buf[2] = I2C_INT_STATUS_REG; in mxl111sf_i2c_check_status() 347 buf[3] = 0x00; in mxl111sf_i2c_check_status() 348 buf[4] = 0x00; in mxl111sf_i2c_check_status() 350 buf[5] = USB_END_I2C_CMD; in mxl111sf_i2c_check_status() 352 mxl111sf_i2c_get_data(state, 0, buf, buf); in mxl111sf_i2c_check_status() [all …]
|
/linux-4.19.296/fs/ |
D | statfs.c | 53 static int statfs_by_dentry(struct dentry *dentry, struct kstatfs *buf) in statfs_by_dentry() argument 60 memset(buf, 0, sizeof(*buf)); in statfs_by_dentry() 64 retval = dentry->d_sb->s_op->statfs(dentry, buf); in statfs_by_dentry() 65 if (retval == 0 && buf->f_frsize == 0) in statfs_by_dentry() 66 buf->f_frsize = buf->f_bsize; in statfs_by_dentry() 70 int vfs_statfs(const struct path *path, struct kstatfs *buf) in vfs_statfs() argument 74 error = statfs_by_dentry(path->dentry, buf); in vfs_statfs() 76 buf->f_flags = calculate_f_flags(path->mnt); in vfs_statfs() 112 struct statfs buf; in do_statfs_native() local 114 if (sizeof(buf) == sizeof(*st)) in do_statfs_native() [all …]
|
D | readdir.c | 128 struct readdir_callback *buf = in fillonedir() local 133 if (buf->result) in fillonedir() 135 buf->result = verify_dirent_name(name, namlen); in fillonedir() 136 if (buf->result < 0) in fillonedir() 137 return buf->result; in fillonedir() 140 buf->result = -EOVERFLOW; in fillonedir() 143 buf->result++; in fillonedir() 144 dirent = buf->dirent; in fillonedir() 157 buf->result = -EFAULT; in fillonedir() 166 struct readdir_callback buf = { in SYSCALL_DEFINE3() local [all …]
|
/linux-4.19.296/drivers/media/tuners/ |
D | mt20xx.c | 102 unsigned char *buf, in mt2032_compute_freq() argument 161 buf[0]=lo1n-1; in mt2032_compute_freq() 162 buf[1]=lo1a | (sel<<4); in mt2032_compute_freq() 163 buf[2]=0x86; // LOGC in mt2032_compute_freq() 164 buf[3]=0x0f; //reserved in mt2032_compute_freq() 165 buf[4]=0x1f; in mt2032_compute_freq() 166 buf[5]=(lo2n-1) | (lo2a<<5); in mt2032_compute_freq() 168 buf[6]=0xe4; in mt2032_compute_freq() 170 buf[6]=0xf4; // set PKEN per rev 1.2 in mt2032_compute_freq() 171 buf[7]=8+xogc; in mt2032_compute_freq() [all …]
|
D | tda9887.c | 270 static void dump_read_message(struct dvb_frontend *fe, unsigned char *buf) in dump_read_message() argument 292 tuner_info("read: 0x%2x\n", buf[0]); in dump_read_message() 293 tuner_info(" after power on : %s\n", (buf[0] & 0x01) ? "yes" : "no"); in dump_read_message() 294 tuner_info(" afc : %s\n", afc[(buf[0] >> 1) & 0x0f]); in dump_read_message() 295 tuner_info(" fmif level : %s\n", (buf[0] & 0x20) ? "high" : "low"); in dump_read_message() 296 tuner_info(" afc window : %s\n", (buf[0] & 0x40) ? "in" : "out"); in dump_read_message() 297 tuner_info(" vfi level : %s\n", (buf[0] & 0x80) ? "high" : "low"); in dump_read_message() 300 static void dump_write_message(struct dvb_frontend *fe, unsigned char *buf) in dump_write_message() argument 342 tuner_info("write: byte B 0x%02x\n", buf[1]); in dump_write_message() 344 (buf[1] & 0x01) ? "video trap" : "sound trap"); in dump_write_message() [all …]
|
/linux-4.19.296/drivers/char/tpm/ |
D | tpm2-cmd.c | 189 struct tpm_buf buf; in tpm2_pcr_read() local 196 rc = tpm_buf_init(&buf, TPM2_ST_NO_SESSIONS, TPM2_CC_PCR_READ); in tpm2_pcr_read() 202 tpm_buf_append_u32(&buf, 1); in tpm2_pcr_read() 203 tpm_buf_append_u16(&buf, TPM2_ALG_SHA1); in tpm2_pcr_read() 204 tpm_buf_append_u8(&buf, TPM2_PCR_SELECT_MIN); in tpm2_pcr_read() 205 tpm_buf_append(&buf, (const unsigned char *)pcr_select, in tpm2_pcr_read() 208 rc = tpm_transmit_cmd(chip, NULL, buf.data, PAGE_SIZE, 0, 0, in tpm2_pcr_read() 211 out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE]; in tpm2_pcr_read() 215 tpm_buf_destroy(&buf); in tpm2_pcr_read() 239 struct tpm_buf buf; in tpm2_pcr_extend() local [all …]
|
/linux-4.19.296/include/linux/ |
D | relay.h | 69 struct rchan_buf * __percpu *buf; /* per-cpu channel buffers */ member 99 int (*subbuf_start) (struct rchan_buf *buf, 111 void (*buf_mapped)(struct rchan_buf *buf, 121 void (*buf_unmapped)(struct rchan_buf *buf, 149 struct rchan_buf *buf, 184 extern int relay_buf_full(struct rchan_buf *buf); 186 extern size_t relay_switch_subbuf(struct rchan_buf *buf, 207 struct rchan_buf *buf; in relay_write() local 210 buf = *this_cpu_ptr(chan->buf); in relay_write() 211 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write() [all …]
|
D | zutil.h | 47 typedef uLong (*check_func) (uLong check, const Byte *buf, 57 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} argument 58 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); argument 59 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); argument 60 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); argument 61 #define DO16(buf) DO8(buf,0); DO8(buf,8); argument 79 const Byte *buf, in zlib_adler32() argument 86 if (buf == NULL) return 1L; in zlib_adler32() 92 DO16(buf); in zlib_adler32() 93 buf += 16; in zlib_adler32() [all …]
|
/linux-4.19.296/drivers/rtc/ |
D | rtc-pcf8563.c | 91 unsigned char length, unsigned char *buf) in pcf8563_read_block_data() argument 97 .buf = ®, in pcf8563_read_block_data() 103 .buf = buf in pcf8563_read_block_data() 117 unsigned char *buf) in pcf8563_write_block_data() argument 122 unsigned char data[2] = { reg + i, buf[i] }; in pcf8563_write_block_data() 138 unsigned char buf; in pcf8563_set_alarm_mode() local 141 err = pcf8563_read_block_data(client, PCF8563_REG_ST2, 1, &buf); in pcf8563_set_alarm_mode() 146 buf |= PCF8563_BIT_AIE; in pcf8563_set_alarm_mode() 148 buf &= ~PCF8563_BIT_AIE; in pcf8563_set_alarm_mode() 150 buf &= ~(PCF8563_BIT_AF | PCF8563_BITS_ST2_N); in pcf8563_set_alarm_mode() [all …]
|
D | rtc-88pm80x.c | 114 unsigned char buf[4]; in pm80x_rtc_read_time() local 116 regmap_raw_read(info->map, PM800_RTC_EXPIRE2_1, buf, 4); in pm80x_rtc_read_time() 117 base = ((unsigned long)buf[3] << 24) | (buf[2] << 16) | in pm80x_rtc_read_time() 118 (buf[1] << 8) | buf[0]; in pm80x_rtc_read_time() 119 dev_dbg(info->dev, "%x-%x-%x-%x\n", buf[0], buf[1], buf[2], buf[3]); in pm80x_rtc_read_time() 122 regmap_raw_read(info->map, PM800_RTC_COUNTER1, buf, 4); in pm80x_rtc_read_time() 123 data = ((unsigned long)buf[3] << 24) | (buf[2] << 16) | in pm80x_rtc_read_time() 124 (buf[1] << 8) | buf[0]; in pm80x_rtc_read_time() 135 unsigned char buf[4]; in pm80x_rtc_set_time() local 141 regmap_raw_read(info->map, PM800_RTC_COUNTER1, buf, 4); in pm80x_rtc_set_time() [all …]
|
D | rtc-88pm860x.c | 112 unsigned char buf[8]; in pm860x_rtc_read_time() local 115 pm860x_page_bulk_read(info->i2c, REG0_ADDR, 8, buf); in pm860x_rtc_read_time() 116 dev_dbg(info->dev, "%x-%x-%x-%x-%x-%x-%x-%x\n", buf[0], buf[1], in pm860x_rtc_read_time() 117 buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in pm860x_rtc_read_time() 118 base = ((unsigned long)buf[1] << 24) | (buf[3] << 16) | in pm860x_rtc_read_time() 119 (buf[5] << 8) | buf[7]; in pm860x_rtc_read_time() 122 pm860x_bulk_read(info->i2c, PM8607_RTC_COUNTER1, 4, buf); in pm860x_rtc_read_time() 123 data = ((unsigned long)buf[3] << 24) | (buf[2] << 16) | in pm860x_rtc_read_time() 124 (buf[1] << 8) | buf[0]; in pm860x_rtc_read_time() 137 unsigned char buf[4]; in pm860x_rtc_set_time() local [all …]
|
D | rtc-ds1305.c | 146 u8 buf[2]; in ds1305_alarm_irq_enable() local 149 buf[0] = DS1305_WRITE | DS1305_CONTROL; in ds1305_alarm_irq_enable() 150 buf[1] = ds1305->ctrl[0]; in ds1305_alarm_irq_enable() 155 buf[1] |= DS1305_AEI0; in ds1305_alarm_irq_enable() 157 if (!(buf[1] & DS1305_AEI0)) in ds1305_alarm_irq_enable() 159 buf[1] &= ~DS1305_AEI0; in ds1305_alarm_irq_enable() 161 err = spi_write_then_read(ds1305->spi, buf, sizeof(buf), NULL, 0); in ds1305_alarm_irq_enable() 163 ds1305->ctrl[0] = buf[1]; in ds1305_alarm_irq_enable() 178 u8 buf[DS1305_RTC_LEN]; in ds1305_get_time() local 185 buf, sizeof(buf)); in ds1305_get_time() [all …]
|
D | rtc-isl12022.c | 61 .buf = data in isl12022_read_regs() 67 .buf = data in isl12022_read_regs() 110 uint8_t buf[ISL12022_REG_INT + 1]; in isl12022_rtc_read_time() local 113 ret = isl12022_read_regs(client, ISL12022_REG_SC, buf, sizeof(buf)); in isl12022_rtc_read_time() 117 if (buf[ISL12022_REG_SR] & (ISL12022_SR_LBAT85 | ISL12022_SR_LBAT75)) { in isl12022_rtc_read_time() 121 buf[ISL12022_REG_SR] & ISL12022_SR_LBAT85 ? 85 : 75); in isl12022_rtc_read_time() 129 buf[ISL12022_REG_SC], in isl12022_rtc_read_time() 130 buf[ISL12022_REG_MN], in isl12022_rtc_read_time() 131 buf[ISL12022_REG_HR], in isl12022_rtc_read_time() 132 buf[ISL12022_REG_DT], in isl12022_rtc_read_time() [all …]
|
D | rtc-s35390a.c | 74 static int s35390a_set_reg(struct s35390a *s35390a, int reg, char *buf, int len) in s35390a_set_reg() argument 81 .buf = buf in s35390a_set_reg() 91 static int s35390a_get_reg(struct s35390a *s35390a, int reg, char *buf, int len) in s35390a_get_reg() argument 99 .buf = buf in s35390a_get_reg() 111 u8 buf; in s35390a_init() local 124 buf = S35390A_FLAG_RESET | S35390A_FLAG_24H; in s35390a_init() 125 ret = s35390a_set_reg(s35390a, S35390A_CMD_STATUS1, &buf, 1); in s35390a_init() 130 ret = s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, &buf, 1); in s35390a_init() 134 if (buf & (S35390A_FLAG_POC | S35390A_FLAG_BLD)) { in s35390a_init() 176 char buf[1]; in s35390a_disable_test_mode() local [all …]
|
D | rtc-max6916.c | 49 unsigned char buf[2]; in max6916_write_reg() local 51 buf[0] = address & 0x7F; in max6916_write_reg() 52 buf[1] = data; in max6916_write_reg() 54 return spi_write_then_read(spi, buf, 2, NULL, 0); in max6916_write_reg() 61 unsigned char buf[8]; in max6916_read_time() local 63 buf[0] = MAX6916_CLOCK_BURST | 0x80; in max6916_read_time() 65 err = spi_write_then_read(spi, buf, 1, buf, 8); in max6916_read_time() 70 dt->tm_sec = bcd2bin(buf[0]); in max6916_read_time() 71 dt->tm_min = bcd2bin(buf[1]); in max6916_read_time() 72 dt->tm_hour = bcd2bin(buf[2] & 0x3F); in max6916_read_time() [all …]
|
D | rtc-pcf8583.c | 54 unsigned char buf[8], addr[1] = { 1 }; in pcf8583_get_datetime() local 60 .buf = addr, in pcf8583_get_datetime() 65 .buf = buf, in pcf8583_get_datetime() 70 memset(buf, 0, sizeof(buf)); in pcf8583_get_datetime() 74 dt->tm_year = buf[4] >> 6; in pcf8583_get_datetime() 75 dt->tm_wday = buf[5] >> 5; in pcf8583_get_datetime() 77 buf[4] &= 0x3f; in pcf8583_get_datetime() 78 buf[5] &= 0x1f; in pcf8583_get_datetime() 80 dt->tm_sec = bcd2bin(buf[1]); in pcf8583_get_datetime() 81 dt->tm_min = bcd2bin(buf[2]); in pcf8583_get_datetime() [all …]
|
/linux-4.19.296/drivers/iio/buffer/ |
D | industrialio-hw-consumer.c | 56 struct hw_consumer_buffer *buf; in iio_hw_consumer_get_buffer() local 58 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_get_buffer() 59 if (buf->indio_dev == indio_dev) in iio_hw_consumer_get_buffer() 60 return buf; in iio_hw_consumer_get_buffer() 63 buf = kzalloc(sizeof(*buf) + mask_size, GFP_KERNEL); in iio_hw_consumer_get_buffer() 64 if (!buf) in iio_hw_consumer_get_buffer() 67 buf->buffer.access = &iio_hw_buf_access; in iio_hw_consumer_get_buffer() 68 buf->indio_dev = indio_dev; in iio_hw_consumer_get_buffer() 69 buf->buffer.scan_mask = buf->scan_mask; in iio_hw_consumer_get_buffer() 71 iio_buffer_init(&buf->buffer); in iio_hw_consumer_get_buffer() [all …]
|
/linux-4.19.296/drivers/media/common/siano/ |
D | smsdvb-debugfs.c | 38 char *buf; in smsdvb_print_dvb_stats() local 46 buf = debug_data->stats_data; in smsdvb_print_dvb_stats() 48 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 50 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 52 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 54 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 56 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 58 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 60 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 62 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() [all …]
|
/linux-4.19.296/lib/ |
D | vsprintf.c | 208 char *put_dec_trunc8(char *buf, unsigned r) in put_dec_trunc8() argument 218 *((u16 *)buf) = decpair[r - 100*q]; in put_dec_trunc8() 219 buf += 2; in put_dec_trunc8() 227 *((u16 *)buf) = decpair[q - 100*r]; in put_dec_trunc8() 228 buf += 2; in put_dec_trunc8() 236 *((u16 *)buf) = decpair[r - 100*q]; in put_dec_trunc8() 237 buf += 2; in put_dec_trunc8() 243 *((u16 *)buf) = decpair[r]; in put_dec_trunc8() 244 buf += r < 10 ? 1 : 2; in put_dec_trunc8() 245 return buf; in put_dec_trunc8() [all …]
|
/linux-4.19.296/drivers/base/power/ |
D | sysfs.c | 102 char *buf) in control_show() argument 104 return sprintf(buf, "%s\n", in control_show() 109 const char * buf, size_t n) in control_store() argument 112 if (sysfs_streq(buf, ctrl_auto)) in control_store() 114 else if (sysfs_streq(buf, ctrl_on)) in control_store() 125 struct device_attribute *attr, char *buf) in runtime_active_time_show() argument 130 ret = sprintf(buf, "%i\n", jiffies_to_msecs(dev->power.active_jiffies)); in runtime_active_time_show() 138 struct device_attribute *attr, char *buf) in runtime_suspended_time_show() argument 143 ret = sprintf(buf, "%i\n", in runtime_suspended_time_show() 152 struct device_attribute *attr, char *buf) in runtime_status_show() argument [all …]
|