/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_bl.c | 70 unsigned int left; local 94 left = sskip; 102 if (left >= sg->length) { 103 left -= sg->length; 106 bufl->buffers[y].addr = dma_map_single(dev, sg_virt(sg) + left, 107 sg->length - left, 113 if (left) { 114 bufl->buffers[y].len -= left; 115 left = 0; 133 left [all...] |
/linux-master/drivers/hid/ |
H A D | hid-holtekff.c | 56 * bit 7: left (strong) motor enabled 95 int left, right; local 100 left = effect->u.rumble.strong_magnitude; 102 dbg_hid("called with 0x%04x 0x%04x\n", left, right); 104 if (!left && !right) { 109 if (left) 115 buf[6] = min(0xf, (left >> 12) + (right >> 12));
|
H A D | hid-betopff.c | 42 __u16 left, right; local 44 left = effect->u.rumble.strong_magnitude; 47 betopff->report->field[2]->value[0] = left / 256;
|
/linux-master/include/linux/ |
H A D | mnt_idmapping.h | 59 static inline bool vfsuid_eq(vfsuid_t left, vfsuid_t right) argument 61 return vfsuid_valid(left) && __vfsuid_val(left) == __vfsuid_val(right); 64 static inline bool vfsgid_eq(vfsgid_t left, vfsgid_t right) argument 66 return vfsgid_valid(left) && __vfsgid_val(left) == __vfsgid_val(right);
|
/linux-master/include/crypto/internal/ |
H A D | ecc.h | 159 * vli_cmp() - compare left and right vlis 161 * @left: vli 165 * Returns sign of @left - @right, i.e. -1 if @left < @right, 166 * 0 if @left == @right, 1 if @left > @right. 168 int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits); 171 * vli_sub() - Subtracts right from left 174 * @left: vli 182 u64 vli_sub(u64 *result, const u64 *left, cons [all...] |
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | sparsebit.c | 170 struct node *left; member in struct:node 209 for (nodep = s->root; nodep && nodep->left; nodep = nodep->left) 224 * If current node has a right child, next node is the left-most 228 for (nodep = nodep->right; nodep->left; nodep = nodep->left) 234 * No right child. Go up until node is left child of a parent. 252 * If current node has a left child, next node is the right-most 253 * of the left child. 255 if (nodep->left) { [all...] |
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_uif.c | 109 sel->r.left = 0; 155 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); 158 format->width - sel->r.left); 200 unsigned int left; local 209 left = crop->left; 214 left /= 2; 218 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSPXR, left);
|
H A D | vsp1_rwpf.c | 109 crop->left = 0; 162 sel->r.left = 0; 215 sel->r.left = ALIGN(sel->r.left, 2); 221 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); 224 format->width - sel->r.left);
|
/linux-master/sound/core/oss/ |
H A D | mixer_oss.c | 255 int result = 0, left, right; local 261 left = pslot->volume[0]; 264 result = pslot->get_volume(fmixer, pslot, &left, &right); 266 right = left; 267 if (snd_BUG_ON(left < 0 || left > 100)) 272 pslot->volume[0] = left; 274 result = (left & 0xff) | ((right & 0xff) << 8); 284 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; local 290 if (left > 10 516 snd_mixer_oss_get_volume1_vol(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int *left, int *right) argument 548 snd_mixer_oss_get_volume1_sw(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int *left, int *right, int route) argument 582 snd_mixer_oss_get_volume1(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, int *left, int *right) argument 608 snd_mixer_oss_put_volume1_vol(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int left, int right) argument 644 snd_mixer_oss_put_volume1_sw(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int left, int right, int route) argument 685 snd_mixer_oss_put_volume1(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, int left, int right) argument 739 int left, right; local 752 int left, right; local [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_iter.c | 59 size_t left; local 77 left = ARRAY_SIZE(buf); 79 while ((len = read(iter_fd, p, left)) > 0) { 81 left -= len; 201 size_t left; local 246 left = ARRAY_SIZE(buf); 248 while ((len = read(iter_fd, p, left)) > 0) { 250 left -= len;
|
/linux-master/tools/perf/util/ |
H A D | block-info.h | 65 int64_t __block_info__cmp(struct hist_entry *left, struct hist_entry *right); 68 struct hist_entry *left, struct hist_entry *right);
|
/linux-master/arch/s390/include/asm/ |
H A D | idals.h | 221 size_t left; local 228 left = copy_to_user(to, vaddr, IDA_BLOCK_SIZE); 229 if (left) 230 return left + count - IDA_BLOCK_SIZE; 243 size_t left; local 250 left = copy_from_user(vaddr, from, IDA_BLOCK_SIZE); 251 if (left) 252 return left + count - IDA_BLOCK_SIZE;
|
/linux-master/drivers/input/mouse/ |
H A D | gpio_mouse.c | 21 * @left: GPIO line for left value. 23 * @bleft: GPIO line for left button. 35 struct gpio_desc *left; member in struct:gpio_mouse 61 x = gpiod_get_value(gpio->right) - gpiod_get_value(gpio->left); 94 gmouse->left = devm_gpiod_get(dev, "left", GPIOD_IN); 95 if (IS_ERR(gmouse->left)) 96 return PTR_ERR(gmouse->left); 101 gmouse->bleft = devm_gpiod_get_optional(dev, "button-left", GPIOD_I [all...] |
/linux-master/net/rds/ |
H A D | tcp_recv.c | 163 size_t left = len, to_copy; local 172 while (left) { 194 if (left && tc->t_tinc_hdr_rem) { 195 to_copy = min(tc->t_tinc_hdr_rem, left); 204 left -= to_copy; 216 if (left && tc->t_tinc_data_rem) { 217 to_copy = min(tc->t_tinc_data_rem, left); 233 left -= to_copy; 256 rdsdebug("returning len %zu left %zu skb len %d rx queue depth %d\n", 257 len, left, sk [all...] |
/linux-master/security/tomoyo/ |
H A D | condition.c | 293 * @left: Lefthand value. 299 static bool tomoyo_parse_argv(char *left, char *right, argument 302 if (tomoyo_parse_ulong(&argv->index, &left) != 303 TOMOYO_VALUE_TYPE_DECIMAL || *left++ != ']' || *left) 312 * @left: Lefthand value. 318 static bool tomoyo_parse_envp(char *left, char *right, argument 323 char *cp = left + strlen(left) - 1; 328 if (!tomoyo_correct_word(left)) 512 u8 left = -1; local 800 const u8 left = condp->left; local [all...] |
/linux-master/drivers/usb/core/ |
H A D | port.c | 481 static int link_peers(struct usb_port *left, struct usb_port *right) argument 486 if (left->peer == right && right->peer == left) 489 if (left->peer || right->peer) { 490 struct usb_port *lpeer = left->peer; 494 if (left->location && left->location == right->location) 500 dev_name(&left->dev), dev_name(&right->dev), method, 501 dev_name(&left->dev), 508 rc = sysfs_create_link(&left 550 link_peers_report(struct usb_port *left, struct usb_port *right) argument 565 unlink_peers(struct usb_port *left, struct usb_port *right) argument [all...] |
/linux-master/drivers/video/fbdev/ |
H A D | arcfb.c | 249 unsigned int left, unsigned int right, unsigned int distance) 257 xindex = left >> 6; 264 src = (unsigned char *)par->info->screen_buffer + (left/8) + 266 ks108_set_xaddr(par, chipindex, left); 270 while (left <= right) { 282 left++; 296 * lcd chips. update_page uses the upper/left values to decide which 301 unsigned int bottom, unsigned int left, unsigned int right) 311 arcfb_lcd_update_page(par, upper, left, right, 8); 322 static void arcfb_lcd_update_horiz(struct arcfb_par *par, unsigned int left, argument 248 arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper, unsigned int left, unsigned int right, unsigned int distance) argument 300 arcfb_lcd_update_vert(struct arcfb_par *par, unsigned int top, unsigned int bottom, unsigned int left, unsigned int right) argument 347 unsigned int left, right, distance, y; local [all...] |
/linux-master/arch/xtensa/kernel/ |
H A D | perf_event.c | 167 s64 left; local 170 left = XTENSA_PMU_COUNTER_MAX; 174 left = local64_read(&hwc->period_left); 175 if (left <= -period) { 176 left = period; 177 local64_set(&hwc->period_left, left); 180 } else if (left <= 0) { 181 left += period; 182 local64_set(&hwc->period_left, left); 186 if (left > XTENSA_PMU_COUNTER_MA [all...] |
/linux-master/sound/pci/ |
H A D | ak4531_codec.c | 147 int left, right; local 150 left = (ak4531->regs[left_reg] >> left_shift) & mask; 154 left = mask - left; 157 ucontrol->value.integer.value[0] = left; 172 int left, right; local 174 left = ucontrol->value.integer.value[0] & mask; 177 left = mask - left; 180 left << [all...] |
/linux-master/lib/zlib_inflate/ |
H A D | inflate.c | 188 left = strm->avail_out; \ 199 strm->avail_out = left; \ 277 input left to load n bits into the accumulator, or it continues. BITS(n) 290 state information is maintained to continue the loop where it left off 336 unsigned have, left; /* available input and output */ local 361 out = left; 454 if (copy > left) copy = left; 459 left -= copy; 580 if (have >= 6 && left > [all...] |
/linux-master/arch/x86/crypto/ |
H A D | aegis128-aesni-glue.c | 80 unsigned int left = size; local 92 left -= fill; 96 crypto_aegis128_aesni_ad(state, left, src); 98 src += left & ~(AEGIS128_BLOCK_SIZE - 1); 99 left &= AEGIS128_BLOCK_SIZE - 1; 102 memcpy(buf.bytes + pos, src, left); 103 pos += left;
|
/linux-master/fs/dlm/ |
H A D | dir.c | 86 int left; local 104 left = le16_to_cpu(ls->ls_recover_buf->rc_header.h_length); 105 left -= sizeof(struct dlm_rcom); 111 if (left < sizeof(__be16)) 117 left -= sizeof(__be16); 128 if (namelen > left) 179 left -= namelen; 232 /* Find the rsb where we left off (or start again), then send rsb names
|
/linux-master/drivers/soc/qcom/ |
H A D | wcnss_ctrl.c | 206 ssize_t left; local 224 left = fw->size; 234 if (left <= NV_FRAGMENT_SIZE) { 236 req->frag_size = left; 237 req->hdr.len = sizeof(*req) + left; 252 left -= NV_FRAGMENT_SIZE; 253 } while (left > 0);
|
/linux-master/drivers/staging/rtl8723bs/core/ |
H A D | rtw_ieee80211.c | 442 int left, count; local 459 left = wpa_ie_len - 8; 462 if (left >= WPA_SELECTOR_LEN) { 466 left -= WPA_SELECTOR_LEN; 468 } else if (left > 0) 472 if (left >= 2) { 476 left -= 2; 478 if (count == 0 || left < count * WPA_SELECTOR_LEN) 485 left -= WPA_SELECTOR_LEN; 488 } else if (left 505 int left, count; local 847 uint left = len; local [all...] |
/linux-master/drivers/tty/hvc/ |
H A D | hvc_vio.c | 62 size_t left; member in struct:hvterm_priv 81 if (pv->left == 0) { 83 pv->left = hvc_get_chars(pv->termno, pv->buf, count); 89 for (i = 1; i < pv->left; ++i) { 91 --pv->left; 92 if (i < pv->left) { 94 pv->left - i); 100 got = min(count, pv->left); 103 pv->left -= got;
|