Home
last modified time | relevance | path

Searched refs:csize (Results 1 – 11 of 11) sorted by relevance

/drivers/of/
Ddevice.c183 ssize_t tsize, csize, repend; in of_device_get_modalias() local
189 csize = snprintf(str, len, "of:N%sT%s", dev->of_node->name, in of_device_get_modalias()
195 return csize; in of_device_get_modalias()
201 return csize; in of_device_get_modalias()
205 tsize = csize + cplen; in of_device_get_modalias()
208 if (csize >= len) /* @ the limit, all is already filled */ in of_device_get_modalias()
212 cplen = len - csize - 1; in of_device_get_modalias()
217 memcpy(&str[csize + 1], compat, cplen); in of_device_get_modalias()
218 for (i = csize; i < repend; i++) { in of_device_get_modalias()
/drivers/crypto/nx/
Dnx-aes-ccm.c116 static int set_msg_len(u8 *block, unsigned int msglen, int csize) in set_msg_len() argument
120 memset(block, 0, csize); in set_msg_len()
121 block += csize; in set_msg_len()
123 if (csize >= 4) in set_msg_len()
124 csize = 4; in set_msg_len()
125 else if (msglen > (unsigned int)(1 << (8 * csize))) in set_msg_len()
129 memcpy(block - csize, (u8 *)&data + 4 - csize, csize); in set_msg_len()
/drivers/tty/serial/
Dbfin_sport_uart.c47 unsigned short csize; member
87 if ((up->csize + up->stopb) > 7) in rx_one_byte()
93 up->csize, up->rxmask); in rx_one_byte()
111 : [val]"d"(value), [rxmask]"d"(up->rxmask), [lc]"a"(up->csize) in rx_one_byte()
508 up->csize = 8; in sport_set_termios()
511 up->csize = 7; in sport_set_termios()
514 up->csize = 6; in sport_set_termios()
517 up->csize = 5; in sport_set_termios()
542 up->rxmask = 0x01 | (((up->csize + up->stopb) * 2 - 1) << 0x8); in sport_set_termios()
547 for (i = 0, up->txmask1 = 0; i < up->csize; i++) in sport_set_termios()
[all …]
/drivers/staging/greybus/
Daudio_topology.c990 int i, ret, csize; in gbaudio_tplg_create_widget() local
1040 csize = offsetof(struct gb_audio_control, info); in gbaudio_tplg_create_widget()
1041 csize += offsetof(struct gb_audio_ctl_elem_info, value); in gbaudio_tplg_create_widget()
1042 csize += offsetof(struct gb_audio_enumerated, names); in gbaudio_tplg_create_widget()
1043 csize += gbenum->names_length; in gbaudio_tplg_create_widget()
1048 csize = sizeof(struct gb_audio_control); in gbaudio_tplg_create_widget()
1049 *w_size += csize; in gbaudio_tplg_create_widget()
1050 curr = (void *)curr + csize; in gbaudio_tplg_create_widget()
1148 int i, csize, ret; in gbaudio_tplg_process_kcontrols() local
1186 csize = offsetof(struct gb_audio_control, info); in gbaudio_tplg_process_kcontrols()
[all …]
/drivers/dma/
Dat_xdmac.c302 int csize; in at_xdmac_csize() local
304 csize = ffs(maxburst) - 1; in at_xdmac_csize()
305 if (csize > 4) in at_xdmac_csize()
306 csize = -EINVAL; in at_xdmac_csize()
308 return csize; in at_xdmac_csize()
545 int csize, dwidth; in at_xdmac_compute_chan_conf() local
558 csize = ffs(atchan->sconfig.src_maxburst) - 1; in at_xdmac_compute_chan_conf()
559 if (csize < 0) { in at_xdmac_compute_chan_conf()
563 atchan->cfg |= AT_XDMAC_CC_CSIZE(csize); in at_xdmac_compute_chan_conf()
581 csize = ffs(atchan->sconfig.dst_maxburst) - 1; in at_xdmac_compute_chan_conf()
[all …]
/drivers/md/
Dbitmap.c1334 sector_t csize; in bitmap_get_counter() local
1341 csize = ((sector_t)1) << (bitmap->chunkshift + in bitmap_get_counter()
1344 csize = ((sector_t)1) << bitmap->chunkshift; in bitmap_get_counter()
1345 *blocks = csize - (offset & (csize - 1)); in bitmap_get_counter()
2417 unsigned long csize; in chunksize_store() local
2420 rv = kstrtoul(buf, 10, &csize); in chunksize_store()
2423 if (csize < 512 || in chunksize_store()
2424 !is_power_of_2(csize)) in chunksize_store()
2426 mddev->bitmap_info.chunksize = csize; in chunksize_store()
Ddm-cache-target.c3432 dm_cblock_t csize = get_cache_dev_size(cache); in cache_preresume() local
3438 r = resize_cache_dev(cache, csize); in cache_preresume()
3444 } else if (csize != cache->cache_size) { in cache_preresume()
3445 if (!can_resize(cache, csize)) in cache_preresume()
3448 r = resize_cache_dev(cache, csize); in cache_preresume()
/drivers/usb/serial/
Diuu_phoenix.c906 int csize = CS7; in iuu_set_termios() local
924 csize = CS8; in iuu_set_termios()
948 tty->termios.c_cflag |= newval | csize; in iuu_set_termios()
/drivers/hid/
Dhid-core.c1471 u32 rsize, csize = size; in hid_report_raw_event() local
1481 csize--; in hid_report_raw_event()
1489 if (csize < rsize) { in hid_report_raw_event()
1491 csize, rsize); in hid_report_raw_event()
1492 memset(cdata + csize, 0, rsize - csize); in hid_report_raw_event()
/drivers/media/platform/coda/
Dcoda-common.c1094 unsigned int max_w, max_h, usize, csize; in set_default_params() local
1101 csize = coda_estimate_sizeimage(ctx, usize, max_w, max_h); in set_default_params()
1118 ctx->q_data[V4L2_M2M_DST].sizeimage = csize; in set_default_params()
1121 ctx->q_data[V4L2_M2M_SRC].sizeimage = csize; in set_default_params()
/drivers/scsi/
Dgdth.h540 u32 csize; /* cache size */ member